* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
:root {
    --primary-color: #fffbd3;
    --secondary-color: #4d623d;
    --primary-color-transparent: #fffbd3d9;
    --text-color: #222222;
}


/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #ffff;
  max-width: 80dvw;
  margin: 0 auto;
}
nav ul {
    display: flex;
    list-style: none;
}
nav ul li {
    margin: 0 1rem;
}
nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.4s ease-in-out;
}
nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.4s ease-in-out;
}

nav ul li a:hover::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.4s ease-in-out;
}

nav img{
    width: 150px;
    margin: 10px;
}

nav.movil {
    display: none;
}

@media screen and (max-width: 768px) {
    nav {
        display: none;
    }
    nav.movil {
        display: flex;
        justify-content: space-between;
        max-width: 95dvw;
    }
    nav.movil img {
        width: 150px;
    }
    nav.movil .menu-icon {
        font-size: 40px;
    }
    nav.movil ul{
        position: fixed;
        z-index: 10000;
        top: 0;
        left: 0;
        width: 90dvw;
        height: 100dvh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    nav.movil ul li{
        margin: 1.1rem 0;
    }
    nav.movil ul.active{
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }
    nav.movil ul.active span {
        position: absolute;
        top: 0;
        right: 0;
        background-color: var(--secondary-color);
        padding: 0.9rem 1.3rem;
        font-size: 1.5rem;
        color: #ffff;
    }
    
}



/* header */
header {
    align-items: center;
    justify-content: center;
    height: 70dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
}
header .header-content {
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 1rem;
    position: absolute;
    z-index: 2;
    width: 40dvw;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 0px 0px 15px 15px;
}
header .header-content h1 {
    font-size: 1.5rem;
    font-weight: 400;
}

header .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider img.active {
    opacity: 1;
    z-index: 2;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.slider-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-indicators .dot.active {
    background-color: white;
}

@media screen and (max-width: 1100px) {
    header .header-content {
        width: 60dvw;
    }
}
@media screen and (max-width: 730px) {
    header .header-content {
        width: 80dvw;
    }
}
@media screen and (max-width: 550px) {
    header .header-content {
        width: 90dvw;
    }
    header .header-content h1 {
        font-size: 1.2rem;
    }
}

section.what-is-metrosula{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 1rem;
    text-align: center;
    color: var(--secondary-color);
}

section.what-is-metrosula h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}  
@media screen and (max-width: 768px) {
    section.what-is-metrosula h2 {
        font-size: 1.5rem;
    }
    section.what-is-metrosula p {
        font-size: 0.9rem;
    }
}


/* video section */
section.video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    max-height: 800px;
    overflow: hidden;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    /* max-width: 1000px; */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    /* border-radius: 16px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 14px;
    gap: 0.5rem;
    z-index: 2;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.control-btn:hover {
    color: var(--primary-color);
}

#progress-bar {
    flex: 1;
    height: 5px;
    appearance: none;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 2px;
}

#progress-bar::-webkit-slider-thumb {
    appearance: none;
    height: 12px;
    width: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .video-controls {
        gap: 0.4rem;
        font-size: 12px;
    }

    #progress-bar {
        width: 100%;
    }
}

/* seccion beneficios */
section.benefits {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 1rem;
    text-align: center;
    color: var(--secondary-color);
    background-image: url('../image/renders/02.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    height: 60dvh;
    max-height: 150dvh;
}
section.benefits .title {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: normal;
    text-align: center;
    position: absolute;
    z-index: 2;
    width: 20dvw;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 0px 0px 15px 15px;
}

.splide {
  width: 100%;
  max-width: 900px;
}
.splide__arrow{
  width: 2.5rem !important;
  height: 2.5rem !important;
}

.benefit-card {
  background-color: rgba(255, 255, 200, 0.8);
  border-radius: 16px;
  width: 200px;
  height: 180px;
  padding: 20px;
  margin: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.benefit-card span {
  font-size: 2.7rem;
  font-weight: bolder;
  color: #2e3d1f;
  margin-bottom: 15px;
}

.benefit-card p {
  font-size: 1.1rem;
  color: #2e3d1f;
  font-weight: lighter;
}
@media screen  and (max-width: 780px) {
    section.benefits .title {
        width: 60dvw;
    }
    
}

@media screen  and (max-width: 490px) {
    section.benefits  {
        height: 90vh;
    }
    
}



.alianzas {
  text-align: center;
  padding: 60px 20px;
}

.alianzas h2 {
  color: #4f6632;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.alianzas p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.logos img {
  max-height: 100px;
  object-fit: contain;
}

/* Misión y Visión */
.mision-vision {
  background-color: #4f6632;
  color: white;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
}

.card {
  max-width: 420px;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #fffacd;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
}


.faq-section {
  padding: 60px 20px;
  text-align: center;
}

.faq-section h2 {
  font-size: 2.5rem;
  color: #4f6632;
  margin-bottom: 40px;
}

/* Contenedor flexible */
.faq-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}

/* Imagen lateral */
.faq-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
}

/* Lista de preguntas */
.faq-list {
  background-color: #4f6632;
  color: white;
  border-radius: 16px;
  padding: 0;
  min-width: 300px;
  max-width: 500px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Cada item FAQ */
.faq-item {
  border-bottom: 1px solid white;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Botón de pregunta */
.faq-question {
  background-color: #4f6632;
  color: white;
  padding: 15px 20px;
  font-size: 1.1rem;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #3c5127;
}

/* Respuesta (inicialmente oculta) */
.faq-answer {
  background-color: #ffffff;
  color: #333;
  padding: 15px 20px;
  display: none;
  font-size: 1rem;
  line-height: 1.5;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Mostrar respuesta cuando activo */
.faq-item.active .faq-answer {
  display: block;
}

.contact-section {
  background-color: #fefccf;
  padding: 60px 20px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-items: stretch;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  flex: 1 1 450px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
  font-size: 2.3rem;
  color: #4f6632;
  margin-bottom: 10px;
}

.contact-form p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.contact-form label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  background-color: #f6f6f6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1rem;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.input-half {
  flex: 1 1 45%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  background-color: #4f6632;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #3a4e27;
}

.contact-image {
  flex: 1 1 450px;
  display: flex;
  align-items: stretch;
}

.contact-image img {
  width: 100%;
  height: 100%; /* 👈 fuerza que la imagen llene todo el contenedor */
  object-fit: cover; /* 👈 recorta si es necesario, pero llena el espacio */
  border-radius: 16px;
}

.footer {
  background-color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Nunito', sans-serif;
  border-top: 2px solid #4f6632;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-left p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #333;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 25px 0 0 25px;
  outline: none;
}

.newsletter-form button {
  background-color: #4f6632;
  color: white;
  padding: 0 20px;
  border: none;
  border-radius: 0 25px 25px 0;
  font-size: 1.2rem;
  cursor: pointer;
}

.footer-right {
  flex: 1 1 300px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.social-icons a {
  color: #000;
  font-size: 1.2rem;
  text-decoration: none;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-info strong {
  display: inline-block;
  width: 80px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #aaa;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #222;
}

.footer-bottom a {
  text-decoration: none;
  color: #000;
}