/* HidroPro 1.0 - one stylesheet, mobile first. Brand: deep navy (trust) + water blue (action) + red (24h emergency only). */
:root { --blue: #0b2545; --blue2: #0369a1; --blue-soft: #e0f2fe; --orange: #075985; --orange-btn: #0369a1; --ink: #0b1b2e; --text: #334155; --muted: #5b6b7f;
  --line: #dbe3ec; --bg: #f5f8fb; --card: #ffffff; --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --danger: #b91c1c; --danger-soft: #fee2e2;
  --gold: #d97706; --sos: #b91c1c; --radius: 14px; --shadow: 0 8px 28px rgba(11, 37, 69, .10); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue2); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); } h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); } h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.hp-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.hp-skip { position: absolute; left: -9999px; } .hp-skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange-btn); outline-offset: 2px; }

/* header / footer */
.hp-header { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 30; }
.hp-header .hp-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.hp-logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; display: inline-flex; align-items: center; gap: 8px; }
.hp-logo span span { color: #7dd3fc; }
.hp-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hp-nav a { color: #e2e8f0; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.hp-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hp-nav .hp-btn { color: #fff; }
.hp-footer { background: var(--ink); color: #cbd5e1; margin-top: 56px; padding: 36px 0; font-size: .92rem; }
.hp-footer a { color: #e2e8f0; }
.hp-footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hp-footer h2, .hp-footer h3 { color: #fff; font-size: 1rem; }
.hp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* buttons, forms, alerts */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; background: #fff; color: var(--ink); border-color: var(--line); }
.hp-btn--primary { background: var(--blue2); color: #fff; border-color: var(--blue2); }
.hp-btn--primary:hover { background: var(--blue); }
.hp-btn--action { background: #0369a1; color: #fff; border-color: #0369a1; }
.hp-btn--action:hover { background: #075985; }
.hp-btn--wa { background: #15803d; color: #fff; border-color: #15803d; }
.hp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hp-btn--sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.hp-btn--block { width: 100%; }
.hp-form { display: grid; gap: 14px; }
.hp-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hp-form input:not([type=checkbox]):not([type=radio]), .hp-form select, .hp-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #cbd5e1;
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.hp-form textarea { min-height: 110px; resize: vertical; }
.hp-form input:focus, .hp-form select:focus, .hp-form textarea:focus { border-color: var(--blue2); outline: 3px solid rgba(29, 78, 216, .18); outline-offset: 0; }
.hp-hint { color: var(--muted); font-size: .86rem; font-weight: 400; }
.hp-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hp-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.hp-check input { width: 20px; height: 20px; }
.hp-checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 600; }
.hp-alert--success { background: var(--ok-soft); color: #14532d; } .hp-alert--danger { background: var(--danger-soft); color: #7f1d1d; }
.hp-alert--warning { background: var(--warn-soft); color: #78350f; } .hp-alert--info { background: var(--blue-soft); color: var(--blue); }

/* hero + search */
.hp-hero { color: #fff; padding: 52px 0 64px; position: relative; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' viewBox='0 0 600 120'%3E%3Cpath d='M0 60 Q75 20 150 60 T300 60 T450 60 T600 60' fill='none' stroke='%237dd3fc' stroke-opacity='.10' stroke-width='2'/%3E%3Cpath d='M0 90 Q75 50 150 90 T300 90 T450 90 T600 90' fill='none' stroke='%237dd3fc' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E") repeat-x left bottom / 600px 120px,
  linear-gradient(135deg, #0b2545 0%, #0c3a63 55%, #075985 100%); }
.hp-hero h1 { color: #fff; letter-spacing: -.01em; } .hp-hero p { color: #e0f2fe; font-size: 1.12rem; max-width: 660px; }
.hp-search { background: #fff; border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; grid-template-columns: 1fr; box-shadow: var(--shadow); margin-top: 20px; max-width: 920px; }
.hp-search label { display: grid; gap: 4px; color: var(--ink); font-weight: 700; font-size: .85rem; }
.hp-search input, .hp-search select { min-height: 48px; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 0 12px; font: inherit; width: 100%; background: #fff; }
.hp-near { background: none; border: 0; color: #fff; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 1rem; padding: 12px 0 0; }
@media (min-width: 760px) { .hp-search { grid-template-columns: 1.6fr 1.1fr 1fr 2fr auto auto; align-items: end; } }
.hp-section { padding: 42px 0 0; }
.hp-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hp-step b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); align-items: center; justify-content: center; margin-bottom: 8px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.hp-chip:hover, .hp-chip.is-on { border-color: var(--blue2); color: var(--blue2); }

/* professional cards */
.hp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.hp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.hp-card--premium { border: 2px solid #d97706; }
.hp-card { border-top: 4px solid var(--blue2); }
.hp-card-head { display: flex; gap: 12px; align-items: center; }
.hp-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; }
.hp-avatar--lg { width: 112px; height: 112px; font-size: 2.4rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.hp-card h3 { margin: 0; } .hp-card h3 a { color: var(--ink); text-decoration: none; }
.hp-meta { color: var(--muted); font-size: .9rem; }
.hp-price { font-weight: 800; color: var(--ink); }
.hp-stars { color: #b45309; font-weight: 700; } .hp-stars small { color: var(--muted); font-weight: 500; }
.hp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.hp-badge--premium { background: #fef3c7; color: #92400e; } .hp-badge--verified { background: var(--ok-soft); color: #14532d; } .hp-badge--soft { background: var(--blue-soft); color: var(--blue); }
.hp-card .hp-actions { margin-top: auto; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }

/* profile page */
.hp-profile-top { background: linear-gradient(135deg, #0b2545 0%, #0c3a63 60%, #075985 100%); color: #fff; padding: 34px 0 28px; }
.hp-profile-top h1 { color: #fff; margin: 0; } .hp-profile-top .hp-meta { color: #e0f2fe; }
.hp-profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hp-profile-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hp-layout { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 900px) { .hp-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.hp-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hp-box + .hp-box { margin-top: 18px; }
.hp-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hp-gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-soft); }
.hp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hp-agenda { width: 100%; border-collapse: collapse; } .hp-agenda td { padding: 7px 0; border-bottom: 1px solid var(--line); } .hp-agenda td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.hp-review { border-top: 1px solid var(--line); padding: 14px 0; } .hp-review:first-child { border-top: 0; }
.hp-reply { background: var(--bg); border-left: 3px solid var(--blue2); padding: 8px 12px; border-radius: 0 8px 8px 0; margin-top: 8px; font-size: .92rem; }
#hp-map { height: 260px; border-radius: 12px; border: 1px solid var(--line); z-index: 1; }
.hp-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; z-index: 40; }
@media (min-width: 900px) { .hp-sticky-cta { display: none; } }
.hp-lightbox { position: fixed; inset: 0; background: rgba(2, 6, 23, .9); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.hp-lightbox.is-open { display: flex; } .hp-lightbox img { max-height: 88vh; border-radius: 10px; }
.hp-lightbox button { position: absolute; top: 14px; right: 14px; }

/* pricing */
.hp-plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 820px; margin: 0 auto; }
.hp-plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.hp-plan--premium { border: 2px solid var(--blue2); box-shadow: var(--shadow); }
.hp-plan .hp-amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); } .hp-plan ul { padding-left: 1.2em; }

/* panel / admin */
.hp-app { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 64px); }
@media (min-width: 900px) { .hp-app { grid-template-columns: 240px minmax(0, 1fr); } }
.hp-side { background: #fff; border-right: 1px solid var(--line); padding: 14px; }
.hp-side nav { display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 900px) { .hp-side nav { flex-direction: column; overflow: visible; } }
.hp-side a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.hp-side a.is-on, .hp-side a:hover { background: var(--blue-soft); color: var(--blue); }
.hp-count { background: #b91c1c; color: #fff; border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.hp-main { padding: 22px 18px 60px; max-width: 1000px; }
.hp-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.hp-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .hp-kpi b { display: block; font-size: 1.6rem; color: var(--ink); }
.hp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hp-table th, .hp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .94rem; }
.hp-table th { background: var(--bg); color: var(--ink); font-size: .85rem; }
.hp-scroll { overflow-x: auto; }
.hp-thumbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hp-thumb { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .hp-thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hp-thumb div { padding: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .85rem; }
.hp-progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; } .hp-progress i { display: block; height: 100%; background: var(--ok); }
.hp-auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; }
.hp-auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; width: 100%; max-width: 460px; box-shadow: var(--shadow); }
.hp-wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #15803d; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 35; }
.hp-pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.hp-pages a, .hp-pages span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); }
.hp-pages span { background: var(--blue2); color: #fff; border-color: var(--blue2); }
.hp-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

[hidden] { display: none !important; }

/* ===== HidroPro components ===== */
.hp-badge--24h { background: var(--sos); color: #fff; }
.hp-btn--sos { background: var(--sos); color: #fff; border-color: var(--sos); } .hp-btn--sos:hover { background: #991b1b; }
.hp-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: #e0f2fe; font-weight: 600; font-size: .95rem; }
.hp-trust span::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: rgba(125, 211, 252, .2); color: #7dd3fc; font-size: .8rem; }
.hp-sos-strip { background: #fff5f5; border: 1px solid #fecaca; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hp-sos-strip b { color: var(--sos); }
.hp-fee { display: inline-flex; gap: 6px; align-items: baseline; color: var(--muted); font-size: .9rem; }
.hp-urg { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.hp-urg--emergency { background: var(--sos); color: #fff; } .hp-urg--today { background: #fef3c7; color: #78350f; } .hp-urg--week { background: var(--blue-soft); color: #075985; } .hp-urg--flexible { background: #f1f5f9; color: #334155; }
.hp-check-row { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: .9rem; }
.hp-search .hp-check-row { align-self: center; }
.hp-search input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--sos); }
.hp-search .hp-check-row { min-height: 48px; white-space: nowrap; }
.hp-search label.hp-check-row { display: flex; flex-direction: row; align-items: center; gap: 8px; }
