/* =====================================================
   DR. SALVADOR BRAVO LÓPEZ — DESIGN SYSTEM
   Traumatología | Ortopedia | Reemplazo Articular
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary:       #1B3664;  /* Navy azul del logo */
  --primary-dark:  #122447;
  --primary-light: #2A4F8F;
  --teal:          #00A9C0;  /* Teal del logo */
  --teal-dark:     #007F91;
  --gold:          #F59E0B;  /* Rating stars */
  --green:         #10B981;  /* Checkmarks */
  --green-dark:    #059669;
  --red:           #EF4444;
  --text-dark:     #0F1C2E;
  --text-mid:      #3D5166;
  --text-light:    #6B849A;
  --bg-light:      #F4F8FC;
  --bg-section:    #EBF4FF;
  --white:         #FFFFFF;
  --border:        #D1DDE9;
  --border-light:  #E8F0F7;
  --shadow-sm:     0 1px 3px rgba(27,54,100,0.08);
  --shadow:        0 4px 12px rgba(27,54,100,0.12);
  --shadow-lg:     0 12px 32px rgba(27,54,100,0.16);
  --shadow-xl:     0 24px 48px rgba(27,54,100,0.20);
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --font:          'Inter', 'Segoe UI', -apple-system, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --wa-green:      #25D366;
  --wa-dark:       #128C7E;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
p { line-height: 1.75; color: var(--text-mid); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-size: 1rem; font-weight: 600; transition: all 0.25s ease; cursor: pointer; white-space: nowrap; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px rgba(27,54,100,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,54,100,0.45); }

.btn-wa { background: var(--wa-green); color: var(--white); box-shadow: 0 4px 16px rgba(37,211,102,0.35); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.45); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 4px 16px rgba(0,169,192,0.35); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== TOP BAR ===== */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 8px 0; font-size: 0.85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { opacity: 0.75; flex-shrink: 0; }
.topbar-item a:hover { color: var(--teal); }
.topbar-credentials { font-size: 0.78rem; opacity: 0.7; }

/* ===== HEADER / NAV ===== */
#site-header { position: sticky; top: 0; z-index: 900; }
.site-header { background: var(--white); border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-logo img { height: 52px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 14px; color: var(--text-mid); font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-section); }
.nav-link svg { transition: transform 0.2s; }
.nav-link:hover svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s; z-index: 100; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; font-size: 0.875rem; color: var(--text-mid); border-radius: var(--radius-sm); transition: all 0.2s; }
.dropdown a:hover { background: var(--bg-section); color: var(--primary); padding-left: 18px; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 0; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { font-weight: 600; color: var(--primary); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.nav-phone:hover { color: var(--teal); }

/* Mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
/* Optimizado para MacBook Air 13.3" (1280×800 lógico): 800 - 36topbar - 72nav = 692px disponibles */
.hero { position: relative; display: flex; align-items: stretch; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); z-index: 1; }

/* Animated background orbs */
.hero-bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; will-change: transform; }
.hero-bg-orb.orb-1 { z-index: 2; width: 560px; height: 560px; background: radial-gradient(circle, rgba(0,169,192,0.22) 0%, transparent 70%); top: -180px; left: -80px; animation: heroOrb1 14s ease-in-out infinite; }
.hero-bg-orb.orb-2 { z-index: 2; width: 440px; height: 440px; background: radial-gradient(circle, rgba(42,79,143,0.3) 0%, transparent 70%); bottom: -130px; left: 22%; animation: heroOrb2 11s ease-in-out infinite; animation-delay: -5s; }
.hero-bg-orb.orb-3 { z-index: 2; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,169,192,0.13) 0%, transparent 70%); top: 20%; left: 38%; animation: heroOrb1 18s ease-in-out infinite; animation-delay: -9s; }
@keyframes heroOrb1 { 0%,100%{ transform: translate(0,0) scale(1); } 33%{ transform: translate(50px,-35px) scale(1.06); } 66%{ transform: translate(-25px,22px) scale(0.96); } }
@keyframes heroOrb2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-40px,-28px); } }

