/* =========================
   VARIABLES / PALETA
========================= */
:root{
--beige-main:#F5F1EB;
--beige-light:#F8F6F2;
--beige-border:#E2DDD5;

--blue-main:#1877F2;
--blue-dark:#4267B2;
--blue-soft:#E4EEFA;

--text-main:#111111;
--text-muted:#65676B;

--shadow-soft:0 6px 18px rgba(0,0,0,0.08);
--shadow-medium:0 10px 26px rgba(0,0,0,0.12);

--radius:12px;
}

/* =========================
RESET
========================= */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, sans-serif;
}

html{
scroll-behavior: smooth;
background:var(--beige-light);
color:var(--text-main);
}

section{
padding:70px 20px;
}

.container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

/* =========================
NAVBAR
========================= */
.navbar{
position:fixed;
top:0;
width:100%;
background:var(--beige-main);
border-bottom:1px solid var(--beige-border);
z-index:3000;
transition:0.3s;
}

.navbar.scrolled{
background:rgba(245,241,235,0.85);
backdrop-filter:blur(6px);
}

.nav-container{
display:flex;
align-items:center;
justify-content:space-between;
max-width:1200px;
margin:auto;
padding:15px 20px;
}

.nav-logo img{
height:40px;
opacity:.9;
transition:.25s;
}

.nav-logo img:hover{
transform:scale(1.2);
}

.menu-toggle{
display:none;
background:none;
border:none;
font-size:26px;
cursor:pointer;
}

.nav-menu{
display:flex;
list-style:none;
}

.nav-menu li{
margin-left:20px;
}

.nav-menu a{
text-decoration:none;
font-weight:600;
color:var(--text-main);
padding:8px 12px;
border-radius:6px;
transition:.2s;
}

.nav-menu a:hover{
background:var(--blue-soft);
color:var(--blue-main);
}

/* =========================
HERO
========================= */
.hero{
padding-top:80px;
display:flex;
justify-content:center;
background:white;
}

.hero-img{
width:100%;
max-width:1100px;
height:auto;
display:block;
}

.hero-capacitacion,
.hero-diagnosticos{
padding:120px 20px 80px;
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
position:relative;
overflow:hidden;
background:linear-gradient(135deg,#E4EEFA,#F5F1EB);
}

.hero-capacitacion::before,
.hero-diagnosticos::before{
content:"";
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
pointer-events:none;

background: radial-gradient(circle at 20% 30%, rgba(24,119,242,0.15) 2px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(24,119,242,0.12) 2px, transparent 2px), linear-gradient(120deg, transparent 48%, rgba(24,119,242,0.08) 50%, transparent 52%);

background-size:220px 220px;
opacity:0.35;
}

.hero-capacitacion h1,
.hero-diagnosticos h1{
font-size:2.5rem;
color:var(--blue-dark);
position:relative;
}

.hero-capacitacion h1::after,
.hero-diagnosticos h1::after{
content:"";
display:block;
width:60%;
height:4px;
background:var(--blue-main);
margin:12px auto 18px;
border-radius:3px;
}

.hero-capacitacion p,
.hero-diagnosticos p{
font-size:1.1rem;
color:var(--text-muted);
}

/* =========================
CARRUSEL
========================= */
.carousel-container{
position:relative;
width:100%;
height:450px;
overflow:hidden;
}

.carousel-track{
display:flex;
height:100%;
transform:translateX(-100%);
}

.carousel-track img{
min-width:100%;
height:100%;
object-fit:contain;
}

.arrow{
position:absolute;
top:50%;
transform:translateY(-50%);
background:var(--blue-main);
color:white;
border:none;
font-size:28px;
padding:10px 14px;
border-radius:50%;
cursor:pointer;
z-index:1000;
}

.arrow.left{left:20px}
.arrow.right{right:20px}

.dots{
position:absolute;
bottom:15px;
width:100%;
display:flex;
justify-content:center;
gap:10px;
}

.dots span{
width:12px;
height:12px;
background:var(--blue-soft);
border-radius:50%;
}

.dots span.active{
background:var(--blue-main);
}

/* =========================
SOBRE FUNDACION
========================= */
.sobre-fundacion{
padding:80px 20px;
background:linear-gradient(180deg,#ffffff,#F8F6F2,#E4EEFA);
}

.sobre-fundacion .container{
max-width:900px;
text-align:center;
}

.sobre-fundacion h2{
font-size:2.5rem;
color:var(--blue-main);
margin-bottom:15px;
}

.sobre-fundacion h2::after{
content:"";
display:block;
width:80px;
height:4px;
margin:12px auto;
background:linear-gradient(90deg,var(--blue-main),var(--blue-dark));
}

.sobre-fundacion p{
font-size:1.1rem;
line-height:1.8;
color:var(--text-muted);
margin-bottom:18px;
}

.sobre-fundacion h3{
margin-top:35px;
margin-bottom:10px;
font-size:1.5rem;
color:var(--blue-dark);
}

.fundacion-linea{
width:80px;
height:3px;
margin:30px auto;
border:none;
border-radius:2px;
background:linear-gradient(90deg,var(--blue-main),var(--blue-dark));
opacity:.6;
}

/* CONTENEDOR */
.organigrama {
    padding: 80px 20px;
    background: var(--blue-soft);
    text-align: center;
}

.org {
    max-width: 1000px;
    margin: auto;
}

/* NIVELES */
.nivel {
    margin-bottom: 20px;
}

/* LÍNEAS */
.linea-vertical {
    width: 2px;
    height: 40px;
    background: #bbb;
    margin: auto;
}

/* COLUMNAS */
.columnas {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.columnas::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #bbb;
}

.columna {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);

    display: flex;
    flex-direction: column;
    gap: 10px;

    max-height: 500px;
    overflow-y: auto;
}

.titulo-col {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

/* TARJETAS */
.persona-card {
    background: white;
    border: 1px solid var(--beige-border);
    border-radius: 10px;
    padding: 12px;
    margin: 10px auto;
    width: 100%;
    max-width: 140px;
    cursor: pointer;
    transition: 0.3s;
}

.persona-card:hover {
    transform: translateY(-5px);
}

/* FOTO */
.persona-card img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

/* GRANDE */
.persona-card.grande {
    width: 220px;
}

.persona-card.grande img {
    width: 110px;
    height: 110px;
}

/* TEXTO */
.persona-card h4 {
    font-size: 0.8rem;
    color: var(--blue-main);
}

.persona-card h5 {
    font-size: 1rem;
}

.persona-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================
   MODAL
========================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
}

#modal-img {
    margin-top: 80px;
    max-width: 320px;
    border-radius: 10px;
}

