/* =========================================================
   CLASES DE NATACIÓN — style.css (unificado y limpio)
   ========================================================= */

/* ---------- Variables ---------- */
:root{--primary:#1ebe5d !important;--accent:#0072ff;--accent-dark:#0a3d8f;--light-bg:#f0f9ff;--muted:#e0f7fa;--text:#003366;--ink:#0f2942;--shadow:0 8px 20px rgba(0,0,0,.06);--soft:0 4px 12px rgba(0,0,0,.05);--cta-cream:#fff8e1;--cta-border:#ff9800;--cta-ink:#e65100;--cta:#ff9800}

/* ---------- Reset básico ---------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box} html{scroll-behavior:smooth} body{font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif;color:var(--text);background:#fff;line-height:1.58}

/* ---------- Tipografía párrafos (unificada) ---------- */
p{font-size:.98rem;line-height:1.55;color:var(--text)}

/* =========================================================
   NAV WRAPPER
   ========================================================= */
.site-header,.header-nav,header:has(nav){background:#fff !important;color:inherit}

/* =========================================================
   HERO
   ========================================================= */
.hero-header,.hero,.home-hero,.page-hero{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#fff;min-height:60vh;padding:clamp(56px,7vw,90px) 0;background:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),var(--hero-bg,url('../img/fondo.webp')) center/cover no-repeat !important}
.hero-header .content,.hero .content,.home-hero .content,.page-hero .content{max-width:820px;margin:0 auto;padding:0 1rem}
.hero-header h1,.hero h1,.home-hero h1,.page-hero h1{font-family:'Poppins','Segoe UI',system-ui,-apple-system,Arial,sans-serif;font-weight:700;letter-spacing:-0.015em;line-height:1.15;font-size:clamp(1.9rem,3vw,2.4rem);max-width:22ch;margin:0 auto 1.3rem;color:#fff;text-shadow:0 3px 10px rgba(0,0,0,.4)}
@media (min-width:1200px){.hero-header h1,.hero h1,.home-hero h1,.page-hero h1{font-size:3rem}}
@media (min-width:1600px){.hero-header h1,.hero h1,.home-hero h1,.page-hero h1{font-size:3.2rem}}
.hero-header p,.hero p,.home-hero p,.page-hero p{max-width:700px;margin:0 auto 1.75rem;color:#eaf3ff;text-align:center}
.hero-header h1{text-shadow:0 4px 18px rgba(0,0,0,.5)}
.btn-container{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;position:relative;z-index:1;max-width:920px;margin-inline:auto}
.btn-whatsapp,.btn-call,.btn-google{flex:0 1 320px;min-width:240px;padding:.75rem;font-weight:600;border:none;border-radius:999px;font-size:1rem;color:#fff;text-decoration:none;text-shadow:0 2px 4px rgba(0,0,0,.35);transition:transform .2s,box-shadow .2s,opacity .2s}
.btn-whatsapp{background:var(--primary)} .btn-call{background:var(--accent)} .btn-google{background:#1a73e8}
.btn-whatsapp:hover,.btn-call:hover,.btn-google:hover{opacity:.9;transform:translateY(-2px);box-shadow:0 6px 8px rgba(0,0,0,.3)}
@media (max-width:720px){.btn-whatsapp,.btn-call{flex:1 1 100%}}

/* =========================================================
   Secciones estándar
   ========================================================= */
section{padding:2rem 1rem;max-width:1000px;margin:3rem auto;background:#fff;border-radius:12px;box-shadow:var(--shadow);text-align:center}
.features,.faq-container,.reviews,.secondary-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-top:1.5rem}
.feature,.faq-item,.review-card,.secondary-link{background:var(--light-bg);padding:1.5rem;border-radius:12px;box-shadow:var(--soft)}
.secondary-link a{display:block;font-size:1.1rem;font-weight:600;color:var(--text);text-decoration:none;transition:color .3s}
.secondary-link a:hover{color:var(--accent);text-decoration:underline}
.curriculum-box,.duo-columns{margin:3rem auto;max-width:1000px;background:var(--light-bg);padding:2rem;border-radius:12px;text-align:left;box-shadow:var(--shadow)}
.curriculum-box ul,.duo-columns ul{list-style:none;padding-left:1rem}
.curriculum-box li,.duo-columns li{margin-bottom:.75rem;font-size:1rem}
.curriculum-box li::before,.duo-columns li::before{content:"✔️";margin-right:.5rem}
@media (max-width:768px){section div[style*="flex-wrap: wrap"]{flex-direction:column !important;text-align:center} section div[style*="flex-wrap: wrap"]>div{flex:1 1 100% !important}}

/* ===== CTA NARANJA ===== */
section.cta{background:var(--cta-cream);border:3px solid var(--cta-border);border-radius:14px;padding:1.2rem;max-width:760px;margin:1.75rem auto;text-align:center;box-shadow:0 6px 14px rgba(0,0,0,.06)}
section.cta h3{color:var(--cta-ink);margin:.2rem 0 .4rem}
section.cta .price{font-weight:900;color:var(--cta-ink);font-size:1.25rem;margin:.25rem 0 .6rem}
.btn-cta{background:var(--cta);color:#fff}
.btn-cta:hover{transform:translateY(-2px);opacity:.95}

/* =========================================================
   Imágenes responsivas
   ========================================================= */
.media-frame{position:relative;width:100%;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.ratio-4x3{aspect-ratio:4/3} .ratio-16x9{aspect-ratio:16/9} .ratio-3x4{aspect-ratio:3/4}
.media-frame[data-fallback]::before{content:"";display:block;width:100%;padding-top:var(--ratio,75%)}
.media-frame[data-fallback]>img{position:absolute;inset:0}
.media-frame>img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.media-frame.portrait>img{object-position:50% 20%}
img[loading="lazy"]{background:#f6f7f8}
.portrait-sm{max-width:360px;margin:0 auto}
@media (max-width:768px){.portrait-sm{width:72%;max-width:260px} section div[style*="flex-wrap: wrap"]>div:has(.portrait-sm){flex:0 0 auto !important}}
@media (max-width:380px){.portrait-sm{max-width:240px}}
.verano-info h2{font-size:clamp(1.25rem,3.5vw,1.6rem);line-height:1.25;margin-bottom:.8rem}
.verano-info p{font-size:.98rem;line-height:1.55;margin:0}
@media (max-width:380px){.verano-info h2{font-size:1.2rem} .verano-info p{font-size:.97rem}}

/* =========================================================
   Layout QS (Quiénes somos)
   ========================================================= */
.flex{display:flex;flex-wrap:wrap;align-items:center;gap:2rem}
.right{flex-direction:row-reverse}
.media-col{flex:1 1 40%;max-width:40%}
.text-col{flex:1 1 50%;max-width:50%}
.card{background:var(--light-bg);border-radius:12px;padding:1.25rem;box-shadow:var(--soft);text-align:left}
.bullets{list-style:none;margin:0;padding:0}
.bullets li{position:relative;padding-left:1.6rem;margin:.5rem 0}
.bullets li::before{content:"✔";position:absolute;left:.2rem;top:0;color:#12b886;font-weight:900}
.btn{display:inline-block;padding:.72rem 1.2rem;border-radius:30px;color:#fff;text-decoration:none;box-shadow:0 4px 10px rgba(0,0,0,.12);transition:.2s}
.btn-primary{background:var(--accent)}
.btn-primary:hover,.btn-wa:hover,.btn-cta:hover{transform:translateY(-2px);opacity:.95}
.btn-wa{background:var(--primary)}
.btn-outline{background:#fff;color:var(--accent);border:2px solid var(--accent)}
.btn-outline:hover{background:var(--accent);color:#fff}
@media (max-width:900px){.media-col,.text-col{flex:1 1 100%;max-width:100%} .media-col{display:flex;justify-content:center}}

/* =========================================================
   Timeline QS (consolidado + mobile)
   ========================================================= */
.timeline{--pin:16px;position:relative;margin:1rem auto 0;max-width:860px}
.timeline::before{content:"";position:absolute;left:calc(50% - 2px);top:calc(var(--pin)/2);bottom:calc(var(--pin)/2);width:4px;background:#e6f0ff;border-radius:4px}
.timeline::after{content:"";position:absolute;top:0;left:calc(50% - (var(--pin)/2));width:var(--pin);height:var(--pin);background:var(--accent);border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 4px rgba(0,114,255,.1);z-index:1}
.timeline .t-row:first-child .t-pin{margin-top:0}
.t-row{display:grid;grid-template-columns:1fr 32px 1fr;align-items:start;gap:1rem;margin:1.1rem 0}
.t-pin{width:16px;height:16px;background:var(--accent);border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 4px rgba(0,114,255,.1);justify-self:center;margin-top:.25rem}
.t-card{background:#fff;border:1px solid #edf2ff;border-radius:12px;padding:1rem;box-shadow:var(--shadow);text-align:left}
.t-title{font-weight:800;color:var(--accent-dark);margin-bottom:.35rem}
@media (max-width:900px){.t-row{grid-template-columns:1fr 20px 1fr}}
@media (max-width:768px){.timeline{--pin:14px;--line-w:4px;padding-left:8px} .timeline::before{left:calc(14px - var(--line-w)/2)} .timeline::after{left:calc(14px - var(--pin)/2)} .t-row{grid-template-columns:28px 1fr;gap:.75rem;margin:1rem 0} .t-row>.t-pin{grid-column:1;justify-self:center;align-self:start;width:14px;height:14px;margin-top:.3rem} .t-row>.t-card{grid-column:2;padding:.95rem 1rem;line-height:1.45;overflow-wrap:anywhere} .t-row>div:not(.t-card):not(.t-pin){display:none !important} .media-frame.portrait{max-width:300px}}
@media (max-width:380px){.t-row{grid-template-columns:24px 1fr} .t-pin{width:12px;height:12px} .media-frame.portrait{max-width:260px}}

/* =========================================================
   Reseñas — carrusel
   ========================================================= */
.reviews-carousel{position:relative;overflow:hidden;width:100%;cursor:grab}
.reviews-carousel.grabbing{cursor:grabbing}
.reviews-carousel h2{margin-bottom:1rem}
.reviews{display:grid;grid-template-columns:1fr}
.reviews-track{display:flex;gap:1rem;align-items:stretch;will-change:transform;padding:.5rem 0 1rem;transform:translateX(0)}
.review-card{min-width:320px;max-width:360px;background:var(--light-bg);padding:1.25rem;border-radius:12px;box-shadow:var(--soft);text-align:left;display:flex;flex-direction:column;justify-content:space-between}
.review-card .stars{font-size:1rem;color:#f5a623;letter-spacing:1px;margin-bottom:.35rem}
.review-card p{margin-bottom:.6rem}
.review-card span{font-size:.95rem;color:#445566}
.reviews-actions{margin-top:1rem;display:flex;justify-content:center}
.reviews-actions .btn-google{background:#1a73e8;color:#fff;text-decoration:none;padding:.8rem 1.2rem;border-radius:999px;font-weight:600}
.reviews-actions .btn-google:hover{opacity:.92}
@media (max-width:480px){.review-card{min-width:86vw}}

/* =========================================================
   Titulaciones / Diplomas
   ========================================================= */
.certs{max-width:1000px;margin:clamp(24px,5vw,48px) auto;padding:clamp(16px,2.2vw,24px) clamp(12px,2vw,18px);background:#fff;border:1px solid #e8eef4;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.06);text-align:center}
.certs h2{color:var(--accent);font-size:clamp(1.2rem,3.2vw,1.6rem);margin-bottom:.3rem}
.certs-lead{color:var(--text);font-size:.98rem;margin:0 auto 1rem;max-width:680px}
.certs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:clamp(10px,1.6vw,18px);align-items:start;justify-items:center}
.certs .cert-item{display:flex;flex-direction:column;align-items:center;gap:.35rem}
.certs .cert-item .thumb,.certs .cert-item figure{width:100%;aspect-ratio:4/3;border:1px solid #e8eef4;border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(24,39,75,.07);padding:clamp(6px,1vw,10px);display:grid;place-items:center;overflow:hidden}
.cert-thumb{width:110px;aspect-ratio:4/3;border:0;padding:0;border-radius:10px;overflow:hidden;box-shadow:0 3px 8px rgba(0,0,0,.08);background:#f7fbff;cursor:pointer;transition:transform .15s,box-shadow .15s}
.cert-thumb:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.12)}
.cert-thumb img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:640px){.cert-thumb{width:94px;border-radius:8px}}
img.diploma,img[alt*="diploma" i],img[alt*="certificado" i],img[alt*="certificación" i],img[src*="diploma" i],img[src*="cert" i]{width:100% !important;height:auto !important;max-height:460px !important;object-fit:contain !important;background:#fff;border:1px solid #e8eef4;border-radius:12px;box-shadow:0 6px 18px rgba(24,39,75,.07);margin:0 auto}

/* =========================================================
   Blog list
   ========================================================= */
.blog-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-top:1.5rem}
.blog-item{background:var(--light-bg);border-radius:10px;padding:1rem;box-shadow:0 2px 8px rgba(0,0,0,.08);transition:transform .2s}
.blog-item:hover{transform:translateY(-4px)}
.blog-item a{text-decoration:none;color:var(--accent);font-weight:600;font-size:1.05rem}
.blog-item a:hover{text-decoration:underline}

/* ====== Lightbox de diplomas ====== */
.certs-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:2000}
.certs-modal.active{display:flex}
.certs-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.certs-view{position:relative;max-width:min(92vw,1000px);max-height:86vh;margin:0 1rem;background:#000;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.certs-view img{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;margin:0 auto}
.certs-view figcaption{color:#fff;padding:.6rem .9rem;font-size:.95rem;background:rgba(0,0,0,.35)}
.certs-close{position:absolute;top:.4rem;right:.5rem;width:36px;height:36px;border-radius:999px;border:0;background:rgba(255,255,255,.9);color:#0b2b52;font-size:1.4rem;line-height:1;cursor:pointer}
.certs-close:hover{background:#fff}

/* Utilidad: precio grande azul en tarjetas informativas */
.price-big{font-size:2rem;color:var(--accent);font-weight:700;margin:.4rem 0 .6rem}

/* Botones dentro de la tarjeta */
.card .btn-call,.card .btn-whatsapp{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;min-width:auto !important;padding-inline:1.35rem}
@media (max-width:560px){.card .btn-call,.card .btn-whatsapp{display:flex;width:100%;margin:0 0 .6rem 0}}
.secondary-link .card-actions{margin-top:.7rem;display:flex;justify-content:center}
.secondary-link .card-actions .btn-whatsapp,.secondary-link .card-actions .btn-call{min-width:auto;padding:.55rem .95rem;font-size:.95rem}

/* =========================================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================================= */
.why-us{background:linear-gradient(180deg,#f0f9ff 0%,#ffffff 100%);border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.05);padding:clamp(2rem,5vw,3.5rem) 1rem;text-align:center;max-width:1100px;margin:3rem auto}
.why-us .lead{color:var(--ink);font-size:1.05rem;margin-bottom:2rem}
.why-us-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}
.why-us .feature{background:#fff;border:2px solid var(--muted);border-radius:12px;padding:1.25rem 1rem;transition:transform .25s ease,box-shadow .25s ease}
.why-us .feature:hover{transform:translateY(-4px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
.why-us .feature h3{color:var(--accent-dark);font-size:1.1rem;margin-bottom:.35rem}
.why-us .feature p{font-size:.98rem;color:var(--text);line-height:1.55}
.curriculum-box{background:linear-gradient(180deg,#f9fcff 0%,#ffffff 100%);border:1px solid #e3f2fd;border-radius:14px;padding:2rem;box-shadow:var(--shadow)}
.curriculum-box p{font-size:1.05rem;line-height:1.65;color:var(--text);margin-bottom:1.25rem}
.curriculum-box ul{list-style:none;padding-left:0}
.curriculum-box li{margin-bottom:.85rem;line-height:1.55;position:relative;padding-left:1.6rem}
.curriculum-box li::before{content:"🔹";position:absolute;left:0;top:0}
.curriculum-box li strong{color:var(--accent-dark)}

/* =========================================================
   SECCIÓN INTERACTIVA — ¿Por qué elegirnos?
   ========================================================= */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem;margin-top:1.8rem;justify-items:center}
.why-item{background:var(--light-bg);border:2px solid var(--muted);border-radius:14px;padding:1.2rem 1rem;color:var(--accent-dark);font-size:1rem;font-weight:500;text-align:center;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.05);transition:transform .25s ease,box-shadow .25s ease,background .25s ease;width:100%;max-width:260px;position:relative;overflow:hidden}
.why-item:hover{transform:translateY(-3px);box-shadow:0 6px 14px rgba(0,0,0,.08)}
.why-item.active{background:#e3f2fd}
.why-text{max-height:0;opacity:0;overflow:hidden;margin-top:.5rem;font-size:.93rem;line-height:1.55;color:var(--text);transition:max-height .45s ease,opacity .35s ease,transform .4s ease;transform:translateY(10px)}
.why-item.active .why-text{max-height:260px;opacity:1;transform:translateY(0)}
@media (max-width:768px){.why-grid{grid-template-columns:repeat(2,1fr)} .why-item{font-size:.95rem;padding:1rem .75rem;max-width:none} .why-text{font-size:.9rem}}

/* =========================================================
   TITULOS UNIFICADOS
   ========================================================= */
h2{font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif;font-weight:700;font-size:clamp(1.3rem,3.2vw,1.8rem);color:var(--accent);text-align:center;line-height:1.25;margin:2rem auto 1.2rem;letter-spacing:-0.015em}
@media (max-width:768px){h2{font-size:1.25rem;margin:1.6rem auto 1rem}}

/* =========================================================
   SECCIÓN DE PRECIOS
   ========================================================= */
.pricing-section{background:linear-gradient(180deg,#f9fcff 0%,#ffffff 100%);border-radius:16px;box-shadow:var(--soft);padding:clamp(1.5rem,4vw,2rem);max-width:1000px;margin:3rem auto;text-align:center}
.pricing-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;justify-items:center;align-items:stretch}
.price-card{background:#fff;border:2px solid var(--muted);border-radius:12px;padding:1.4rem 1.1rem;text-align:center;transition:transform .25s ease,box-shadow .25s ease;box-shadow:0 4px 10px rgba(0,0,0,.05);display:flex;flex-direction:column;justify-content:center;height:100%;min-height:190px;width:100%;max-width:340px}
.price-card:hover{transform:translateY(-3px);box-shadow:0 6px 14px rgba(0,0,0,.08)}
.price-card h3{color:var(--accent-dark);font-size:1.05rem;font-weight:650;margin-bottom:.35rem}
.price-card p{font-size:.94rem;line-height:1.5;color:var(--text);margin-bottom:.35rem}
.price-card .highlight{font-size:1.05rem;margin:.25rem 0 .25rem;font-weight:700;color:var(--accent)}
.price-card.special{background:#fffbe9;border:2px solid #ffcc80}
.price-card.special h3,.price-card.special .highlight{color:#e65100}
@media (max-width:768px){.pricing-grid{grid-template-columns:repeat(2,1fr);gap:1rem}}
@media (max-width:540px){.pricing-grid{grid-template-columns:1fr} .price-card{max-width:100%;min-height:auto}}

/* =========================================================
   BLOQUE — Conoce al Profesor Álvaro
   ========================================================= */
.about-profesor{background:linear-gradient(180deg,#f9fcff 0%,#ffffff 100%);border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.05);padding:clamp(2rem,5vw,3rem);margin:3rem auto;max-width:1000px;text-align:center}
.profesor-wrapper{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2rem;margin-top:1.5rem}
.profesor-foto{flex:1 1 320px;max-width:340px;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.profesor-foto img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top;}
.profesor-texto{flex:1 1 50%;text-align:left;color:var(--text);font-size:1rem;line-height:1.65}
.profesor-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;margin:1.2rem 0}
.prof-card{background:var(--light-bg);border:1px solid var(--muted);border-radius:10px;padding:.8rem 1rem;font-weight:500;font-size:.95rem;box-shadow:0 2px 6px rgba(0,0,0,.05);transition:transform .25s ease,box-shadow .25s ease}
.prof-card:hover{transform:translateY(-3px);box-shadow:0 6px 12px rgba(0,0,0,.08)}
.prof-quote{background:#eef6ff;border-left:4px solid var(--accent);padding:.9rem 1rem;font-style:italic;color:var(--accent-dark);border-radius:8px;margin-top:1rem}
@media (max-width:820px){.profesor-wrapper{flex-direction:column;text-align:center} .profesor-foto{max-width:260px;margin-bottom:.8rem} .profesor-texto{text-align:center;font-size:.97rem} .profesor-cards{grid-template-columns:1fr;gap:.7rem;max-width:320px;margin:1rem auto} .prof-card{font-size:.92rem;padding:.7rem .9rem;border-radius:12px} .prof-quote{font-size:.9rem;line-height:1.45;margin-top:1.2rem;max-width:360px;margin-inline:auto}}
/* === SECCIÓN INTERACTIVA — Cuadrados compactos y expandibles === */
.why-grid{align-items:start;gap:0.5rem}
.why-item{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60px;padding:0.6rem 0.5rem;font-size:0.95rem;overflow:hidden;transition:all 0.35s ease}
.why-item.active{min-height:180px}
.why-text{max-height:0;opacity:0;overflow:hidden;transform:translateY(8px);transition:max-height .4s ease,opacity .3s ease,transform .35s ease}
.why-item.active .why-text{max-height:160px;opacity:1;transform:translateY(0)}
@media(max-width:768px){.why-item{min-height:80px;padding:0.5rem 0.4rem}.why-item.active{min-height:160px}}
#metodologia{text-align:justify;text-justify:inter-word;max-width:900px;margin:3rem auto;padding:2rem;line-height:1.65}
#metodologia p,#metodologia li{text-align:inherit;margin-bottom:1rem}
#metodologia ul{max-width:760px;margin:0 auto;padding-left:1.25rem}
.bloques-natacion{display:flex;flex-direction:column;gap:2rem;margin:2.5rem auto;max-width:920px;padding:0 1rem}
.bloque{display:flex;flex-wrap:wrap;align-items:center;gap:1.5rem}
.bloque:nth-child(even){flex-direction:row-reverse}
.bloque figure{flex:1 1 38%;border-radius:12px;overflow:hidden;box-shadow:0 6px 14px rgba(0,0,0,.07);max-height:260px}
.bloque img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform 0.4s ease}
.bloque img:hover{transform:scale(1.04)}
.bloque .texto{flex:1 1 56%}
.bloque h2{font-size:1.35rem;margin-bottom:.4rem;color:var(--accent-dark,#004a7c)}
.bloque p{font-size:.95rem;line-height:1.55;color:#444;margin:0}
@media(max-width:768px){.bloque{flex-direction:column;text-align:center;gap:1rem}.bloque figure{flex:1 1 100%;width:100%;max-height:180px;border-radius:10px}.bloque img{object-position:center top}.bloque .texto{flex:1 1 100%}.bloque h2{font-size:1.15rem;margin-top:.6rem}.bloque p{font-size:.92rem;line-height:1.5}}
.bloque{margin-bottom:1.8rem}
.bloque .texto{padding-bottom:0.8rem}
.bloques-natacion{margin-bottom:3rem}
@media(max-width:768px){.bloque{margin-bottom:2.2rem}.bloque .texto{padding-bottom:1rem}}
@supports(-webkit-touch-callout:none){.about-profesor{margin-left:0!important;margin-right:0!important;width:100vw!important;overflow-x:hidden!important}.about-profesor .profesor-wrapper,.about-profesor .profesor-foto img{width:100%!important;max-width:100%!important;height:auto!important;display:block}body{overflow-x:hidden!important}}
.about-profesor .profesor-wrapper{justify-content:center!important;align-items:center!important;text-align:center!important;margin:0 auto!important}
.about-profesor .profesor-foto{margin:0 auto!important;display:flex!important;justify-content:center!important;align-items:center!important}
.about-profesor .profesor-foto img{display:block!important;margin:0 auto!important}
.about-profesor .profesor-texto p{margin-top:0.8rem;line-height:1.7}
#metodologia .btn-container{display:flex;justify-content:center;align-items:center;width:100%;margin-top:1.2rem}
#metodologia .btn-whatsapp{display:inline-flex;justify-content:center;align-items:center;text-align:center;max-width:320px;width:90%;margin:0 auto}
section[aria-labelledby="perfil"]{background-color:#f5f9ff;padding:2rem 1rem}
section[aria-labelledby="perfil"] .media-col{background-color:#f5f9ff}
section[aria-labelledby="perfil"] .media-frame{background-color:#f5f9ff}