.hero-content { position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 42%; gap: 0; align-items: center; }
.hero-grid > div:first-child { padding: 52px 56px 52px 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 500; margin-bottom: 14px; }
.hero h1 { color: var(--white); margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero h1 span { color: var(--teal); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; line-height: 1.65; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); font-size: 0.82rem; }
.hero-trust-item svg { color: var(--teal); flex-shrink: 0; }
.hero-image-box { position: relative; background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-right: none; border-radius: var(--radius-xl) 0 0 var(--radius-xl); overflow: hidden; height: 450px; }
.hero-image-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Mobile circular avatar */
.hero-avatar-mobile { display: none; width: 130px; height: 130px; border-radius: 50%; overflow: hidden; border: 4px solid var(--teal); box-shadow: 0 0 0 6px rgba(0,169,192,0.25), 0 8px 24px rgba(0,0,0,0.35); margin: 0 auto 28px; }
.hero-avatar-mobile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-image-placeholder { text-align: center; color: rgba(255,255,255,0.5); }
.hero-image-placeholder svg { margin: 0 auto 12px; opacity: 0.4; }
.hero-image-placeholder p { font-size: 0.85rem; }

/* Rating strip in hero */
.hero-rating { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); padding: 10px 18px; margin-bottom: 20px; }
.hero-rating .score { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.hero-rating .stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.hero-rating .label { font-size: 0.75rem; color: rgba(255,255,255,0.7); line-height: 1.3; }

/* ===== TRUST STRIP ===== */
.trust-strip { background: var(--primary); padding: 20px 0; }
.trust-strip-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.875rem; }
.trust-item strong { color: var(--white); font-size: 1.1rem; }
.trust-item svg { color: var(--teal); }

/* ===== SECTION LABELS ===== */
.section-label { display: inline-block; background: var(--bg-section); color: var(--primary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 14px; border-radius: 100px; border-left: 3px solid var(--teal); margin-bottom: 16px; }
.section-header { max-width: 680px; }
.section-header.centered { margin: 0 auto; text-align: center; }
.section-header p { margin-top: 16px; font-size: 1.05rem; }

/* ===== CARDS ===== */
.cards-grid { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--teal); }
.card-icon { width: 56px; height: 56px; background: var(--bg-section); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.925rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--teal); font-size: 0.875rem; font-weight: 600; transition: gap 0.2s; }
.card-link:hover { gap: 10px; }

/* Benefit cards */
.benefit-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 28px; border-left: 4px solid var(--teal); }
.benefit-card h4 { color: var(--primary); margin-bottom: 8px; }

