:root{
  --bg:#0b0f19;
  --card:#101827;
  --text:#e9eefc;
  --muted:#a9b4d0;
  --line:rgba(255,255,255,.08);
  --accent:#ffd43b;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius:18px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body{ padding-bottom: 80px; }

a{ color:inherit; text-decoration:none; }

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}



.cert-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-grid img {
  width: 100%;
  height: 180px;
  object-fit: contain;      /* 👈 CLAVE */
  background: #0b0f19;      /* opcional → evita transparencias raras */
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}


.cert-strip{
  padding: 46px 0px;
  margin: 10px 0;
}

.cert-strip-inner{
  width: min(1100px, 92vw);     /* 👈 MÁS ancho que container */
  margin: 0 auto;
  padding: 34px 20px;

  border-radius: 26px;          /* 👈 bordes redondeados visibles */
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 70px rgba(0,0,0,.45);

  background:
    radial-gradient(900px 420px at 14% 30%, rgba(120,170,255,.12), transparent 60%),
    radial-gradient(900px 420px at 78% 18%, rgba(0,90,190,.16), transparent 62%),
    linear-gradient(135deg,
      rgba(10,25,55,1) 0%,
      rgba(15,45,95,1) 55%,
      rgba(5,18,40,1) 100%
    );
}

.cert-strip h2{
  margin: 0 0 10px;
  font-size: 26px;
}

.cert-strip p{
  margin: 0 0 18px;
  color: rgba(233,238,252,.78);
  max-width: 90ch;              /* 👈 texto más respirado */
  line-height: 1.6;
}

.cert-grid img:hover {
  transform: scale(1.03);
}

/* Mobile → una debajo de otra */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.img-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* ================= HERO ================= */
.about-strip{
  text-align: justify;
  text-justify: inter-word;
}

.hero{
  position:relative;
  min-height: 76vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;

  /* IMPORTANTE: el 1° va ARRIBA. Por eso la imagen va primero. */
  background:
    url("../img/hero-placeholder.webp") 100% center / 60% no-repeat,
    radial-gradient(1000px 600px at 18% 26%, rgba(255,212,59,.10), transparent 60%),
    radial-gradient(900px 520px at 70% 18%, rgba(90,140,255,.10), transparent 62%),
    linear-gradient(135deg, rgba(8,12,22,1) 0%, rgba(11,15,25,1) 45%, rgba(7,10,18,1) 100%);

  border-bottom: none;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  overflow:hidden;
}

/* Fade lateral suave hacia la imagen */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    to right,
    rgba(11,15,25,1) 0%,
    rgba(11,15,25,.95) 40%,
    rgba(11,15,25,.55) 60%,
    rgba(11,15,25,0) 78%
  );
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08),
    rgba(11,15,25,.55) 70%,
    rgba(11,15,25,.78) 100%
  );
}

/* ================= NAV / BRAND ================= */

.nav{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:80px;
  padding: 18px 4vw;
}

/* contenedor del logo */
.brand{
  position: relative;
  display: inline-block; /* se ajusta al tamaño del logo */
  line-height: 0;
   margin-left: 46px;   /* 👈 empuja logo a la derecha */
   
}

/* logo imagen */
.brand-logo{
  height:56px;           /* desktop */
  width:auto;
  display:block;
  object-fit:contain;

  /* brillo suave (animación real y compatible) */
  animation: logoGlow 1.8s ease-in-out infinite;
  will-change: filter;
}

@keyframes logoGlow{
  0%, 100%{
    filter:
      drop-shadow(0 0 6px rgba(120,170,255,.18))
      drop-shadow(0 0 14px rgba(0,90,190,.10));
  }
  50%{
    filter:
      drop-shadow(0 0 10px rgba(120,170,255,.35))
      drop-shadow(0 0 26px rgba(0,90,190,.22))
      brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce){
  .brand-logo{ animation: none; }
}

.nav-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* ================= BOTONES ================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 10px 14px;
  border-radius: 14px;

  background: var(--accent);
  color: #0b0f19;

  font-weight:800;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow:none;
}

