* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.5rem;
}

/* Carrusel */
.carousel {
    width: 100vw;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.carousel input { display: none; }

.slides {
    display: flex;
    width: 500%;
    transition: 0.6s ease;
}

.slide {
    width: 20%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 1200px;
    object-fit: cover;
}

#slide1:checked ~ .slides { transform: translateX(0); }
#slide2:checked ~ .slides { transform: translateX(-20%); }
#slide3:checked ~ .slides { transform: translateX(-40%); }
#slide4:checked ~ .slides { transform: translateX(-60%); }
#slide5:checked ~ .slides { transform: translateX(-80%); }

.navigation-manual {
    position: absolute;
    width: 100%;
    bottom: 15px;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.manual-btn {
    border: 2px solid #ffffff;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    margin: 0 8px;
    background: rgba(255,255,255,0.5);
}

.manual-btn:hover { background: #fff; }

/* Flechas */
.arrows label {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.arrows label:hover { background: rgba(0,0,0,0.7); }

#slide1:checked ~ .arrows .prev1,
#slide1:checked ~ .arrows .next1,
#slide2:checked ~ .arrows .prev2,
#slide2:checked ~ .arrows .next2,
#slide3:checked ~ .arrows .prev3,
#slide3:checked ~ .arrows .next3,
#slide4:checked ~ .arrows .prev4,
#slide4:checked ~ .arrows .next4,
#slide5:checked ~ .arrows .prev5,
#slide5:checked ~ .arrows .next5 {
    display: block;
}

.arrows .prev1, .arrows .prev2, .arrows .prev3, .arrows .prev4, .arrows .prev5 { left: 10px; }
.arrows .next1, .arrows .next2, .arrows .next3, .arrows .next4, .arrows .next5 { right: 10px; }

/* Rectángulos */
.rectangulo, .rectangulo2 {
  height: 600px;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 200px;
  font-size: clamp(20pt, 5vw, 30pt);
  color: #ffffff;
}

.destacado { font-weight: bold; }

/* ======== SECCIÓN EQUIPO ======== */
#equipo {
  text-align: center;
  padding: 70px 40px;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
}

.team-wrap {
  max-width: 1500px;
  margin: 0 auto;
}

/* Título con ajuste manual */
#equipo h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  grid-column: 1 / -1;
  position: relative;
  right: 35px;  /* ← Cambia este valor para mover horizontalmente */
  justify-self: center;
}

#equipo .team-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1500px;
  margin: 0 auto;
}

/* Cada miembro */
.team-member {
  background: rgb(243, 243, 243);
  padding: 15px;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.team-member img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 5px;
}

.team-member h3 {
  margin-top: 10px;
  font-size: 0.9rem;
}

.team-member p {
  font-size: 0.9rem;
  color: #000000;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .rectangulo p,
  .rectangulo2 p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.3;
    max-width: 90%;
    padding: 0 10px;
  }
  .rectangulo .destacado,
  .rectangulo2 .destacado {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
}

/* Video */
.video-container {
  width: 100vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: white;
}

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

/* Sección 3 cards */
.seccion-tres {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  gap: 20px;
  padding: 20px;
  background-color: #000000;
  margin: 100px auto;
  height: 600px;
}

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

.card-texto {
  margin-top: 10px;
  text-align: center;
}

.card-texto h3 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #ffffff;
  margin-bottom: 5px;
}

.card-texto p {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #ffffff;
}

/* Responsive sección 3 cards */
@media screen and (max-width: 768px) {
  .seccion-tres {
    flex-direction: column;
    height: auto;
  }
  .card {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 430px) {
    nav {
        flex-direction: left;
        padding: 1rem;
    }
    .nav-links {
        flex-direction: right;
        gap: 0.4rem;
        margin-top: 0rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .nav-links a {
        font-size: 0.7rem;
    }
    .slide img {
        height: 300px;
    }
}