#modal-texto {
    color: white;
    margin-top: 15px;
    font-size: 18px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* =========================
EQUIPO INTERDISCIPLINARIO
========================= */

.equipo-interdisciplinario{
    margin-top:60px;
    text-align:center;
}

.equipo-interdisciplinario h3{
    margin-bottom:30px;
    color:var(--blue-dark);
}

/* CONTENEDOR GRANDE */
.bloque-equipo{
    border:2px solid var(--beige-border);
    border-radius:40px;
    padding:30px 20px;
    background:var(--beige-light);
}

/* FILAS */
.fila-equipo{
    position:relative;
    margin-bottom:35px;
    padding:20px;
    border-radius:30px;
    background:white;
    box-shadow:var(--shadow-soft);
}

/* TITULO DE FILA */
.titulo-fila{
    position:absolute;
    top:-12px;
    left:20px;
    background:var(--beige-light);
    padding:0 10px;
    font-weight:bold;
    color:var(--text-muted);
}

/* CONTENEDOR PERSONAS */
.personas-fila{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}

/* TARJETAS CHICAS */
.mini-card{
    width:100px;
    text-align:center;
    cursor:pointer;
    transition:0.3s;
}

.mini-card img{
    width:100%;
    height:100px;
    object-fit:cover;
    border-radius:10px;
    border:2px solid var(--beige-border);
    background:var(--blue-soft);
    transition:0.3s;
}

.mini-card span{
    display:block;
    margin-top:6px;
    font-size:12px;
    color:var(--text-muted);
}

/* HOVER */
.mini-card:hover img{
    transform:scale(1.08);
    border-color:var(--blue-main);
}

/* =========================
ASISTENCIA / CARDS
========================= */
.modalidades-atencion{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
    text-align:center;
}

.intro-modalidades{
    background:#eaf1fb;
    color:#1c3c6b;
    padding:25px;
    margin:40px 0;
    border-radius:8px;
    text-align:center;
    font-size:18px;
}

.modalidades-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.modalidad-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
    display:flex;
    flex-direction:column;
}

.modalidad-card img{
    width:100%;
    height:300px;
    object-fit:contain;
    background:#f8f8f8;
    padding:10px;
    box-sizing:border-box;
}

.modalidad-card h3{
    margin:20px 0 10px;
}

