/* ==============================
   VARIABLES
================================ */

:root{

    --azul:#2E2C56;
    --bordo:#A33A42;
    --blanco:#FFFFFF;
    --gris:#F6F7F8;
    --texto:#2F2F2F;

    --fuente-titulos:'Playfair Display', serif;
    --fuente-texto:'Poppins', sans-serif;

    --ancho-maximo:1200px;

}
/*.contenedor{
    width:90%;
    max-width:1200px;
    margin:auto;
}
*/
.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header{

    padding:6px 0;

    background:#2E5FA7;

    border-bottom:none;
}
.barra-superior{
    height:4px;
    background:var(--bordo);
}


.header .contenedor{
    display:flex;
    align-items:center;
    gap:60px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    height:110px;
    width:auto;
    display:block;
}

.brand-text h1{
    color:white;
}

.brand-text p{
    color:rgba(255,255,255,.85);
}

.menu{
    width:650px;
}
.menu ul{
    display:flex;
    justify-content:space-between;
    width:100%;
}

.menu a{
    display:inline-block;
    padding:0 10px;
    font-weight:600;
}
/* ==============================
   RESET
================================ */
/* ==================================
   HERO
================================== */



.hero-texto{
    flex:1.1;
}
/*==================================
 HERO
==================================*/
#home{
    padding:0;
}
.hero{
    position:relative;
    height:80vh;
    min-height:520px;
    overflow:hidden;

    display:flex;
    align-items:center;
}

.hero video{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:cover;

    z-index:0;
}

.hero-overlay{

    position:absolute;

    inset:0;

     background:rgba(46,44,86,.45);

    z-index:1;
}

.hero-contenido{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:center;

    width:100%;
}

.hero-texto{

    max-width:700px;

    text-align:center;

    color:white;
}

.hero h1{

    color:white;

    font-size:3rem;

    margin-bottom:25px;
}

.hero p{

    font-size:1.25rem;

    line-height:1.8;

    margin-bottom:40px;
}

.hero-botones{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;
}


.subtitulo{

    color:var(--bordo);

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:2px;
    
    display:block;
    
    max-width:480px;

}


.hero h1{

    font-size:2.2rem;
}

.hero p{

    font-size:1rem;
}


/* ================================
   BOTONES HERO
================================ */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 30px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    transition:all .3s ease;

    cursor:pointer;
}

.btn-primario{

    background:var(--bordo);

    color:white;

    border:2px solid var(--bordo);

}

.btn-primario:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.15);

}

.btn-secundario{

    background:white;

    color:var(--azul);

    border:2px solid var(--azul);

}

.btn-secundario:hover{

    background:var(--azul);

    color:white;

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.15);

}

html{
    scroll-behavior:smooth;
}

body{
    font-family:var(--fuente-texto);
    color:var(--texto);
    background:var(--blanco);
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}
/* ==============================
   SECCIONES (provisorio)
================================ */
#cursos,
#galeria,
#videos,
#personal,
#reglamento,
#contacto{

    min-height:100vh;
    padding:80px 0;

}

#hero{
    background:#ffffff;
}

#cursos{
    background:#f8f8f8;
}

#galeria{
    background:#ffffff;
}

#videos{
    background:#f8f8f8;
}

#personal{
    background:#ffffff;
}

#reglamento{
    background:#f8f8f8;
}

#contacto{
    background:#ffffff;
}

.contacto-boton {
    text-align: center;
    margin-top: 2rem;
}

.btn-formulario {
    display: inline-block;
    background: #1f2f6b;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-formulario:hover {
    background: #c53030;
}
/*====================================
FOOTER
=====================================*/

.footer {
    background: #111;
    color: #fff;
    margin-top:0;
    padding-top: 50px;
}

.footer-contenido {
    justify-content: flex-start; /* en vez de space-between */
    gap: 40px; /* opcional */
}

.footer-brand {
    display: flex;
    align-items: center; /* mejor que flex-start */
    gap: 10px; /* antes 20px */
}

.footer-logo img {
    max-width: 150px;
}
.footer-info h3 {
    margin: 0 0 5px 0;
}

.footer-info p {
    margin: 0;
}
.footer-info,
.footer-contacto {
    font-size: 14px;
    line-height: 1.6;
}

.footer h3 {
    margin-bottom: 10px;
}