.btn:focus-visible,
.car-btn:focus-visible,
.wa-float:focus-visible{
  outline: 3px solid rgba(255,212,59,.55);
  outline-offset: 3px;
}

/* ================= HERO CONTENT ================= */

.hero-content{
  position:relative;
  z-index:2;
  margin: auto 0;
  padding: 0 4vw;
  width:min(900px, 92vw);

  transform: translateY(-25px);   /* 👈 mueve hacia arriba */
}



.hero h1{
  margin:0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.05;
  letter-spacing:-.5px;
}

.hero p{
  margin: 14px 0 22px;
  color: rgba(233,238,252,.78);
  font-size: 16px;
  line-height:1.55;
  max-width: 62ch;
}

.hero-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ================= SECCIONES ================= */

.section{
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom: 14px;
}

.section-head h2{
  margin:0;
  font-size: 22px;
}

.section-head p{
  margin:0;
  color: var(--muted);
}

/* ================= CARRUSEL ================= */

.carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content: flex-start;
}

.car-btn{
  width:42px;
  height:42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 26px;
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
}

.car-track{
  flex: 1;
  scroll-behavior:smooth;
  display:flex;
  gap:14px;
  padding: 6px 2px;
  overflow-x:auto;
  scrollbar-width:none;
}

.car-track::-webkit-scrollbar{ display:none; }

/* ================= TARJETAS ================= */

.card{
  min-width: 260px;
  max-width: 260px;

  border-radius: var(--radius);
  overflow:hidden;

  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;

  /* FONDO AZUL TÉCNICO (zona del texto) */
  background:
    radial-gradient(900px 420px at 14% 30%, rgba(120,170,255,.10), transparent 60%),
    radial-gradient(900px 420px at 78% 18%, rgba(0,90,190,.12), transparent 62%),
    linear-gradient(135deg,
      rgba(10,25,55,1) 0%,
      rgba(15,45,95,1) 55%,
      rgba(5,18,40,1) 100%
    );
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
}

.card-img{
  height: 150px;
  background-size: cover;
  background-position: center;
  position:relative;
}

.card-img::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 200px at 20% 20%, rgba(255,255,255,.15), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

.card-body{ padding: 14px 14px 16px; }

.card h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.meta{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  font-size: 12px;
  color: var(--text);
}

/* ================= ABOUT IMAGE ================= */

.about-image{
  display:block;
  margin: 18px auto;
  width: 80%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

@media (max-width: 720px){
  .about-image{
    width: 100%;
    max-width: 320px;
    height: auto;
  }
}

/* variante más pequeña para la imagen 'yo.webp' */
.about-images{
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:stretch;
  margin: 18px 0;
}

.about-images .about-image{
  width:48%;
  max-width:none;
  height:320px;
  object-fit: contain;
  align-self:center;
}

/* make fachada crop to fit the shared height */
.about-images .about-image.about-image-fachada{
  object-fit: cover;
}

@media (max-width: 720px){
  .about-images{
    flex-direction:column;
    gap:12px;
  }
  .about-images .about-image{
    width:100%;
    max-width:320px;
    height:auto;
    object-fit: contain;
  }
}

/* ================= ABOUT GALLERY (2x2 desktop, stacked mobile) ================= */

.about-gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-items:center;
  align-items:center;
  margin: 18px 0 8px;
}