.modalidad-card p{
    padding:0 20px 20px;
}
.asistencia{
padding:70px 20px;
background:linear-gradient(180deg,var(--beige-light),#fff);
}

.asistencia h2{
text-align:center;
color:var(--blue-dark);
margin-bottom:45px;
font-size:2.2rem;
}

.asistencia-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.asis-card{
background:white;
padding:28px;
border-radius:var(--radius);
border:1px solid var(--beige-border);
box-shadow:var(--shadow-soft);
transition: 0.3s;
}

.asis-card:hover{
transform:translateY(-6px);
box-shadow:var(--shadow-medium);
}

.asis-card h3{
color:var(--blue-main);
margin-bottom:12px;
}

.asis-card p{
color:var(--text-muted);
line-height:1.6;
}

/* CONTENEDOR DEL MODAL */

/* CAJA INTERNA */
.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 20px;
    text-align: center;

    display: flex;
    flex-direction: column;
}

/* IMAGEN */
#modal-img {
    max-width: 150px;
    border-radius: 10px;
    margin: 0 auto 15px;
}

/* TEXTO CON SCROLL */
#modal-texto {
    overflow-y: auto;
    max-height: 300px;
    padding-right: 10px;
    text-align: left;
    line-height: 1.6;
}

/* SCROLL LINDO */
#modal-texto::-webkit-scrollbar {
    width: 6px;
}

#modal-texto::-webkit-scrollbar-thumb {
    background: var(--blue-main);
    border-radius: 5px;
}

/* =========================
CONTACTO
========================= */
.contacto{
padding:80px 20px;
background:var(--beige-main);
text-align:center;
}

.contacto h2{
font-size:2.4rem;
color:var(--blue-dark);
margin-bottom:40px;
}

.mapas-grid{
display:grid;
grid-template-columns:repeat(2,minmax(300px,1fr));
gap:30px;
max-width:1100px;
margin:40px auto;
}

.mapa-box{
background:white;
padding:15px;
border-radius:var(--radius);
border:1px solid var(--beige-border);
text-align:center;
box-shadow:var(--shadow-soft);
}

.mapa-box iframe{
width:100%;
height:260px;
border:0;
border-radius:10px;
}

.direccion{
margin:12px 0;
font-weight:600;
color:var(--text-muted);
}

.btn-mapa,
.btn-whatsapp{
display:inline-block;
padding:10px 18px;
border-radius:8px;
font-weight:bold;
text-decoration:none;
transition:.25s;
}

.btn-mapa{
background:var(--blue-main);
color:white;
}

.btn-mapa:hover{
background:var(--blue-dark);
}

.btn-whatsapp{
background:#25D366;
color:white;
margin-top:10px;
}

.btn-whatsapp:hover{
background:#1ebe5d;
transform:translateY(-2px);
}

/* CONTENEDOR DE BOTONES */
.botones-mapa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* UNIFICAMOS LOS BOTONES */
.btn-mapa,
.btn-whatsapp {
    display: inline-block;
    width: 180px;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s;
}

/* FORMULARIO */
.form-contacto{
max-width:600px;
margin:auto;
display:flex;
flex-direction:column;
gap:15px;
}

.form-contacto input,
.form-contacto textarea{
padding:14px;
border-radius:8px;
border:1px solid var(--beige-border);
font-size:16px;
background:white;
}

.form-contacto input:focus,
.form-contacto textarea:focus{
outline:none;
border-color:var(--blue-main);
box-shadow:0 0 8px rgba(24,119,242,.2);
}

.form-contacto textarea{
min-height:140px;
}

