/* ============================================= */
/*               NOSOTROS.CSS OPTIMIZADO         */
/* Estética minimalista, moderna y responsive     */
/* ============================================= */


/* ------------------------ HERO ------------------------ */
#hero-nosotros {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  height: 100vh;
  overflow: hidden;
}

.hero-nosotros-container {
  display: grid;
  grid-template-columns: 60% 40%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  height: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;}

.hero-title span {
color: var(--black-color);
font-size: clamp(1.4rem, 2.5vw, 2rem);
display: block;
margin-top: 0.4rem;
}

/* Descripciones */
.hero-description {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--black-color);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* Visibilidad según dispositivo */
.hero-escritorio {
  display: block;
}

.hero-movil {
  display: none;
}

/* Video responsive con animación */
.hero-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.video-sound-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.video-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Control de visibilidad por dispositivo */
.hero-video video.mobile { display: none; }

@media (max-width: 991px) {
  .hero-nosotros-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-video video.desktop { display: none; }
  .hero-video video.mobile { display: block; }
}

/* Móvil */
@media (max-width: 768px) {
  .hero-escritorio {
    display: none;
  }

  .hero-movil {
    display: block;
  }

    #hero-nosotros {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    min-height: 100dvh;      
    padding: 3rem 1.5rem;     
  }

  .hero-nosotros-container {
    height: auto;
    gap: 2rem;
  }
  .video-sound-toggle {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .hero-description {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 1.5rem;
  }


  .titulo-hero-nosotros {
  text-align: center;
  max-width: 90%;
  margin: 0 auto 1.5rem;
  }
}

/* Animación de aparición suave */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------ HISTORIA ------------------------ */
#historia-section {
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  background-color: var(--white-color);
}

.historia-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.historia-title {
  text-align: center;
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;}

.historia-timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 20px;
}

.historia-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.historia-item {
  position: relative;
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
}

.historia-item .historia-contenido {
  background-color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.historia-item:hover .historia-contenido {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
}

.historia-fecha {
  display: block;
  font-family: var(--font-family-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 0.4rem;
  letter-spacing: 0.4px;
}

.historia-subtitulo {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.historia-contenido p {
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

.historia-item.izquierda {
  left: 0;
  text-align: right;
}

.historia-item.derecha {
  left: 50%;
  text-align: left;
}

.historia-item.izquierda .historia-contenido {
  margin-right: 2rem;
}

.historia-item.derecha .historia-contenido {
  margin-left: 2rem;
}

@media (max-width: 992px) {
  .historia-item,
  .historia-item.izquierda,
  .historia-item.derecha {
    width: 100%;
    left: 0;
    text-align: center;
  }

  .historia-timeline::before {
    left: 10px;
  }

  .historia-item .historia-contenido {
    margin: 1rem auto;
  }
}


/* ------------------------ EQUIPO ------------------------ */
#equipo-section {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  text-align: center;
}

.equipo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.equipo-title {
  text-align: center;
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.equipo-intro {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--black-color);
  padding: 0 1rem;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

.equipo-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
}

.equipo-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

.equipo-card h3 {
  color: var(--black-color);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

.equipo-card .cargo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

.equipo-card p {
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}


/* ------------------------ VALORES ------------------------ */
#valores-section {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  text-align: center;
}

.valores-container {
  max-width: 1200px;
  margin: 0 auto;
}

.valores-title {
  text-align: center;
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.valores-intro {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--black-color);
  padding: 0 1rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  justify-items: center;
}

.valor-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
  text-align: center;
}

.valor-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.valor-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  color: var(--primary-color);
}

.valor-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.valor-item h3 {
  font-family: var(--font-family-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.valor-item p {
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}


/* ============================================= */
/*                  CTA FINAL                    */
/* ============================================= */

#cta-nosotros {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  min-height: 90vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-nosotros-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Frase principal */
.cta-frase {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

/* Palabra destacada */
.cta-frase .cta-destacado {
  color: var(--black-color);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  display: block;
  margin-top: 0.4rem;
}

/* Subfrase informativa */
.cta-subtexto {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: var(--black-color);
}

/* Botones de acción */
.cta-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 4rem;
}