.about-gallery .about-thumb{
  width: 100%;
  max-width: 260px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

@media (max-width: 720px){
  .about-gallery{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-gallery .about-thumb{
    max-width: 320px;
    height: auto;
    object-fit: contain;
  }
}

/* ================= FOOTER ================= */

.footer{
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.footer-links{ display:flex; gap:14px; }

.footer-links a{ color: var(--muted); }

.footer-links a:hover{ color: var(--text); }

/* ================= WHATSAPP FLOAT ================= */

.wa-float{
  position: fixed;
  inset: auto 18px max(32px, env(safe-area-inset-bottom) + 22px) auto;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 999px;

  font-weight: 800;

  background: #14b866;
  color: #fff;

  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.15);

  transform: translate3d(0,0,0);
  will-change: transform;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 720px){

  .hero{
    min-height: 65vh;
    background-position: 80% center;
    background-size: 100%;
  }

  .hero-content{
    padding: 20px 4vw 30px;
    margin-top: auto;
  }

  .nav{
    padding: 6px 4vw;
    min-height: 72px;
    align-items: center;
    justify-content: center;
  }

  /* en mobile bajamos el bloque completo del logo (brillo incluido) */
  .brand{
    transform: translateY(24px);
  }

  .brand-logo{
    height:64px;
  }

  .nav-actions{
    display:none;
  }

  .car-btn{ display:none; }

  .card{
    min-width: 78vw;
    max-width: 78vw;
  }
}

@media (min-width: 721px){
  .nav{
    justify-content: flex-start;
    padding-left: 56px;
    padding-right: 4vw;
  }

  .nav-actions{
    display:none;
  }
}

/* ================= DESTACADO CURSO PRINCIPAL ================= */

.featured-course{
  border-bottom: 1px solid var(--line);
  padding: 34px 0 44px;
}

.featured-wrap{
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 70px rgba(0,0,0,.45);

  background:
    radial-gradient(900px 420px at 14% 30%, rgba(120,170,255,.18), transparent 60%),
    radial-gradient(900px 420px at 78% 18%, rgba(0,90,190,.22), transparent 62%),
    linear-gradient(135deg,
      rgba(10,25,55,1) 0%,
      rgba(15,45,95,1) 55%,
      rgba(5,18,40,1) 100%
    );
}

.featured-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.26));
}

.featured-text,
.featured-media{
  position: relative;
  z-index: 1;
}

/* layout */
.featured-wrap{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
  padding: 26px;
}

.featured-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  color: rgba(233,238,252,.90);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

.featured-text h2{
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -.2px;
  line-height: 1.08;
}

.featured-sub{
  margin: 12px 0 14px;
  color: rgba(233,238,252,.78);
  line-height: 1.6;
  max-width: 65ch;
}

.featured-list{
  margin: 0 0 16px;
  padding-left: 18px;
  color: rgba(233,238,252,.82);
}

.featured-list li{
  margin: 6px 0;
}

.featured-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* imagen grande derecha */
.featured-media{
  display:flex;
  justify-content:flex-end;
}

.featured-media img{
  width: min(460px, 100%);
  height: auto;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  transform: translateY(2px);
}

/* opción con div background-image */
.featured-img{
  width: min(460px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  background-size: cover;
  background-position: center;
}

/* responsive */
@media (max-width: 900px){
  .featured-wrap{
    grid-template-columns: 1fr;
  }
  .featured-media{
    justify-content: flex-start;
  }
  .featured-media img,
  .featured-img{
    width: 100%;
  }
}
@media (min-width: 721px){
  .about-gallery .about-thumb{
    height: 200px;     /* antes 140px */
    max-width: 320px;  /* opcional pero recomendado */
  }
}

/* ===== Cert-strip: texto izquierda + imagen derecha ===== */
.cert-strip-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.cert-text{
  flex: 1;
  min-width: 0;
}

.cert-image{
  flex: 0 0 auto;
  display:flex;
  justify-content:flex-end;
}

.cert-image img{
  width: 260px;        /* ajustá si la querés más grande/pequeña */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  opacity: .95;
}

/* Mobile: apila y oculta la imagen (si querés mostrarla abajo, te digo qué cambiar) */
@media (max-width: 720px){
  .hero h1{
  font-size: 26px;      /* 👈 tamaño mucho más natural en celular */
  line-height: 1.15;
}
.hero{
  min-height: 58vh;
}
.hero-content{
  transform: translateY(100px);   /* 👈 mueve hacia abajo */
}

.cert-image{
  width: 100%;
  display: flex;
  justify-content: center;   /* 👈 centra horizontalmente */
}

.hero::after{
  background: linear-gradient(
    to right,
    rgba(11,15,25,1) 0%,
    rgba(11,15,25,.92) 22%,   /* 👈 antes ~40% */
    rgba(11,15,25,.55) 70%,
    rgba(11,15,25,0) 88%
  );
}


  .cert-strip-content{
    flex-direction:column;
    align-items:flex-start;
  }
  .cert-image{
    display:flex;
  }
}

.btn.ghost:hover{
  background: var(--accent);
  color: #0b0f19;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.page-title{
  font-size: clamp(32px, 3.2vw, 44px);
  margin: 10px 0 18px;
  letter-spacing: -0.3px;
  line-height: 1.05;

  color: #ffffff;                 /* 👈 blanco puro REAL */
  text-shadow: 0 8px 22px rgba(0,0,0,.45);
}

.country-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background: rgba(0,0,0,.65);
  padding: 16px;
}