.form-contacto button{
background:var(--blue-main);
color:white;
padding:16px;
border-radius:8px;
border:none;
font-size:16px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

.form-contacto button:hover{
background:var(--blue-dark);
transform:translateY(-2px);
}

/* =========================
FOOTER
========================= */
.footer{
background:var(--blue-dark);
color:white;
padding-top:50px;
}

.footer-container{
max-width:1200px;
margin:auto;
padding:0 20px 40px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
}

.footer-col p{
opacity:.9;
line-height:1.6;
}

.social-icons{
display:flex;
gap:18px;
font-size:22px;
}

.social-icons a{
color:white;
background:rgba(255,255,255,.15);
width:42px;
height:42px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
transition:.3s;
}

.social-icons a:hover{
background:white;
color:var(--blue-dark);
transform:translateY(-4px) scale(1.1);
}

.footer-bottom{
text-align:center;
padding:15px;
background:rgba(0,0,0,.15);
font-size:14px;
}

/* =========================
ANIMACIONES SCROLL
========================= */
.reveal{
opacity:0;
transform:translateY(40px);
transition:.8s ease;
}

.reveal.visible{
opacity:1;
transform:translateY(0);
}

/* =========================
SCROLLBAR PERSONALIZADA
========================= */
::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-thumb{
background:var(--blue-main);
border-radius:5px;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width:768px){

.menu-toggle{
display:block;
}

.nav-menu{
position:absolute;
top:100%;
left:0;
width:100%;
background:var(--beige-main);
border-bottom:1px solid var(--beige-border);
flex-direction:column;
display:none;
padding:10px 20px;
}

.nav-menu.active{
display:flex;
}

.nav-menu li{
margin:10px 0;
}

.mapas-grid{
grid-template-columns:1fr;
}

}

/* ============================= */
/* DIAGNOSTICOS Y TRATAMIENTOS */
/* ============================= */

.diag-contenido{
    padding:60px 20px;
    background:#f7f9fc;
}

.diag-contenido .container{
    max-width:1000px;
    margin:auto;
}

/* TITULO (mismo estilo que asistencia) */

.titulo-seccion{
    font-size:32px;
    text-align:center;
    margin-bottom:40px;
    color:#1c3c6b;
}

/* PARRAFOS */

.diag-contenido p{
    font-size:17px;
    line-height:1.7;
    margin-bottom:20px;
    color:#333;
}

/* BLOQUES DESTACADOS */

.diag-contenido .destacado{
    background:white;
    border-left:5px solid #1c3c6b;
    padding:25px;
    margin:35px 0;
    border-radius:6px;
    box-shadow:0 6px 14px rgba(0,0,0,0.06);
}

.diag-contenido .destacado h3{
    margin-bottom:15px;
    color:#1c3c6b;
}

/* LISTA */

.diag-contenido ul{
    padding-left:20px;
}

.diag-contenido li{
    margin-bottom:8px;
}

/* FRASE DESTACADA */

.frase-destacada{
    font-size:20px;
    font-style:italic;
    text-align:center;
    margin:40px 0;
    padding:30px;
    background:#eaf1fb;
    border-radius:8px;
    color:#1c3c6b;
}

/* RESULTADO FINAL */

.resultado{
    background:#1c3c6b;
    color:white;
    padding:25px;
    margin:40px 0;
    border-radius:8px;
    text-align:center;
    font-size:18px;
}

/* NOTA */

.diag-contenido .nota{
    font-size:14px;
    color:#555;
    margin-top:30px;
}

/* =========================
CAPACITACIONES (SOLO ESTA SECCIÓN)
========================= */

.capacitaciones {
    background: linear-gradient(180deg, #ffffff, var(--beige-light));
}

/* GRID */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* TARJETAS */
.curso-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--beige-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: 0.3s;
}

.curso-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

/* TEXTO */
.curso-card h3 {
    color: var(--blue-dark);
    margin-bottom: 10px;
    padding-right: 90px;
    line-height: 1.2;
}

.curso-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.curso-card ul {
    padding-left: 18px;
    margin-bottom: 20px;
}

.curso-card li {
    margin-bottom: 6px;
}

/* BOTÓN */
.btn-info {
    display: inline-block;
    background: var(--blue-main);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s;
}

.btn-info:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

/* BADGES */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.badge.online {
    background: #28a745;
}

.badge.semi {
    background: #ff9800;
}

/* INSCRIPCIÓN */
.inscripcion-box {
    margin-top: 60px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.inscripcion-box h3 {
    color: var(--blue-dark);
}

.inscripcion-box p {
    color: var(--text-muted);
}

.inscripcion-box .mail {
    font-weight: bold;
    color: var(--blue-main);
}

.info-cursos {
    background: var(--blue-soft);
    border-left: 5px solid var(--blue-main);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: left;
}

.info-cursos p {
    margin-bottom: 10px;
    color: var(--text-main);
}

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

@media (max-width: 992px){

    .columnas{
        flex-direction:column;
        gap:30px;
    }

    .columnas::before{
        display:none;
    }

    .columna{
        width:100%;
        max-height:none;
        overflow:visible;
    }

    .persona-card{
        max-width:220px;
    }

    .persona-card.grande{
        width:220px;
    }

    .linea-vertical{
        height:25px;
    }

}

/* CELULARES */

@media (max-width:768px){

    .organigrama{
        padding:50px 15px;
    }

    .persona-card{
        max-width:250px;
        margin:15px auto;
    }

    .persona-card img{
        width:90px;
        height:90px;
    }

    .persona-card.grande{
        width:240px;
    }

    .persona-card.grande img{
        width:110px;
        height:110px;
    }

    .bloque-equipo{
        padding:20px 10px;
        border-radius:20px;
    }

    .fila-equipo{
        padding:25px 10px 15px;
    }

    .titulo-fila{
        position:static;
        display:block;
        margin-bottom:15px;
        text-align:center;
        background:transparent;
    }

    .personas-fila{
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
        gap:18px;
        justify-items:center;
    }

    .mini-card{
        width:100px;
    }

}