@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fira Sans", sans-serif;

}

body {
  background-color: #F0F0F0;
  line-height: 1.6;
}

nav {
    display: block;
    unicode-bidi: isolate;
    margin-left: 8%;
    padding-top: 0;
}

.active {
  color: red;
}

nav ul {
  --gap: 2rem; /* valor de separación entre li */
  list-style: none;
  display: flex;
  gap: var(--gap);
  justify-content: space-evenly;
  align-items: center;
}

nav li {
  position: relative;
  padding: 0 1rem;
}

/* Línea centrada en el espacio entre elementos pero a la izquierda */
nav > ul > li:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  margin-right: calc(var(--gap) / 2);
  width: 1px;
  background-color: white;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav > ul > li:hover > a {
  color: #ffb74d; /* COLOCAR COLOR AMARILLO SOLO EN EL MENU PRINCIPAL */
}

/* SUBMENU */
nav ul .submenu {
  display: none;
  position: absolute;          /* Se posiciona en relación al <li> padre */
  top: 100%;                   /* Lo coloca justo debajo del <li> principal */
  left: 0;                     /* Alinea el submenú al lado izquierdo del padre */
  background: #e0e0e0;         /* Color de fondo gris claro para el submenú */
  padding: 0;                  /* Quita el espacio interno (padding) del <ul> */
  margin: 0;                   /* Quita márgenes del <ul> del submenú */
  list-style: none;            /* Elimina viñetas o bullets de la lista */
  min-width: 180px;            /* Asegura que el submenú tenga un ancho mínimo */
  z-index: 1000;               /* Lo coloca encima de otros elementos en la página */
}

nav ul .submenu li {
  position: relative; /* Necesario para que funcione el ::after */
  transition: background-color 0.3s ease;
}

nav ul .submenu li::after {
  content: "";
  position: absolute;
  bottom: 0;               
  left: 50%;               
  transform: translateX(-50%);
  width: 85%;              /* << aquí controlas el ancho de la línea */
  height: 1px;             
  background-color: #000;  
}

nav ul .submenu li:last-child::after {
  content: none;           /* Quita la línea del último */
}

nav ul .submenu a {
  color: #000000;                  /* El texto de las opciones del submenú será negro */
  font-weight: 500;             /* Peso medio en la tipografía (un poco más gruesa que normal) */
  padding: 0.75rem 1rem;        /* Espaciado interno arriba/abajo (0.75rem) y a los lados (1rem) */
  display: block;               /* Hace que el enlace ocupe todo el ancho disponible (clickeable en toda el área) */
  transition: color 0.2s ease;
}

nav ul .submenu li:hover {
  background-color: #cacaca;
}

nav ul .submenu a:hover {
  color: #2E4975;
}

/* Mostrar submenu al hacer hover */
nav li:hover > .submenu,
nav li:has(.submenu:hover) > .submenu {
  display: block;  /* Se mantiene visible incluso si pasas por el submenu */
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

#searchBox {
  display: none; /* hidden by default */
  margin-left: 10px;
}

.sub {
  display: flex;
  align-items: center;   /* centra verticalmente texto e imagen */
  gap: 0.5rem;           /* espacio entre la imagen y el texto */
}

.sub img {
  flex-shrink: 0;        /* evita que la imagen se deforme o reduzca */
}

#btn {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    width: 50px; /* o el valor que uses */
    height: 50px;
    background: transparent; /* no blanco */
    padding: 0;
    border: none;
}

#btn img {
  max-width: 70%; /* ajusta según necesites */
  max-height: 70%;
} 

.lema-container {
  padding: 8px 0px 0px 30px;
  font-size: 40px;
  color: rgb(0, 0, 0);
  background: linear-gradient(to right, #ffd13b, #ffe17c);
  text-shadow: #000;
  font-weight: 500;
  text-shadow: 4px 2px 4px rgba(0,0,0,0.25);
}

/*  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); */

.intro {
  display: flex;;
  align-items: center;
  height: 530px; /*
  background: linear-gradient(to right, #ffb74d, #000000); */
  background-color: #eaeaea;
  padding: 30px 0 30px 0;
}

.video {
  width: 40%;
}

.text {
  width: 50%;
}

.text h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  text-align: justify;
}