.country-modal.is-open{
  display:flex;
  align-items:center;
  justify-content:center;
}

.country-modal-card{
  width: min(520px, 92vw);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 70px rgba(0,0,0,.45);

  background:
    radial-gradient(900px 420px at 14% 30%, rgba(120,170,255,.12), transparent 60%),
    radial-gradient(900px 420px at 78% 18%, rgba(0,90,190,.16), transparent 62%),
    linear-gradient(135deg,
      rgba(10,25,55,1) 0%,
      rgba(15,45,95,1) 55%,
      rgba(5,18,40,1) 100%
    );

  position:relative;
}

.country-modal-card h3{
  margin: 0 0 6px;
  color:#fff;
  font-size: 20px;
}

.country-modal-card p{
  margin: 0 0 14px;
  color: rgba(233,238,252,.78);
  line-height: 1.5;
}

.country-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.country-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor:pointer;
}

.country-arg:hover{
  background: var(--accent);
  color: #0b0f19;
  border-color: transparent;
}

.menu-toggle{
  position:absolute;
  left: 30px;
  top: 70%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 12px;

  background: var(--accent);     /* 👈 amarillo */
  color: #0b0f19;                /* 👈 contraste elegante */
  border: none;

  font-size: 26px;
  
  cursor:pointer;

  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}


/* Menú lateral */
.side-menu{
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: #0b0f19;

  border-right: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(0,0,0,.35);

  padding: 80px 22px;
  display:flex;
  flex-direction:column;
  gap:18px;

  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 9998;
}

.side-menu a{
  color: var(--text);
  font-weight: 600;
  opacity:.85;
}

.side-menu a:hover{
  opacity:1;
  color: var(--accent);
}

.side-menu.open{
  transform: translateX(0);
}

.menu-toggle{
  display:block;   /* 👈 visible siempre */
}


.brand{
  transform: translateY(15px);
}

.cert-text p{
  text-align: justify;
  text-justify: inter-word;
}

@media (min-width: 721px){
  .menu-toggle{
    transform: translateY(-50%) translateY(-5px);
  }
}

.menu-aula{
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.menu-close{
  position:absolute;
  top:14px;
  right:16px;

  width:34px;
  height:34px;
  border-radius:10px;

  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);

  font-size:18px;
  cursor:pointer;
}

.about-carousel{
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  margin: 0 auto;          /* ← ESTA es la clave */
}


.about-track{
  display: flex;
  transition: transform 0.6s ease;
}

.about-slide{
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  object-fit: contain;     /* ← CAMBIO IMPORTANTE */
  display: block;
  border-radius: 14px;
  background: #000;        /* opcional, relleno elegante */
}

.about-carousel{ max-width: 520px; }
.about-slide{ height: 280px; }
