/* =============================================
   DRA. BERENICE RODRIGUEZ - STYLES COMPLETOS
============================================= */
:root {
  --navy: #183044;
  --teal: #48aaa9;
  --deep: #238d8d;
  --light: #e9f7f4;
  --muted: #647782;
  --white: #fff;
  --cream: #f8fbfa;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; color: var(--navy); background: #fff; font-family: 'DM Sans', sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }
.section { padding: 110px 0; }
section[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 3px solid #197f80; outline-offset: 4px; }

/* HEADER Y NAVEGACION */
.header { position: sticky; top: 0; z-index: 50; background: #fffefaed; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid #e8eeed; transition: box-shadow .45s ease, background .45s ease; }
.header.scrolled { box-shadow: 0 10px 35px #1b4b4a12; background: #ffffffef; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 87px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; line-height: 1.1; }
.brand-symbol { font-size: 41px; color: var(--teal); font-weight: 700; }
.brand strong { display: block; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.6px; }
.brand small { display: block; font-size: 9px; letter-spacing: 2.3px; margin-top: 5px; font-weight: 700; color: #6a888e; }
.nav nav { display: flex; gap: 27px; align-items: center; }
.nav nav > a { font-size: 13px; font-weight: 700; transition: color .2s ease; }
.nav nav > a:hover { color: var(--deep); }
.nav-cta { background: var(--deep); color: #fff !important; padding: 13px 20px; border-radius: 100px; }
.menu-toggle { display: none; }

/* BOTONES */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border-radius: 40px; padding: 15px 27px; font-size: 13px; font-weight: 700; transition: transform .35s var(--ease-premium), box-shadow .35s ease, background .35s ease; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-outline { border: 1px solid var(--teal); color: var(--deep); }
.btn-dark { background: var(--navy); color: #fff; }
.btn::before, .nav-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, #ffffff40 48%, transparent 75%); transform: translateX(-130%); transition: transform .65s ease; pointer-events: none; }
.btn:hover::before, .nav-cta:hover::before { transform: translateX(130%); }
.btn:hover, .nav-cta:hover, .floating-whatsapp:hover { transform: translateY(-4px); box-shadow: 0 15px 25px #247f7940; }
.btn:active { transform: translateY(-1px) scale(.98); }
.nav-cta, .floating-whatsapp { position: relative; overflow: hidden; transition: transform .35s var(--ease-premium), box-shadow .35s ease; }

/* HERO */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #eaf8f5, #e9f5f3 60%, #d2eeeb); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 20%, #ffffff98 0, transparent 36%); z-index: -1; }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 42px; }
.eyebrow, .kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--deep); }
.sparkle { font-size: 19px; margin-right: 8px; }
.hero h1, h2 { font-family: Manrope, sans-serif; letter-spacing: -2.7px; line-height: 1.16; }
h1 { font-size: clamp(40px, 4.7vw, 66px); font-weight: 700; margin: 27px 0 21px; max-width: 690px; }
h1 em, h2 em { font-style: normal; color: var(--deep); }
.hero-copy > p { color: #607984; max-width: 470px; font-size: 16px; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 37px; flex-wrap: wrap; }
.text-link { font-size: 13px; font-weight: 800; }
.text-link span { color: var(--deep); margin-left: 7px; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 65px; font-size: 12px; color: #6d8488; line-height: 1.5; }
.hero-trust strong { color: var(--navy); }
.trust-icon { width: 42px; height: 42px; border: 1px solid #95d0ca; border-radius: 50%; display: grid; place-items: center; font-size: 25px; color: var(--deep); }
.hero-visual { position: relative; height: 600px; display: flex; align-items: flex-end; justify-content: center; }
.photo-orbit { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #b5e3dd; right: -28px; bottom: 16px; animation: orbit-breathe 8s ease-in-out infinite alternate; }
.portrait-frame { position: relative; width: 380px; height: 540px; z-index: 1; overflow: hidden; border-radius: 210px 210px 15px 15px; box-shadow: 0 25px 55px #327d7a25; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.float-badge { position: absolute; z-index: 2; left: -25px; bottom: 68px; display: flex; gap: 13px; align-items: center; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: 0 15px 40px #18414422; animation: badge-hover 5s ease-in-out infinite alternate; }
.float-badge > span { display: grid; place-items: center; border-radius: 50%; background: #dff6ef; color: var(--deep); font-size: 24px; width: 45px; height: 45px; }
.float-badge strong, .float-badge small { display: block; line-height: 1.3; }
.float-badge strong { font-size: 14px; }
.float-badge small { font-size: 11px; color: #738588; margin-top: 3px; }
.hero-decor { position: absolute; z-index: 1; color: #fff; font-size: 80px; top: 55px; right: -24px; }

/* SOBRE MI: FOTOGRAFIA DE FONDO CON CAPA BLANCA */
.intro { position: relative; overflow: hidden; background: linear-gradient(#fffffff0, #ffffffe0), url('assets/fondo-sobre-mi.jpg') center / cover no-repeat; }
.intro .container { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: center; }
.about-photo { position: relative; max-width: 440px; height: 535px; border-radius: 190px 190px 14px 14px; background: #d6e8e7; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 190px 190px 14px 14px; }
.about-sticker { position: absolute; bottom: 35px; right: -34px; background: var(--teal); box-shadow: 0 10px 40px #17363c24; border-radius: 8px; padding: 20px 24px; font-size: 14px; font-weight: 700; color: #fff; }
.about-sticker span { font-size: 23px; color: #fff; margin-left: 12px; }
.about-copy h2, .section-top h2, .video-copy h2, .center-head h2, .contact h2 { font-size: clamp(35px, 4vw, 52px); margin: 15px 0 24px; }
.about-copy > p { color: var(--muted); font-size: 15px; }
.highlight-note { display: flex; gap: 15px; margin: 29px 0; padding: 19px 20px; background: #e9f7f4; border-radius: 12px; color: #365c61; font-size: 14px; }
.highlight-note span { font-size: 32px; color: var(--deep); }
.highlight-note p { margin: 0; }

/* SERVICIOS */
.services { background: var(--cream); }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 38px; }
.section-top h2 { margin-bottom: 0; max-width: 680px; }
.section-top > p { max-width: 245px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.service-card { position: relative; min-height: 255px; padding: 28px 22px; border: 1px solid #edf0ef; background: #fff; border-radius: 18px; transition: transform .5s var(--ease-premium), box-shadow .5s var(--ease-premium), border-color .5s ease; }
.service-icon, .services .service-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: #258f8c; color: #fff; font-size: 26px; line-height: 1; box-shadow: 0 6px 18px #4fb6b433; transition: transform .35s ease, background .35s ease, box-shadow .35s ease; }
.services .service-icon i { color: #fff; font-size: 26px; transition: transform .35s ease; }
.service-number { position: absolute; top: 31px; right: 25px; font-size: 11px; font-weight: 800; color: #afc3c3; }
.service-card h3 { font: 800 16px/1.4 Manrope, sans-serif; margin: 29px 0 9px; }
.service-card p { color: #71838a; font-size: 12px; line-height: 1.7; margin: 0; }
.service-featured { background: #e3f6f2; border: 1px solid #c8e9e4; }
.new-tag { margin-top: 22px; color: var(--deep); font-size: 9px; letter-spacing: 1.2px; font-weight: 800; }
.service-featured h3 { margin-top: 9px; }
.services-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 32px; font-size: 14px; }
.services-footer p { color: #72838a; }
.services-footer a { font-weight: 800; color: var(--deep); }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 55px #2158571b; border-color: #9fd8d2; }
  .service-card:hover .service-icon { background: #176b69; transform: translateY(-5px) rotate(-3deg); box-shadow: 0 12px 25px #258f8c47; }
  .service-card:hover .service-icon i { transform: scale(1.12); }
  .service-card:hover .service-number { color: var(--deep); }
}

/* VIDEO CON TELEFONO ORIGINAL */
.video-section { overflow: hidden; background: #e9f5f3; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.video-copy h2 { max-width: 540px; }
.video-copy p { color: #677d83; max-width: 420px; }
.video-hint { font-size: 12px; margin-bottom: 29px; }
.video-wrap { min-height: 525px; display: grid; place-items: center; position: relative; }
.video-circle { position: absolute; width: 420px; height: 420px; background: #d0eae5; border-radius: 50%; pointer-events: none; }
.video-phone { position: relative; isolation: isolate; z-index: 2; width: 260px; max-width: 100%; aspect-ratio: 9 / 16; background: #b3d7d3; border: 8px solid #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 25px 60px #2d66643c; transition: transform .6s var(--ease-premium), box-shadow .6s ease; }
.video-phone video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-placeholder { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; width: 100%; height: 100%; border: 0; padding: 20px; background: linear-gradient(#153f4933, #132f40b8), url('assets/berenice-1.jpg') center 25% / cover; color: #fff; text-align: center; cursor: pointer; pointer-events: auto; opacity: 1; visibility: visible; transition: opacity .35s ease, visibility .35s ease; }
.video-placeholder.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.video-placeholder strong { font-size: 17px; font-weight: 700; }
.video-placeholder small { font-size: 12px; margin-top: 5px; }
.video-play { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 19px; border: 2px solid #ffffff99; border-radius: 50%; font-size: 24px; transition: transform .3s ease, background .3s ease; pointer-events: none; }
.video-placeholder strong, .video-placeholder small { pointer-events: none; }
.video-placeholder:hover .video-play { transform: scale(1.12); background: #ffffff26; }
.video-controls { position: absolute; z-index: 4; bottom: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s ease; }
.video-phone.is-playing .video-controls, .video-phone.is-paused .video-controls, .video-phone:focus-within .video-controls { opacity: 1; visibility: visible; pointer-events: auto; }
.video-controls button { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #000a; color: #fff; cursor: pointer; transition: background .3s ease; }
.video-controls button:hover { background: #258f8c; }
@media (hover: hover) { .video-phone:not(:fullscreen):hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 34px 75px #2d666451; } }
/* Fullscreen expande el marco; el video conserva su proporción 9:16. */
.video-phone:fullscreen, .video-phone:-webkit-full-screen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; transform: none !important; background: #000; }
.video-phone:fullscreen video, .video-phone:-webkit-full-screen video { width: 100%; height: 100%; object-fit: contain; }
.video-phone:fullscreen .video-controls { bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; right: 20px; }

/* GALERIA */
.gallery { background: #fff; padding-top: 95px; padding-bottom: 95px; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.gallery-heading h2 { font-size: clamp(32px, 4vw, 49px); margin: 15px 0 0; max-width: 760px; }
.gallery-heading > p { font-size: 14px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .85fr .85fr; gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 23px; margin: 0; height: 400px; background: #e8e2e8; }
.gallery-item img { height: 100%; width: 100%; object-fit: cover; object-position: center 25%; }
.gallery-item:first-child img { object-position: center 16%; }
.gallery-item figcaption { position: absolute; bottom: 0; left: 0; right: 0; color: #fff; background: linear-gradient(transparent, #1b2a36b5); font-size: 13px; font-weight: 700; padding: 55px 20px 20px; }

/* TESTIMONIOS */
.testimonials { background: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-grid blockquote { padding: 32px; margin: 0; border-radius: 16px; border: 1px solid #e4eeeb; background: #fbfdfc; }
.testimonial-grid blockquote p { font-size: 14px; line-height: 1.9; min-height: 118px; }
.stars { letter-spacing: 3px; color: #d9ae62; }
.testimonial-grid footer { color: var(--deep); font-size: 12px; font-weight: 800; }

/* UBICACIONES CON FOTOS Y FILTRO OSCURO */
.locations { background: #f3faf8; }
.center-head { text-align: center; margin-bottom: 45px; }
.center-head h2 { margin-bottom: 12px; }
.center-head p { color: var(--muted); font-size: 14px; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.locations .location-card { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; padding: 35px; border-radius: 24px; border: 1px solid #ffffff26; display: flex; flex-direction: column; justify-content: flex-end; background-color: #183044; background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform .4s ease, box-shadow .4s ease; }
.location-bolognia { background-image: url('assets/ubicacion-bolognia.jpeg'); }
.location-satelite { background-image: url('assets/ubicacion-satelite.jpeg'); }
.locations .location-card::before { content: ''; position: absolute; inset: 0; background: #000b; z-index: -1; transition: background .4s ease; pointer-events: none; }
.location-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.location-icon { display: none; }
.locations .location-top span { color: #8ce1d5; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.locations .location-card h3 { color: #fff; font: 800 26px/1.35 Manrope, sans-serif; margin: 0 0 14px; }
.locations .location-card p { color: #fffffff0; font-size: 14px; line-height: 1.7; margin: 0 0 22px; max-width: 450px; }
.locations .location-card a { color: #fff; width: fit-content; font-size: 13px; font-weight: 800; border-bottom: 1px solid #8ce1d5; padding-bottom: 5px; transition: color .3s ease; }
@media (hover: hover) { .locations .location-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px #0003; } .locations .location-card:hover::before { background: #0009; } .locations .location-card a:hover { color: #8ce1d5; } }

/* CONTACTO */
.contact { background: #fff; }
.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 65px; padding: 65px 75px; background: #bce5df; border-radius: 25px; }
.contact h2 { max-width: 520px; }
.contact-panel > div > p { color: #4d6c73; margin-bottom: 28px; }
.contact-methods { display: flex; justify-content: center; flex-direction: column; gap: 25px; }
.contact-methods > div { padding-bottom: 22px; border-bottom: 1px solid #80c5be; }
.contact-methods small { display: block; font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: #397f80; margin-bottom: 6px; }
.contact-methods a { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.social-links { display: flex; gap: 18px; }
.social-links a { font-size: 14px; }
.footer { background: var(--navy); color: #fff; }
.footer-inner { min-height: 125px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand-symbol { color: #85d6ce; }
.footer .brand small { color: #b3c6c9; }
.footer p, .footer a { font-size: 11px; color: #c9d6d9; }
.floating-whatsapp { position: fixed; z-index: 30; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; background: #278d79; color: #fff; border-radius: 100px; padding: 12px 18px; box-shadow: 0 8px 30px #1746395e; font-weight: 800; font-size: 13px; }
.floating-whatsapp:first-letter { font-size: 20px; }

/* ANIMACIONES PREMIUM */
.hero-copy .eyebrow { animation: hero-in .95s .1s both var(--ease-premium); }
.hero-copy h1 { animation: hero-in 1.1s .22s both var(--ease-premium); }
.hero-copy > p { animation: hero-in 1.1s .38s both var(--ease-premium); }
.hero-copy .actions { animation: hero-in 1.1s .51s both var(--ease-premium); }
.hero-visual { animation: hero-visual-in 1.3s .22s both var(--ease-premium); }
.hero-trust { animation: hero-in 1s .66s both var(--ease-premium); }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-visual-in { from { opacity: 0; transform: translate(28px, 22px) scale(.965); } to { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes orbit-breathe { to { transform: scale(1.045) translateY(-8px); } }
@keyframes badge-hover { to { transform: translateY(-10px); } }
.js-motion .reveal:not(.hero-copy):not(.hero-visual):not(.hero-trust) { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium); transition-delay: var(--reveal-delay, 0ms); }
.js-motion .reveal.is-visible:not(.hero-copy):not(.hero-visual):not(.hero-trust) { opacity: 1; transform: translateY(0); }
.portrait-frame img, .about-photo img, .gallery-item img { transition: transform 1s var(--ease-premium); }
@media (hover: hover) {
  .portrait-frame:hover img, .about-photo:hover img, .gallery-item:hover img { transform: scale(1.045); }
  .about-photo:hover, .gallery-item:hover, .testimonial-grid blockquote:hover { transform: translateY(-7px); box-shadow: 0 25px 50px #24595715; }
  .gallery-item:hover { box-shadow: 0 25px 50px #18304426; }
}
.about-photo, .gallery-item, .testimonial-grid blockquote { transition: transform .5s var(--ease-premium), box-shadow .5s var(--ease-premium); }
.text-link span, .services-footer a, .social-links a { transition: color .3s ease, letter-spacing .3s ease; }
.text-link:hover span, .services-footer a:hover, .social-links a:hover { color: #155d60; letter-spacing: .35px; }

/* TABLET */
@media (max-width: 1000px) {
  .nav nav { gap: 13px; }
  .nav nav > a { font-size: 12px; }
  .hero-grid { gap: 10px; }
  .about-grid { gap: 55px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { height: 540px; }
  .photo-orbit { width: 440px; height: 440px; }
  .portrait-frame { width: 340px; height: 495px; }
  .contact-panel { padding: 48px; }
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:last-child { display: none; }
  .gallery-item { height: 390px; }
}

/* MOVIL */
@media (max-width: 720px) {
  .container { width: min(calc(100% - 36px), 500px); }
  .section { padding: 74px 0; }
  .nav { height: 72px; }
  .menu-toggle { display: block; background: transparent; border: 0; font-size: 25px; color: var(--navy); cursor: pointer; }
  .nav nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: 0 18px 20px #193a3b16; flex-direction: column; align-items: stretch; padding: 20px 24px; }
  .nav nav.open { display: flex; }
  .nav nav > a { font-size: 14px; }
  .hero-grid, .about-grid, .video-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 53px; gap: 0; }
  .hero h1 { font-size: 42px; letter-spacing: -1.4px; }
  h2 { letter-spacing: -1.2px; }
  .hero-visual { height: 460px; margin-top: 25px; }
  .photo-orbit { width: 350px; height: 350px; right: 0; bottom: 15px; }
  .portrait-frame { width: 280px; height: 420px; }
  .float-badge { left: 0; bottom: 30px; padding: 10px 12px; }
  .float-badge strong { font-size: 12px; }
  .float-badge small { font-size: 9px; }
  .hero-trust { margin-top: 38px; }
  .about-grid { gap: 40px; }
  .about-photo { height: 420px; width: 80%; margin: auto; }
  .about-sticker { right: -22px; }
  .section-top { display: block; }
  .section-top > p { max-width: 100%; }
  .service-grid, .testimonial-grid, .location-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 245px; }
  .video-grid { gap: 10px; }
  .video-wrap { min-height: 500px; }
  .video-phone { width: 260px; }
  .gallery-heading { display: block; }
  .gallery-grid { gap: 14px; }
  .gallery-item { height: 300px; }
  .gallery-item figcaption { font-size: 11px; }
  .contact-panel { padding: 35px 25px; gap: 35px; }
  .contact-methods a { font-size: 15px; }
  .footer-inner { flex-wrap: wrap; padding: 25px 0; }
  .footer-inner p { order: 3; width: 100%; margin: 0; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { font-size: 22px; padding: 9px 16px; }
  .locations .location-card { min-height: 320px; padding: 26px; }
  .locations .location-card h3 { font-size: 23px; }
  .services .service-icon { width: 58px; height: 58px; border-radius: 15px; }
  .services .service-icon i { font-size: 23px; }
}
@media (max-width: 480px) {
  .service-grid, .testimonial-grid, .location-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 180px; }
  .service-card h3 { margin-top: 20px; }
  .services-footer { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: 37px; }
  .actions { gap: 16px; }
  .about-photo { width: 85%; }
  .testimonial-grid blockquote p { min-height: auto; }
  .section-top h2, .about-copy h2, .video-copy h2, .center-head h2, .contact h2 { font-size: 36px; }
  .photo-orbit { right: -45px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { height: 250px; }
  .gallery-item:first-child img { object-position: center 20%; }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===================================
   LOGO OFICIAL - HEADER Y FOOTER
=================================== */

/* Logo del encabezado */
.header .brand-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: 230px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Animación hover */
@media (hover: hover) {
    .header .brand:hover .brand-logo {
        transform: scale(1.04);
    }
}

/* Logo en el footer */
.footer .brand-logo {
    display: block;
    width: auto;
    height: 65px;
    max-width: 230px;
    object-fit: contain;
}

/* Adaptación a celulares */
@media (max-width: 720px) {
    .header .brand-logo {
        height: 47px;
        max-width: 190px;
    }

    .footer .brand-logo {
        height: 55px;
        max-width: 200px;
    }
}

/* ==========================================
   CONTACTO - DOCTORALIA
========================================== */

.contact {
    background: #ffffff;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 65px;

    padding: 70px 75px;

    background: #bce5df;
    border-radius: 26px;

    position: relative;
    overflow: hidden;
}

.contact-copy {
    position: relative;
    z-index: 2;
}

.contact-copy h2 {
    max-width: 530px;
}

.contact-copy p {
    color: #4d6c73;
    max-width: 440px;
    margin-bottom: 30px;
}

.contact-copy .btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.contact-copy .btn i {
    font-size: 14px;
}

/* Tarjeta Doctoralia */

.doctoralia-info {
    padding: 35px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow: 0 15px 35px rgba(33, 97, 91, 0.08);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.doctoralia-info:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(33, 97, 91, 0.15);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 23px;

    background: #258f8c;
    color: #ffffff;

    border-radius: 16px;
    font-size: 25px;
}

.doctoralia-info small {
    display: block;

    color: #258f8c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.doctoralia-info h3 {
    font-family: Manrope, sans-serif;
    font-size: 23px;
    line-height: 1.3;

    margin: 14px 0;
    color: #183044;
}

.doctoralia-info p {
    font-size: 14px;
    color: #647782;
    line-height: 1.8;
    margin-bottom: 22px;
}

.doctoralia-info a {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #258f8c;
    font-size: 13px;
    font-weight: 800;

    transition: gap 0.3s ease;
}

.doctoralia-info a:hover {
    gap: 18px;
}


/* ==========================================
   FOOTER PREMIUM
========================================== */

.footer {
    background: #183044;
    color: #ffffff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
    gap: 50px;

    padding-top: 75px;
    padding-bottom: 65px;
}

/* Logo */

.footer-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-logo img {
    width: auto;
    height: 75px;
    max-width: 220px;
    object-fit: contain;

    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.04);
}

.footer-about p {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.9;
    color: #c4d1d5;
}

/* Columnas */

.footer-column h4 {
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 800;

    margin: 0 0 25px;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 14px;
}

.footer-column a {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #c4d1d5;
    font-size: 13px;
    line-height: 1.5;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-column a:hover {
    color: #8ce1d5;
    transform: translateX(4px);
}

/* Iconos */

.footer-socials i,
.footer-contact i {
    width: 17px;
    text-align: center;
    font-size: 15px;
    color: #8ce1d5;
}

/* Footer inferior */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    padding: 24px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #b2c4c8;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #8ce1d5;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.footer-bottom a:hover {
    color: #ffffff;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1000px) {

    .contact-panel {
        gap: 35px;
        padding: 50px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

}

@media (max-width: 720px) {

    .contact-panel {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        gap: 30px;
    }

    .doctoralia-info {
        padding: 27px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 22px;

        padding-top: 55px;
        padding-bottom: 45px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        height: 65px;
    }

    .footer-column h4 {
        margin-bottom: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}

@media (max-width: 480px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .contact-copy .btn {
        font-size: 12px;
        padding: 14px 20px;
    }

}

/* ==========================================
   PRELOADER MÉDICO PREMIUM
========================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    background: #f8fcfb;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

/* Contenido centrado */

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 25px;
    text-align: center;
}

/* Corazón */

.preloader-heart {
    width: 105px;
    height: 105px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: heartBeat 1.4s ease-in-out infinite;
}

.preloader-heart svg {
    width: 100%;
    height: 100%;

    overflow: visible;

    filter: drop-shadow(
        0 8px 15px rgba(72, 170, 169, 0.20)
    );
}

.heart-shape {
    fill: #48aaa9;
}

.heart-line {
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Texto */

.preloader-content h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 800;

    color: #183044;
    margin: 0 0 7px;
}

.preloader-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #238d8d;

    margin: 0;
    letter-spacing: 0.4px;
}

/* Puntitos animados */

.preloader-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 25px;
}

.preloader-dots span {
    width: 7px;
    height: 7px;

    background: #48aaa9;
    border-radius: 50%;

    animation: dotPulse 1.2s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animación del corazón */

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.12);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

    60% {
        transform: scale(1);
    }
}

/* Animación de puntos */

@keyframes dotPulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-7px);
    }
}

/* Salida suave */

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Responsive */

@media (max-width: 480px) {
    .preloader-heart {
        width: 90px;
        height: 90px;
    }

    .preloader-content h3 {
        font-size: 17px;
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .preloader-heart,
    .preloader-dots span {
        animation: none;
    }

    .preloader {
        transition: none;
    }
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP PREMIUM
========================================== */

.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 15px 20px;
    border-radius: 50px;

    background: #25D366;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);

    animation: whatsappPulse 2.8s ease-in-out infinite;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.floating-whatsapp i {
    font-size: 25px;
}

/* Hover */

@media (hover: hover) {
    .floating-whatsapp:hover {
        background: #1ebe5d;
        color: #ffffff;
        transform: translateY(-5px);
        box-shadow: 0 14px 35px rgba(37, 211, 102, 0.45);
        animation-play-state: paused;
    }
}

/* Animación suave */

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.30);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(37, 211, 102, 0.35),
            0 0 0 9px rgba(37, 211, 102, 0.10);
    }
}

/* Versión móvil: solo icono */

@media (max-width: 720px) {
    .floating-whatsapp {
        width: 60px;
        height: 60px;
        padding: 0;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
    }

    .floating-whatsapp span {
        display: none;
    }

    .floating-whatsapp i {
        font-size: 30px;
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp {
        animation: none;
        transition: none;
    }
}

/* ==========================================
   SERVICIOS INTERACTIVOS
   COMPATIBLE CON SAFARI Y CHROME
========================================== */

/* Cuadrícula de servicios */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

/* Tarjetas */
.services .service-card {
    display: block;
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;

    background: #ffffff;
    border: 1px solid #e2eeeb;
    border-radius: 20px;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Botón principal */
.services .service-trigger {
    -webkit-appearance: none;
    appearance: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 190px;

    padding: 25px;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    color: #183044;
    text-align: left;
    font-family: inherit;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Icono */
.services .service-trigger .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    background: #258f8c;
    color: #ffffff;

    border-radius: 16px;
    font-size: 25px;
}

.services .service-trigger .service-icon i {
    color: #ffffff;
}

/* Número */
.services .service-trigger .service-number {
    position: absolute;
    top: 28px;
    right: 25px;

    color: #afc3c3;
    font-size: 11px;
    font-weight: 800;
}

/* Título */
.services .service-trigger h3 {
    margin: 25px 30px 0 0;

    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;

    color: #183044;
}

/* Símbolo + */
.services .service-arrow {
    position: absolute;
    right: 25px;
    bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: #e9f7f4;
    color: #258f8c;

    border-radius: 50%;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

/* ==========================================
   DESCRIPCIÓN CERRADA
========================================== */

.services .service-description {
    display: block;

    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;

    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Texto de descripción */
.services .service-description p {
    display: block;

    margin: 0;
    padding: 0 25px 25px;

    font-size: 13px;
    line-height: 1.85;
    color: #647782;

    overflow-wrap: break-word;
}

/* ==========================================
   TARJETA ABIERTA
========================================== */

.services .service-card.is-open {
    background: #f3faf8;
    border-color: #8bcfc6;
}

.services .service-card.is-open .service-description {
    max-height: 1500px;
    opacity: 1;
    visibility: visible;
}

.services .service-card.is-open .service-arrow {
    transform: rotate(45deg);
    background: #258f8c;
    color: #ffffff;
}

/* Hover */
@media (hover: hover) {
    .services .service-card:hover {
        transform: translateY(-5px);
        border-color: #8bcfc6;
        box-shadow: 0 15px 35px rgba(37, 143, 140, 0.12);
    }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1000px) {
    .services .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .services .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services .service-trigger {
        min-height: 170px;
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .services .service-grid {
        grid-template-columns: 1fr;
    }

    .services .service-trigger {
        min-height: 160px;
    }

    .services .service-description p {
        padding: 0 22px 24px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .services .service-description,
    .services .service-arrow,
    .services .service-card {
        transition: none;
    }
}