.video-container {
  position: relative;
  background-color: rgb(0, 0, 0);
  height: 480px;
  width: 300px;
  margin-left: 25%;
  border-radius: 12px;
  border: none;
  box-shadow: 5px 3px 10px rgba(0,0,0,0.4);
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.watermark-cover {
  position: absolute;
  top: 10px;
  right: 1px;
  width: 35%;
  height: 7%;
  background-color: #00000000; /* or match your background color */
  border-radius: 4px;
  z-index: 2;
}

.watermark-cover p {
  text-align: center;
  text-decoration: none;
  color: white !important;
}

.spark {
  display: flex;
  align-items: center;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  padding: 0.8em 1.5em 0.8em 1.2em;
  color: white;
  background: #ad5389;
  background: linear-gradient(
    0deg,
    rgb(42, 42, 42) 0%,
    rgb(132, 132, 132) 100%
  );
  border: none;
  box-shadow: 0 0.7em 1.5em -0.5em #534c03be;
  letter-spacing: 0.05em;
  border-radius: 20em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spark:hover {
  transform: scale(1.05); /* a little bigger */
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6); /* subtle bright glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.intro h1{
  color: rgb(0, 0, 0);
  text-shadow: 4px 2px 4px rgba(0, 0, 0, 0.25);
  font-size: 50px;
  font-weight: 700;
}

.intro p {
  color: #2E4975;
  text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.2);
  font-size: 20px;
}

.lema {
  display: inline-block;
  position: relative;
  padding-left: 20px; /* space for the line */
  transition: transform 0.3s ease;
}

.lema:hover{
  transform: translateY(-3px);
}

.lema::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 90%;          /* full height of the text */
  width: 3px;            /* thickness of the line */
  background-color: #000000; /* line color */
}

.objetivo-general {
  position: relative;
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Imagen como fondo con overlay directamente */
  background: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
    url("images/metodologia.jpg_large.jpg") no-repeat center center;
  background-size: cover;
}

.objetivo-general .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* ligera capa oscura para contraste */
}

.objetivo-general .text {
  position: absolute;
  width: 90%;           /* makes it much wider */
  max-width: 700px;     /* maximum width */
  text-align: center;
  padding: 20px;
  background: rgba(255, 223, 0, 0.8); /* amarillo semitransparente */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.objetivo-general .text h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #333; /* texto oscuro sobre amarillo */
}

.objetivo-general .text p {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

/* archivo: metodologia.css */

:root {
  --mtd-amarillo: #ffd166;
  --mtd-card: #fccc5d;
  --mtd-gris: #1e2836;
  --mtd-fondo: #ffffff;
  --mtd-radius: 14px;
  --mtd-shadow: rgba(16, 24, 40, 0.06);
  --mtd-hover-shadow: rgba(16, 24, 40, 0.12);
  --mtd-transition: 300ms cubic-bezier(.2,.9,.33,1);
}

.mtd-section a {
  text-decoration: none;
  color: #000;
  font-style: italic;
}
/* CONTENEDOR FLEX PADRE */
.mtd-participacion-wrapper {
  display: flex;
  gap: 24px;
  max-width: 100%;
  margin: 10px auto;
  padding: 20px;
  align-items: stretch; /* Hace que hijos tengan igual altura */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.mtd-section {
  flex: 2;
  background: var(--mtd-fondo);
  color: var(--mtd-gris);
  border-radius: 16px; /* 👈 esto */
  box-shadow: 2px 5px 18px rgba(0,0,0,0.2); /* opcional para darle profundidad */
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-shadow: none;
}

.mtd-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--mtd-radius);
  background: linear-gradient(90deg, var(--mtd-card));
  box-shadow: 0 6px 18px rgba(238, 255, 4, 0.06);
}