.footer-copy {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.footer-contacto i {
    margin-right: 8px;
    color: #fff;
}
.tarjetas{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-top:50px;

}
.tarjeta{

    background:white;

    border-radius:18px;

    padding:35px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.3s;

}
.tarjeta:hover{

    transform:translateY(-8px);

}
.courses {
    padding: 100px 0;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}
/*
.section-title{
    max-width:1100px;
    margin:0 auto 50px;
    padding:0 20px;
    text-align:left;
}
*/
.section-title {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: left;
  padding: 0 20px;
}


.section-title h2{
    font-size:48px;
    color:#1b2f6d;
    margin-bottom:20px;
    font-weight:700;
}

.section-title p {
    max-width: 750px;
    margin: 0;
}
.section-title span {
    color: #9d2c2c;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.section-title h2 {
    font-size: 42px;
    margin: 15px 0 25px;
    color: #1f2d5c;
}

.section-title p {
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
    color: #555;
}

#staff .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#staff .section-title,
#staff .staff-block {
    display: grid;
    grid-template-columns: 1fr min(900px, 100%) 1fr;
}

#staff .staff-block > * {
    grid-column: 2;
}

.highlight {
    text-align: center;
    background: #f7f7f7;
    padding: 35px;
    margin: 60px 0;
    border-radius: 10px;
}

.highlight strong,
.highlight h3 {
    color: #1f2d5c;
}

.course-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin: 80px 0;
}

.course-block.reverse {
    flex-direction: row-reverse;
}

.course-text {
    flex: 1;
}

.course-text h3 {
    color: #1f2d5c;
    font-size: 32px;
    margin-bottom: 10px;
}

.course-text h4 {
    color: #9d2c2c;
    margin-bottom: 20px;
}

.course-text p,
.course-text li {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.course-text ul {
    margin-left: 20px;
}

.course-image {
    flex: 1;
}

.course-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
.page{
    display:none;
    padding:80px 0;
}

.page.active{
    display:block;
}

nav{
    display:flex;
    align-items:center;
    gap:40px;          /* probá 40 o 45 */
    margin-left:auto;
}

nav a{
    color:white;
    font-weight:600;
    text-decoration:none;
}
nav a.active{

    color:white;

    border-bottom:2px solid #ffffff;
}
/*.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  position: fixed;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  padding: 10px;
  user-select: none;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  color: #ccc;
}

.modal-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

.close:hover {
  color: #ccc;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.videos-grid video {
  width: 100%;
  border-radius: 10px;
}
.contact-form-embed iframe {
  width: 100%;
  height: 1100px;
  border: none;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .contact-form-embed iframe {
    height: 1200px;
  }
  .hero{
        height:65vh;
        min-height:480px;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:1rem;
    }
}
.staff-block h3 {
  margin-top: 25px;
  margin-bottom: 8px;
  font-size: 18px;
}

.staff-block p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

/*.staff-list {
  margin-top: 15px;
  columns: 1; /* esto lo hace MUCHO más prolijo */
  gap: 30px;
}
*/


.staff-list p {
  margin: 0 0 6px 0;
}
@media (max-width: 768px) {
  .staff-list {
    columns: 1;
  }
}





.reglamento-content {
  text-align: left;
  line-height: 1.7;
  font-size: 16px;
}

.reglamento-content h3{
    margin-top: 2rem;
    margin-bottom: .8rem;
}

.reglamento-content p{
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}



/*
.reglamento-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
}

.reglamento-content p {
  margin-bottom: 12px;
}

*/

.reglamento-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.reglamento-content li {
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .contenedor {
    padding: 0 20px;
  }
}
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .course-block {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .staff-list {
    columns: 1;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .contact-form-embed iframe {
    height: 1200px;
  }
}
/* ==============================
   FOOTER RESPONSIVE
================================ */

.footer-contenido{
    display:flex;
    justify-content:space-between;
    align-items: stretch;
    gap:40px;
    flex-wrap:wrap;
}
.footer-brand {
    align-items: flex-start;
}
.footer-logo,
.footer-info,
.footer-contacto{
    flex:1;
    min-width:250px;
}

.footer-contacto a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.footer-contacto a:hover{
    color:#d7d7d7;
}
.footer-info h3 {
    margin-top: 0;
}
@media (max-width:768px){

    .footer{
        text-align:center;
    }

    .footer-contenido{
        flex-direction:column;
        align-items:center;
        gap:30px;
    }

    .footer-logo,
    .footer-info,
    .footer-contacto{
        min-width:unset;
        width:100%;
    }

    .footer-logo img{
        margin:auto;
    }

}
.footer-contacto a{
    overflow-wrap:anywhere;
}
@media (max-width: 768px) {

  .modal {
    align-items: flex-start;
    padding-top: 60px;
    overflow-y: auto;
  }

  .modal-content {
    max-width: 95%;
    max-height: 80vh;
  }

}
.modal-content {
  object-fit: contain;
}