/* ===== GOOGLE REVIEWS ===== */
.reviews-section { background: var(--bg-light); }
.reviews-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.reviews-score { display: flex; align-items: center; gap: 24px; }
.reviews-big-score { font-size: 5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.reviews-score-detail .stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 3px; }
.reviews-score-detail .count { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }
.google-badge { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; }
.google-logo { font-size: 1.1rem; font-weight: 700; color: #4285F4; }
.google-logo span:nth-child(2) { color: #EA4335; }
.google-logo span:nth-child(3) { color: #FBBC04; }
.google-logo span:nth-child(4) { color: #4285F4; }
.google-logo span:nth-child(5) { color: #34A853; }
.google-logo span:nth-child(6) { color: #EA4335; }

.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.review-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: var(--white); flex-shrink: 0; }
.reviewer-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.review-date { font-size: 0.78rem; color: var(--text-light); }
.review-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-image { position: relative; }
.about-image-box { background: linear-gradient(135deg, var(--bg-section) 0%, #DCE9F9 100%); border-radius: var(--radius-xl); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-light); overflow: hidden; }
.about-image-placeholder { text-align: center; color: var(--text-light); }
/* Stock / real photos inside image boxes */
.hero-image-box img,
.about-image-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 20px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.about-badge .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge .label { font-size: 0.75rem; opacity: 0.8; margin-top: 4px; }
.about-credential { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.about-credential:last-child { border-bottom: none; }
.credential-icon { width: 36px; height: 36px; background: var(--bg-section); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.credential-text h4 { font-size: 0.9rem; color: var(--primary); margin-bottom: 2px; }
.credential-text p { font-size: 0.825rem; color: var(--text-light); }

/* ===== DIFFERENTIATORS ===== */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.diff-item { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); transition: all 0.25s; }
.diff-item:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.diff-check { width: 40px; height: 40px; background: rgba(16,185,129,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }
.diff-text h4 { color: var(--primary); margin-bottom: 6px; font-size: 1rem; }
.diff-text p { font-size: 0.875rem; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.cta-banner-inner { position: relative; text-align: center; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }

/* ===== CONTACT FORM ===== */
.contact-section { background: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { margin-bottom: 32px; font-size: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.contact-detail h4 { font-size: 0.875rem; color: var(--text-light); font-weight: 500; margin-bottom: 2px; }
.contact-detail p, .contact-detail a { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.contact-detail a:hover { color: var(--teal); }
.contact-hours { background: var(--white); border-radius: var(--radius); padding: 20px; margin-top: 24px; border: 1px solid var(--border-light); }
.contact-hours h4 { color: var(--primary); margin-bottom: 12px; font-size: 0.9rem; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.825rem; padding: 6px 0; border-bottom: 1px solid var(--border-light); color: var(--text-mid); }
.hours-row:last-child { border-bottom: none; }

/* Form */
.contact-form-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact-form-box h3 { color: var(--primary); margin-bottom: 8px; }
.form-subtitle { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group label .required { color: var(--teal); }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); color: var(--text-dark); background: var(--bg-light); transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(0,169,192,0.12); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B849A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-submit { display: flex; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; }

/* ===== FAQ ===== */
.faq-section { background: var(--white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; background: var(--white); transition: background 0.2s; gap: 16px; width: 100%; text-align: left; }
.faq-question:hover { background: var(--bg-light); }
.faq-item.open .faq-question { background: var(--bg-section); color: var(--primary); }
.faq-icon { width: 28px; height: 28px; background: var(--bg-section); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s; color: var(--primary); }
.faq-item.open .faq-icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 16px 24px 20px; font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; border-top: 1px solid var(--border-light); }

/* ===== CONDITIONS GRID ===== */
.conditions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.condition-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--teal); transition: all 0.25s; overflow: hidden; }
.condition-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.condition-card h4 { color: var(--primary); margin-bottom: 10px; font-size: 1rem; }
.condition-card p { font-size: 0.875rem; }

/* ===== PROCEDURES GRID ===== */
.procedures-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.procedure-card { background: var(--bg-section); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border-light); }
.procedure-card h3 { color: var(--primary); margin-bottom: 16px; font-size: 1.1rem; }
.procedure-card p { font-size: 0.9rem; line-height: 1.7; }

/* ===== SIGNS LIST ===== */
.signs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sign-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.sign-check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.sign-item span { font-size: 0.875rem; color: var(--text-mid); }

/* ===== BENEFITS GRID ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-item { text-align: center; padding: 28px 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); transition: all 0.25s; }
.benefit-item:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.benefit-icon { width: 60px; height: 60px; background: var(--bg-section); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--primary); }
.benefit-item h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 8px; }
.benefit-item p { font-size: 0.825rem; }

/* ===== PAGE HERO (secondary pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.page-hero-text { }
.page-hero-image { width: 260px; height: 340px; border-radius: var(--radius-xl) 0 var(--radius-xl) 0; overflow: hidden; border: 2px solid rgba(255,255,255,0.18); box-shadow: 0 16px 48px rgba(0,0,0,0.35); flex-shrink: 0; }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { opacity: 0.4; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 580px; margin-bottom: 32px; line-height: 1.7; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-main { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 48px; }
.footer-logo { display: block; height: auto; width: 200px; min-width: 200px; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.footer-desc { font-size: 0.875rem; line-height: 1.75; margin-bottom: 20px; opacity: 0.75; }
.footer-rating { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 12px 16px; }
.footer-rating .score { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.footer-rating .stars { color: var(--gold); }
.footer-rating .label { font-size: 0.78rem; opacity: 0.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.social-btn:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.footer-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal); margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.875rem; opacity: 0.75; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-nav a:hover { opacity: 1; color: var(--teal); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 0.875rem; }
.footer-contact-item svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a:hover { color: var(--teal); }
.footer-location { margin-bottom: 20px; }
.footer-location h5 { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.footer-location p { font-size: 0.825rem; opacity: 0.75; line-height: 1.6; }
.footer-payments { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.footer-payments p { font-size: 0.78rem; opacity: 0.5; margin-right: 4px; }
.payment-badge { background: rgba(255,255,255,0.1); border-radius: 4px; padding: 4px 8px; font-size: 0.72rem; font-weight: 700; opacity: 0.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.5; }
.footer-bottom a { opacity: 0.7; }
.footer-bottom a:hover { opacity: 1; color: var(--teal); }

/* ===== FLOATING BUBBLES ===== */
.float-wa { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-wa-btn { width: 60px; height: 60px; background: var(--wa-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: all 0.3s; text-decoration: none; }
.float-wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.6); }
.float-wa-btn svg { color: white; }
.float-wa-tooltip { background: var(--text-dark); color: var(--white); font-size: 0.78rem; padding: 6px 12px; border-radius: 100px; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: all 0.3s; pointer-events: none; font-weight: 500; }
.float-wa:hover .float-wa-tooltip { opacity: 1; transform: translateX(0); }
.float-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.5); } 50%{ box-shadow: 0 4px 32px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.15); } }

/* Mobile call bubble */
.float-call { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: none; }
.float-call-btn { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(27,54,100,0.5); transition: all 0.3s; text-decoration: none; }
.float-call-btn:hover { transform: scale(1.1); }
.float-call-btn svg { color: white; }

/* ===== WHY SECTION ===== */
.why-section { background: var(--bg-section); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 16px; }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder { background: var(--bg-section); border-radius: var(--radius-lg); border: 2px dashed var(--border); height: 220px; display: flex; align-items: center; justify-content: center; color: var(--text-light); margin-top: 16px; text-align: center; }
.map-placeholder p { font-size: 0.85rem; }

/* ===== SPECIALTY HERO WITH STATS ===== */
.hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.hero-stat .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===== RESPONSIVE ===== */

/* ── Botón cerrar menú móvil ── */
.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.menu-close:hover { background: var(--bg-section); color: var(--primary); }
.nav-menu.open .menu-close { display: flex; }

@media (max-width: 1024px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > div:first-child { padding: 52px 32px; }
  .hero-image-box { display: none; }
  .hero-avatar-mobile { display: block; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .conditions-grid, .procedures-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  /* CTA band 3-col → apila en tablet */
  [style*="grid-template-columns:1.5fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [style*="grid-template-columns: 1.5fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 28px !important; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .topbar { display: none; }
  /* Móvil: nav queda logo | hamburguesa */
  .nav-cta { display: none; }
  .nav-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; justify-content: flex-start; padding: 100px 24px 40px; z-index: 800; gap: 4px; overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; opacity: 1; visibility: visible; transform: none; display: none; }
  .dropdown.open { display: block; }
  .nav-link { font-size: 1.1rem; padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .signs-list { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .review-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-grid > div:first-child { padding: 40px 24px; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .float-wa { display: none; }
  .float-call { display: block; }
  .trust-strip-inner { gap: 20px; justify-content: flex-start; overflow-x: auto; padding: 0 24px; }
  .page-hero-ctas { flex-direction: column; }
  .about-badge { position: static; margin-top: -40px; margin-left: auto; display: inline-block; }
  .cta-group { flex-direction: column; width: 100%; }
  .cta-group .btn { width: 100%; justify-content: center; }
  /* page-hero: hide portrait on small screens */
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-image { display: none; }
  /* hero index: hide image box on tablet */
  .hero-image-box { display: none; }
  .hero-avatar-mobile { display: block; }
  /* Inline 2-col grids → single column */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.5fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 24px !important; }
  [style*="grid-template-columns: 1.5fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 24px !important; }
  /* Contact header row: stack */
  .contact-section [style*="justify-content:space-between"] { flex-direction: column !important; align-items: flex-start !important; }
  .contact-section [style*="justify-content: space-between"] { flex-direction: column !important; align-items: flex-start !important; }
}

@media (min-width: 769px) {
  .float-call { display: none; }
}