.mtd-hero h2 {
  margin: 0;
  font-size: 20px;
  color: var(--mtd-gris);
  text-shadow: none;
}

.mtd-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.mtd-step {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px var(--mtd-shadow);
  cursor: pointer;
  transform: translateY(0);
  transition: transform var(--mtd-transition), box-shadow var(--mtd-transition);
  text-align: justify;
}

.mtd-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px var(--mtd-hover-shadow);
}

.mtd-num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  background: var(--mtd-amarillo);
}

.mtd-step h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  text-shadow: none;
}

.mtd-step p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

/* PARTICIPACIÓN REORDENADA PARA FLEX Y ALTURA IGUAL */
.participacion-reducida {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border-left: 8px solid #fccc5d;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: none; /* quita max-width para que el flex funcione bien */
  margin: 0; /* quita margenes para evitar que el contenedor se separe */
  box-shadow: 2px 5px 18px rgba(0,0,0,0.2); /* opcional para darle profundidad */
  padding-bottom: 12px;
}

.participacion-reducida h2 {
  text-align: center;
  color: #fccc5d;
  font-size: 1.7em;
  margin-bottom: 8px;
}

.participacion-reducida p {
  text-align: center;
  font-size: 1em;
  margin-bottom: 20px;
  color: #555;
}

.participacion-reducida form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1; /* hace que el form crezca para llenar el contenedor */
}

.participacion-reducida input,
.participacion-reducida textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.95em;
  transition: border-color 0.3s ease;
}

.participacion-reducida input:focus,
.participacion-reducida textarea:focus {
  border-color: #fccc5d;
  outline: none;
  box-shadow: 0 0 6px rgba(252, 204, 93, 0.4);
}

.participacion-reducida textarea {
  resize: none;
  height: 100%;
}

