/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background-color: #f6f6f6;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.header {
  background: linear-gradient(90deg, #12091f, #241136);
  border-bottom: 1px solid #222;
  padding: 20px;
  text-align: center;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 60px;
}

.brand span {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-badge img {
  height: 38px;
  opacity: 0.9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nombre de la marca */
.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* Certificado */
.brand-award {
  height: 34px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
}

.logo img {
  max-width: 240px;
  height: auto;
  margin-bottom: 10px;
}

.menu a {
  color: #d4af37; /* dorado */
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  text-decoration: underline;
}


/* NAV */
.nav a {
  color: #d4af37; /* dorado */
  text-decoration: none;
  margin-left: 25px;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: #6b3fa0; /* morado */
}

/* underline elegante */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #6b3fa0;
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* HERO */
.hero {
    background: url("../img/Foto 5.jpg") center/cover no-repeat;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 {
    background: rgba(0,0,0,0.6);
    padding: 20px 30px;
    border-radius: 8px;
    color: #5a2d82;

}

/* ---------- HERO TITLE ---------- */
.hero-title {
  text-align: center;
  padding: 5px 20px 40px;
}

.hero-title h1 {
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #5a2d82;
 }

/* ---------- HERO IMAGE ---------- */
.hero-image {
  max-width: 1100px;
  margin: auto;
  margin-top:1px;
  padding: 0 20px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- SPLIT SECTIONS ---------- */
.split-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-media {
  flex: 1;
}

.split-media img,
.split-media iframe {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: none;
}

.split-text {
  flex: 1;
}

.split-text h2 {
  margin-bottom: 15px;
}

.split-text p {
  margin-bottom: 15px;
}

/* ---------- BUTTON ---------- */
.btn-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: linear-gradient(90deg, #1a0f2e, #2b1746);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
}


/* CONTENIDO */
main {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    margin-bottom: 20px;
     color: #5a2d82;

}

/* IMAGEN + TEXTO */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid img {
    width: 100%;
    border-radius: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}


.home-award {
  text-align: center;
  padding: 60px 20px 40px;
  opacity: 0.75;
}

.home-award img {
  height: 80px;
  width: auto;
  margin-bottom: 10px;
}

.home-award p {
  font-size: 14px;
  color: #666;
  letter-spacing: 0.5px;
}

.footer {
  background: linear-gradient(90deg, #12081d, #1f1033);
  text-align: center;
  padding: 45px 20px 30px;
}

.footer-socials {
  margin-bottom: 18px;
}

.footer-socials a {
  color: #ffffff;        /* BLANCO = se ve SIEMPRE */
  font-size: 24px;
  margin: 0 14px;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: #caa6ff;
  transform: translateY(-3px);
}

.footer p {
  font-size: 14px;
  color: #bdbdbd;
  margin: 0;
}



.formulario {
    background: white;
    padding: 30px;
    max-width: 500px;
    margin: auto;
    border-radius: 8px;
}

.formulario label {
    display: block;
    margin-top: 15px;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

.formulario button {
    margin-top: 20px;
    padding: 10px;
    background: #0a3d62;
    color: white;
    border: none;
    cursor: pointer;
}

/* CONTACTO */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contacto-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.formulario {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.formulario label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formulario button {
    margin-top: 20px;
    background: #111;
    color: #d4af37;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.formulario button:hover {
    opacity: 0.9;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
  background: #fff;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info h2 {
  color: #5a2d82;
  margin-bottom: 10px;
  text-align: center;
  
}

.contact-info a {
  color: #5a2d82;
  font-weight: bold;
  text-decoration: none;
}

.contact-form iframe {
  width: 100%;
  min-height: 950px;
  border-radius: 8px;
}

/* CARD EFFECT */
.program-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* IMAGE EFFECT */
.program-card img,
.gallery-grid img {
  transition: transform 0.4s ease;
}

.program-card:hover img,
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* LIST */
.program-list {
  margin-top: 25px;
  padding-left: 20px;
}

.program-list li {
  margin-bottom: 14px;
  line-height: 1.6;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {

    header {
        padding: 20px 10px;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .hero {
        height: 220px;
    }

    .hero h1 {
        font-size: 1.4rem;
        padding: 15px;
      color: #5a2d82;

    }

    main {
        padding: 30px 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    img {
        width: 100%;
    }

    .formulario {
        margin-top: 30px;
    }
}

/* =========================
   PROGRAMS – LAYOUT FIX
   ========================= */

.programs h1 {
  text-align: center;
  margin-bottom: 50px;
  color: #5a2d82;
}

/* GRID DE TARJETAS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* TARJETA */
.program-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* IMAGEN */
.program-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* CONTENIDO */
.program-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-content h3 {
  margin-bottom: 10px;
  color: #5a2d82;
}

.program-content p {
  flex-grow: 1;
  font-size: 15px;
  color: #555;
}

/* BOTÓN */
.program-content .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* ===== CONFIGURACIÓN GENERAL ===== */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== CONTENEDOR GENERAL ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-home h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
  }

}

/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 768px) {

  /* Títulos más pequeños */
  .section-title {
    font-size: 1.8rem;
  }

  /* Hero imagen más baja */
  .hero-image img {
    max-height: 320px;
  }

  /* Texto + video en columna */
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  /* Video más proporcionado */
  .home-about-video iframe {
    height: 220px;
  }

  /* Ajuste general de secciones */
  .home-about-media {
    padding: 60px 20px;
  }

}

/* =========================
   SPLIT SECTION RESPONSIVE
   ========================= */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 20px;
}

/* Invertido */
.split-section.reverse {
  direction: rtl;
}

.split-section.reverse .split-text,
.split-section.reverse .split-media {
  direction: ltr;
}

/* Imagen y video */
.split-media img,
.split-media iframe {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 900px) {

  .split-section {
    grid-template-columns: 1fr;  /* 🔥 clave */
    gap: 30px;
    padding: 60px 20px;
    text-align: center;
  }

  .split-section.reverse {
    direction: ltr; /* 🔥 importante */
  }

  .split-media iframe {
    height: 220px;
  }

}
