:root {
  --main-c: #fdd72d;
  --border-r: .2rem;
}

/* =======================
   ESTILOS GENERALES
======================= */
html * {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p {
  font-size: 1.1rem;
}

a {
  text-decoration: none;
}

ul, li {
  list-style: none;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2.2rem; }

.wrap-cta {
  padding: 1.5rem 0;
}

.cta-a {
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  background-color: var(--main-c);
  padding: .5rem 1rem;
  border-radius: var(--border-r);
}

/* =======================
   HEADER
======================= */
.header-landing {
  display: flex;
  justify-content: center;
  background: #f2f2f2;
  padding: 0.25rem;
}

.logo-header {
  max-width: 35px;
  width: 100%;
  height: auto;
}

/* =======================
   HERO SECTION
======================= */
.hero-section {
  height: 65vh;
  position: relative;
  background: url('../img/img-1.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 100px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.wrap-hero-section {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-align: right;
}

.wrap-hero-section p {
  text-align: justify;
}

/* =======================
   LOGOS / BRANDS
======================= */
.section { margin: 5rem 0; }

.section h2 { padding: 2rem 0; }

.wrap-logos-section {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.logo-brand {
  width: 200px;
  padding: 1rem 2rem;
}

/* =======================
   TITULOS
======================= */
.wrap-title-section {
  display: flex;
  justify-content: center;
  margin: 3rem 1rem;
}

/* =======================
   SERVICIOS
======================= */
/* Primera sección → 2 columnas */
/* Contenedor primera sección (2 columnas) */
/* Bloque 1 → 2 columnas */
.wrap-servicios-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.item-servicios-section {
  flex: 1 1 calc(50% - 15px);
  max-width: calc(44% - 15px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.item-servicios-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.item-servicios-section img {
  width: 100%;
  aspect-ratio: 2 / 1.2;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.item-servicios-section:hover {
  transform: translateY(-5px);
}

.item-servicios-section:hover img {
  transform: scale(1.05);
}

.item-servicios-section p {
  padding: 10px;
  margin: 0;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* Bloque 2 → 1 columna */
.wrap-servicios-section_2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Bloque principal con fondo */
.item-servicios-section_2 {
  height: 40vh;
  position: relative;
  background: url('../img/img-oferta-academica.jpg') no-repeat center center;
  background-size: 87%; /* 👈 aquí ajustas qué tan pequeña se ve */
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12%;
  top:20px;
}


.item-servicios-section_2:hover {
  transform: translateY(-10px);
}
.item-servicios-section_2.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.item-servicios-section_2 img {
  width: 87%;
  max-height: 220px;
  aspect-ratio: 2 / 1.8;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.item-servicios-section_2:hover img {
  transform: scale(1.01);
}

.item-servicios-section_2 p {
  padding: 10px;
  margin: 0;
  font-weight: 600;
  text-align: center;
  color: #333;
}


/* =======================
   DOS COLUMNAS
======================= */
.two-column-section {
  padding: 0px 15px;
}

.wrap-two-column {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 91.5%;
  margin: 0 auto;
}

.wrap-img_two-column {
  flex: 1 1 50%;
  max-width: 48%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
}

.wrap-img_two-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.wrap-img_two-column img:hover {
  transform: scale(1.05);
}

.wrap-text-column {
  flex: 1 1 40%;
  max-width: 40%;
  text-align: justify;
}

.wrap-text-column h3 {
  margin-bottom: 20px;
}

.wrap-text-column p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* CTA dentro de dos columnas */
.wrap-cta .cta-a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffd500;
  color: #000;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.wrap-cta .cta-a:hover {
  background-color: #ffc107;
}

/* =======================
   FORMULARIO
======================= */
section.two-column-section.form {
  background-color: #f2f2f2;
  padding: 3rem 0;
}

.form input,
.form textarea {
  width: 100%;
  line-height: 1.75rem;
  border: 1.5px solid #fff;
  border-radius: var(--border-r);
}

.form textarea {
  min-height: 200px;
}

input[type="submit"] {
  border: 0;
  cursor: pointer;
}

/* =======================
   FOOTER
======================= */
.footer-section {
  max-width: 1200px;
  margin: 50px auto;
}

.menu-footer-section {
  padding: 1rem 0;
}

.wrap-social-logos ul,
.wrap-menu-footer-section ul {
  display: flex;
  justify-content: center;
}

.social-logo {
  max-width: 75px;
  width: 100%;
  padding: 1rem;
}

.wrap-menu-footer-section ul li {
  font-size: 1.1rem;
  padding: 1.5rem;
}

.footer-creds {
  display: flex;
  justify-content: center;
}

/* =======================
   OFERTA ACADÉMICA
======================= */
.oferta-academica {
  padding: 60px 20px;
  background: #fff;
}

.container-oferta {
  max-width: 900px;
  margin: 0 auto;
}

.oferta-academica h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #000;
}

.oferta-academica ul {
  list-style-type: disc;
  padding-left: 20px;
}

.oferta-academica li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

/* =======================
   TIMELINE
======================= */
.timeline-section {
  padding: 0px 20px;
  background: #fff;
  font-family: Arial, sans-serif;
}

.timeline-container {
  max-width: 1250px;
  margin: 0 auto;
}

.timeline-container .intro {
  margin-bottom: 40px;
  color: #555;
  font-size: 20px;
  line-height: 1.6;
  max-width: 100%;
  text-align: center;
}

/* Línea central */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #ccc;
  z-index: 1;
}

/* Items */
.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-item.left .content {
  width: 45%;
  text-align: right;
  order: 1;
}
.timeline-item.left .point {
  order: 2;
  margin-left: 10px;
}

.timeline-item.right .point {
  order: 1;
  margin-right: 10px;
}
.timeline-item.right .content {
  width: 45%;
  text-align: left;
  order: 2;
}

.timeline-item .content h3 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 8px;
}

.timeline-item .content p {
  font-size: 17px;
  line-height: 1.5;
  text-align: justify;
  margin: 0;
}


.point {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
  margin-top: 6px;
  z-index: 2;
}

/* Colores */
.yellow { background: #ffcc00; }
.blue   { background: #3498db; }
.red    { background: #e74c3c; }
.green  { background: #2ecc71; }
.skyblue{ background: #00c0ff; }

/* RESPONSIVE - mantiene línea al centro y elementos apilados */
@media screen and (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-item.left .content,
  .timeline-item.right .content {
    width: 100%;
    order: 2;
    text-align: center;
  }

  .timeline-item.left .point,
  .timeline-item.right .point {
    order: 1;
    margin: 0 0 10px 0;
  }
}



/* =======================
   RESPONSIVE
======================= */
@media (max-width: 900px) {
  .wrap-two-column {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }
  .wrap-img_two-column,
  .wrap-text-column {
    flex: 1 1 100%;
    max-width: 100%;
  }

  
}

@media (max-width: 600px) {
  .wrap-two-column {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }
  .wrap-img_two-column,
  .wrap-text-column {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 1768px) {
  .timeline::before {
    left: 50%;              /* 👈 siempre centrada */
    transform: translateX(-50%);
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;            /* 👈 cada ítem ocupa todo el ancho */
    left: 0;                /* resetea posiciones */
    text-align: center;     /* centra el texto en responsive */
  }

  .timeline-item .content {
    width: 100%;
  }
}



.image-container {
 
  
}

.image-container img {
 
}



/* Texto dentro de la imagen */
.overlay-text {
  max-width: 35%;         /* 👈 ancho del bloque de texto */
  padding: 10px;
  border-radius: 6px;
}

.overlay-text h2 {
  margin: 0 0 10px 0;
  font-size: 50px;
  font-weight: bold;
}

.overlay-text p {
  margin: 0;
  font-size: 16px;
}

/* --- Header --- */
.header-landing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 19px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0.9;
}
/* Logo a la izquierda */
.wrap-logo img {
  max-width: 273px;
  height: auto;
}

.header-landing .wrap-logo img {
  top:-28px;
  position: absolute;
}

/* --- Nav Desktop --- */
/* Menú centrado */
.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.main-nav li {
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--main-c);
}

/* Redes a la derecha */
.menu-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.menu-social a {
  color: #333;
  transition: color 0.3s ease;
}
/* Instagram */
.menu-social a#instagram:hover {
  color: #E4405F;   /* rosa típico de Instagram */
  transform: scale(1.2);
  transition: 0.3s ease;
}

/* WhatsApp */
.menu-social a#whastapp:hover {
  color: #25D366;   /* verde oficial de WhatsApp */
  transform: scale(1.2);
  transition: 0.3s ease;
}


/* --- Botón Hamburguesa --- */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 12px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    width: 220px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    animation: slideDown 0.3s ease forwards;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  /* Mostrar cuando está activo */
  .main-nav.active {
    display: flex;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* WhatsApp flotante */
#whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 1200;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  opacity: 0.98;
}

#whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Icon container */
#whatsapp-float .wh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
}

/* Optional label */
#whatsapp-float .wh-text {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
}

/* Hide text on very small screens to save space */
@media (max-width: 420px) {
  #whatsapp-float { padding: 10px; right: 14px; bottom: 14px; }
  #whatsapp-float .wh-text { display: none; }
  #whatsapp-float .wh-icon { width: 40px; height: 40px; }
}
/* Estilos generales para botones flotantes */
#btn-scroll-top,
#whatsapp-float {
  position: fixed;
  right: 30px;
  z-index: 99;
  cursor: pointer;
}

/* Botón scroll top */
#btn-scroll-top {
  bottom: 90px; /* arriba del WhatsApp */
  background: #fdd72d;
  color: #000;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none; /* oculto hasta hacer scroll */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#btn-scroll-top:hover {
  background: #ffc107;
  transform: scale(1.1);
}

/* WhatsApp flotante */
#whatsapp-float {
  bottom: 20px;
  background: #25d366;
  color: #fff;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

#whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

#whatsapp-float .wh-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos-section {
  background: #f9f9f9;   /* color de fondo general */
  padding: 10px 0;
}

.wrap-logos-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* espacio entre logos */
  flex-wrap: wrap;
}

.logo-brand {
  max-height: 200px;
  background: #fff; /* fondo individual */
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 14px 15px rgba(0,0,0,0.24); /* efecto realce */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-brand:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
