/* V36: propuesta visual 01 aplicada a toda la web V34, sin reescribir contenidos. */
:root{--kssd-paper:#f5f2ed;--kssd-ink:#18161a;--kssd-accent:#bf2430;--kssd-gold:#d7b579}
body{font-family:Inter,Arial,sans-serif;font-size:16px;line-height:1.65;background:#101014}
.header{background:rgba(14,13,17,.97);border-bottom:1px solid #ffffff25;box-shadow:0 8px 30px #0003}
.header-inner{min-height:90px}.header .menu>a{font-size:14px}.menu .nav-cta{border-radius:5px}
.topbar{background:#bf2430;font-size:11px;letter-spacing:.11em}
/* En la portada, la fotografía es un ambiente difuminado y no sustituye el escudo. */
body.kssd-v36 .hero{background:#141116;isolation:isolate}
body.kssd-v36 .hero:before{content:"";position:absolute;inset:0;z-index:0;background-image:url('assets/galeria/patada-salto-carlos.webp');background-repeat:no-repeat;background-position:right center;background-size:contain;filter:none;opacity:1;pointer-events:none}
body.kssd-v36 .hero:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,#101014f0 0%,#101014bc 38%,#10101424 78%),linear-gradient(0deg,#101014c7,transparent 40%);pointer-events:none}
body.kssd-v36 .hero-grid{position:relative;z-index:2;grid-template-columns:1fr;min-height:635px;gap:20px}
body.kssd-v36 .hero-copy{position:relative;z-index:2}
body.kssd-v36 .hero h1{font-size:clamp(53px,5.9vw,93px);line-height:.94;letter-spacing:-.025em;text-shadow:0 4px 22px #0007}
body.kssd-v36 .hero-copy>p{font-size:clamp(16px,1.4vw,20px);line-height:1.6;max-width:580px;color:#ece6e8}
body.kssd-v36 .hero-actions{display:flex;flex-wrap:wrap;gap:12px}
body.kssd-v36 .hero-actions .btn{min-height:50px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}
body.kssd-v36 .hero-actions .kssd-find-schools{background:#ffffff1c;border:1px solid #ffffffa8;color:white}
body.kssd-v36 .hero-art{display:none!important}
body.kssd-v36 .hero-art>img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
/* Portada: bloques de la propuesta visual, fotografías al 100%. */
.v36-showcase{background:var(--kssd-paper);color:var(--kssd-ink);padding:80px max(25px,calc((100vw - 1180px)/2))}
.v36-showcase-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:35px}
.v36-eyebrow{color:#a92634;font-weight:900;font-size:13px;letter-spacing:.17em;text-transform:uppercase}
.v36-showcase h2{font-size:clamp(39px,4.8vw,65px);line-height:1.05;color:#19171b;letter-spacing:-.02em;margin:12px 0}
.v36-showcase-heading>p{color:#575158;font-size:18px;max-width:455px;line-height:1.65}
.v36-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.v36-card{background:#fff;box-shadow:0 9px 28px #0000000d;border:1px solid #e4dedb;border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.v36-card-photo{height:225px;display:flex;align-items:center;justify-content:center;background:#1a181d;padding:10px}
.v36-card-photo>img{width:100%;height:100%;object-fit:contain!important;object-position:center!important;display:block}
.v36-card-body{display:flex;flex-direction:column;gap:10px;flex:1;padding:24px}
.v36-card h3{font-size:clamp(26px,2.5vw,36px);line-height:1.08;margin:0;color:#1a171b}
.v36-card p{color:#5c565c;font-size:16px;line-height:1.6;margin:0;flex:1}
.v36-card a{color:#a62231;font-weight:850;font-size:15px;padding:8px 0}
.v36-legacy{background:#1a171c;color:white;padding:80px max(25px,calc((100vw - 1180px)/2));display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.v36-legacy h2{font-size:clamp(40px,4.5vw,63px);line-height:1.07;color:#fff;margin:12px 0 23px}
.v36-legacy p{color:#dfd6d9;line-height:1.7;font-size:18px;max-width:590px}
.v36-legacy img{width:100%;height:400px;object-fit:contain!important;background:#27212a;border:1px solid #ffffff35;padding:9px;border-radius:9px}
.v36-invite{background:#bf2430;text-align:center;padding:60px 20px}
.v36-invite h2{font-size:clamp(33px,4.1vw,58px);color:#fff;line-height:1.08;margin:0 auto 20px}
.v36-invite a{display:inline-block;background:#fff;color:#1a171b;font-weight:850;padding:14px 26px;border-radius:4px}
/* Cabeceras de páginas interiores: estructura original, tipografía y contraste nuevos. */
.cms-subnav{padding-top:17px;padding-bottom:17px;font-size:15px}
.cms-subnav a,.cms-subnav button{font-size:14px}
.kssd-profile-links{display:flex;flex-wrap:wrap;gap:11px;padding:22px max(24px,calc((100vw - 1180px)/2));background:#17141a}
.kssd-profile-links .btn{border:1px solid #ffffff44;border-radius:6px;padding:12px 15px;font-size:15px}
.section-heading h2,.contact-section h2{font-size:clamp(44px,6.3vw,88px)}
.section-heading p,.kssd-training-intro p{font-size:18px;line-height:1.7}
.kssd-training-intro p a{color:#ff7481;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.kicker{letter-spacing:.1em}
.white-section,.light-section{background:var(--kssd-paper)!important;color:#1b171b}
.white-section h1,.white-section h2,.white-section h3,.light-section h2{color:#1a171b}
.dark-section,.gallery-section,.contact-section{background:#18151b}
.dark-section h1,.gallery-section h2{color:#fff}
.discipline-grid>*{border-radius:9px;overflow:hidden}
/* Tarjetas de instructores: más aire y foto completa, sin recortar personas. */
.kssd-school-grid{gap:22px}
.kssd-school-card{border:1px solid #ffffff20;border-radius:10px;overflow:hidden;box-shadow:0 9px 25px #0002}
.kssd-school-card>img{height:270px!important;object-fit:contain!important;object-position:center!important;background:#17151a!important;padding:8px}
.kssd-school-copy{padding:24px}.kssd-school-copy p{font-size:16px;line-height:1.6}
.kssd-school-copy a{font-size:15px}
/* Historia y maestros: legibilidad para lectores de todas las edades. */
.hist-chapter{max-width:1230px;margin:25px auto 55px;padding:clamp(25px,4vw,52px);border-radius:12px;background:#f5f2ed;color:#272128;box-shadow:0 18px 45px #00000023}
.hist-chapter h3,.hist-chapter h4{color:#7e1c29}
.hist-chapter p,.hist-chapter li,.historic-document p,.historic-document li{font-size:clamp(16px,1.12vw,18px);line-height:1.77}
.hist-chapter img,.hist-person img{object-fit:contain!important;object-position:center!important;max-width:100%;height:auto;background:#e9e3e0}
.hist-person{gap:30px}
/* La biografía del creador se presenta sobre fondo marfil: párrafos y negritas
   deben ser oscuros. Se limita a las dos páginas del maestro. */
.kssd-master-page .hist-chapter p,
.kssd-master-page .hist-chapter li,
.kssd-master-page .hist-chapter p strong,
.kssd-master-page .hist-chapter p b,
.kssd-master-page .hist-chapter li strong,
.kssd-master-page .hist-chapter li b{color:#28232b!important}
/* Galería, noticias y eventos conservan sus datos y JS. */
.cms-photos img,.cms-photo img,.kssd-local-photos img,.gallery-item img,.emperado-photo-grid img,.cms-news-card img{object-fit:contain!important;object-position:center!important;background:#18151b}
.cms-photos figure,.cms-photo,.kssd-local-photos figure,.cms-news-card,.kssd-calendar-panel,.kssd-news-panel{border-radius:10px;overflow:hidden}
.cms-filter button,.kssd-calendar-controls button{min-height:39px}
/* Contacto: no se cambia ningún campo ni comportamiento. */
.kssd-contact-form{border-radius:12px;box-shadow:0 18px 45px #0003}
.kssd-contact-form label{font-size:15px;font-weight:800}
.kssd-contact-form input,.kssd-contact-form textarea{min-height:45px;font-size:16px}
.footer{background:#0b0b0e;border-top:1px solid #ffffff18}
@media(max-width:950px){body.kssd-v36 .hero-grid{grid-template-columns:1fr;min-height:0}body.kssd-v36 .hero-copy{padding:55px 0 0}body.kssd-v36 .hero-art{height:330px;min-height:0;margin-bottom:30px}.v36-cards{grid-template-columns:1fr}.v36-showcase-heading{display:block}.v36-legacy{grid-template-columns:1fr;gap:25px}.v36-card-photo{height:260px}.hist-chapter{margin:15px 15px 45px}}
@media(max-width:600px){.wrap{width:calc(100% - 36px)}.topbar{font-size:9px}body.kssd-v36 .hero h1{font-size:clamp(45px,11vw,64px)}body.kssd-v36 .hero-art{height:270px}body.kssd-v36 .hero-actions .btn{width:100%}.v36-showcase,.v36-legacy{padding:55px 20px}.v36-card-photo{height:230px}.v36-legacy img{height:290px}.hist-chapter{padding:24px 18px}.kssd-school-card>img{height:230px!important}}
/* En móvil, fotografía completa en una zona propia debajo del texto. */
@media(max-width:950px){body.kssd-v36 .hero:before{inset:auto 0 0;height:300px;background-position:center bottom;background-size:contain}body.kssd-v36 .hero-grid{padding-bottom:300px}body.kssd-v36 .hero:after{background:linear-gradient(180deg,#101014ec 0%,#101014e8 40%,#10101408 80%)}}
@media(max-width:600px){body.kssd-v36 .hero:before{height:245px}body.kssd-v36 .hero-grid{padding-bottom:245px}}

/* V44: round emblem is the discreet private-area entry point. */
.kssd-header-seal{display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none}
.kssd-header-seal .kssd-seal-image{width:100%;height:100%;object-fit:contain;display:block}
.kssd-header-seal:focus-visible{outline:3px solid #ff5266;outline-offset:4px;border-radius:50%}

/* V45: contraste legible en las áreas de fondo claro del sistema y su historia.
   Los estilos antiguos de historia eran blancos para un fondo oscuro. */
.white-section p,.white-section li,.white-section p strong,.white-section li strong,
.hist-chapter p,.hist-chapter li,.hist-chapter p strong,.hist-chapter li strong,
.hist-chapter .historic-document p,.hist-chapter .historic-document strong,
.hist-chapter .history-article p{color:#28232b!important}
.white-section .section-heading>p,.white-section .discipline p{color:#514a52!important}