.btn-reducido {
  background: #fccc5d;
  color: white;
  font-size: 1em;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

.btn-reducido:hover {
  background: #e6b84f;
}

/* Popup reducido */
.popup-reducida {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-reducida:target {
  display: flex;
}

.popup-content-reducida {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
  max-width: 360px;
  border-top: 8px solid #fccc5d;
  animation: zoom 0.3s ease;
}

.popup-content-reducida h3 {
  margin: 0 0 10px;
  color: #fccc5d;
  font-size: 1.5em;
  text-shadow: none;
}

.popup-content-reducida p {
  margin-bottom: 16px;
  font-size: 1em;
  color: #444;
}

.close-reducida {
  display: inline-block;
  padding: 10px 20px;
  background: #fccc5d;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.close-reducida:hover {
  background: #e6b84f;
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsividad */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .objetivo-general .text {
    max-width: 900px;
  }

}

@media (min-width: 1200px) {
  .image-container {
    max-width: 900px; /* or whatever max width you prefer */
  }
}

@media (min-width: 1600px) {
  .image-container {
    max-width: 1100px; /* or whatever bigger size you want */
  }
}

@media (min-width: 2000px) {
  .image-container {
    max-width: 1400px; /* a bit wider for ultra high-res displays */
  }
}

@media (max-width: 900px) {
  .metodologia {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .metodologia {
    width: 60%;
  }
}

@media (min-width: 1201px) {
  .metodologia {
    width: 50%;
  }
}

@media (min-width: 1601px) {
  .metodologia {
    width: 45%;
  }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  #start {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #logo {
    width: 80px;
    height: 80px;
    margin: 8px 0;
  }

  #title {
    font-size: 1.8rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;   /* 🔥 left align */
    padding-left: 16px;        /* space from edge */
  }

  nav a {
    text-align: left;          /* 🔥 left text */
    width: 100%;               /* makes full clickable row */
  }

  .intro {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .video {
    width: 100%;
    margin-bottom: 20px;
  }

  .text {
    width: 100%;
  }

  .video-container {
    margin-left: 0;
    height: 240px;
    width: 100%;
  }

  .mtd-steps {
    grid-template-columns: 1fr;
  }

  .mtd-participacion-wrapper {
    flex-direction: column;
  }

  .participacion-reducida {
    width: 100%;
  }

  .lema-container {
    font-size: 28px;
    padding-left: 16px;
  }

  .intro h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .intro p {
    font-size: 1rem;
    text-align: justify;
  }

  .objetivo-general {
    height: auto;
    flex-direction: column;
  }

  .objetivo-general .text {
    width: 90%;
    padding: 16px;
  }

  .objetivo-general .text p {
    font-size: 0.8rem;
  }
}
/* Phones (≤480px) */
@media (max-width: 480px) {
  .intro {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .video {
    width: 100%;
    margin-bottom: 20px;
  }

  .text {
    width: 100%;
  }

  .video-container {
    margin-left: 0;
    height: 240px;
    width: 100%;
  }

  .mtd-steps {
    grid-template-columns: 1fr;
  }

  .mtd-participacion-wrapper {
    flex-direction: column;
  }

  .participacion-reducida {
    width: 100%;
  }

  .lema-container {
    font-size: 28px;
    padding-left: 16px;
  }

  .intro h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .intro p {
    font-size: 1rem;
    text-align: justify;
  }

  /* 🔥 objetivo-general smaller on phones */
  .objetivo-general {
    height: auto;
    flex-direction: column;
    padding: 12px;       /* reduce padding */
  }

  .objetivo-general .text {
    width: 100%;
    padding: 12px;       /* reduce space */
    font-size: 0.9rem;   /* smaller text */
  }
}

/* Tablets (481px–768px) */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    height: auto;
    padding: 30px 10px;
  }

  .video {
    width: 100%;
  }

  .text {
    width: 100%;
  }

  .video-container {
    margin: 0 auto;
    height: 280px;
    width: 100%;
  }

  .mtd-steps {
    grid-template-columns: 1fr;
  }

  .mtd-participacion-wrapper {
    flex-direction: column;
  }

  .participacion-reducida {
    width: 100%;
  }

  .lema-container {
    font-size: 32px;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .intro p {
    font-size: 1.1rem;
  }

  .objetivo-general {
    padding: 16px;
    height: auto;
  }

  .objetivo-general .text {
    padding: 16px;
    font-size: 1rem;
  }
}

/* Laptops (769px–1024px) */
@media (max-width: 1024px) {
  .video-container {
    height: 360px;
    width: 90%;
    margin-left: 0;
  }

  .mtd-steps {
    grid-template-columns: 1fr 1fr;
  }

  .lema-container {
    font-size: 36px;
  }

  .intro h1 {
    font-size: 2.3rem;
  }

  .intro p {
    font-size: 1.2rem;
  }
}

/* Large screens (≥1200px) */
@media (min-width: 1200px) {
  .video-container {
    width: 300px;
    height: 480px;
    margin-left: 25%;
  }

  .mtd-participacion-wrapper {
    flex-direction: row;
  }

  .mtd-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .lema-container {
    font-size: 40px;
  }

  .objetivo-general .text {
    font-size: 1.2rem;
  }

  .intro h1 {
    font-size: 2.8rem;
  }

  .intro p {
    font-size: 1.3rem;
  }
}

/*PARTICIPACION*/

/* Tablets y móviles */
@media (max-width: 768px) {
  .mtd-steps {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 20px;                  /* más espacio entre cajas */
    justify-items: center;      /* centra las cajas */
  }

  .mtd-step {
    width: 90%;      /* cada caja ocupa el 90% */
    font-size: 0.9rem; /* texto un poco más pequeño */
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  .mtd-step {
    width: 100%;      /* ancho completo */
    font-size: 0.8rem; /* texto más pequeño */
  }
}

@media (max-width: 1024px) {
  .mtd-steps {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 20px;                  /* más espacio entre cajas */
    justify-items: center;      /* centra las cajas */
  }
}