/* Estilos para la página Nosotros */

/* Navigation Image Section */
.nav-image-section {
  position: relative;
  height: 33.33vh;
  margin-top: 125px; /* 100px (top de floating-nav) + 25px (mitad estimada del nav-content) */
  z-index: 1;
  overflow: hidden;
}

.nav-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.nav-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 88, 122, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-image-overlay .container {
  text-align: center;
  color: white;
}

.nav-image-overlay h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: white !important;
}

.nav-image-overlay p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Section con Video */
.hero-video-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 0; /* Sin margen superior para que inicie inmediatamente después de la imagen */
  background: white;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mensaje del Gerente General */
.manager-message-section {
  padding: 4rem 0 3rem 0;
  background: var(--bg-secondary);
}

.manager-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.manager-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: var(--font-weight-bold);
}

.manager-message {
  margin-bottom: 2rem;
}

.manager-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.manager-signature {
  text-align: right;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary-color);
}

.manager-signature p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.manager-signature p:first-child {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.manager-signature p:last-child {
  color: var(--text-secondary);
  font-style: italic;
}

/* Misión y Visión */
.mission-vision-section {
  padding: 3rem 0 5rem 0;
  background: var(--bg-primary);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.mission-card,
.vision-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-card::before,
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--color-accent);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.mission-card h3,
.vision-card h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.mission-card p,
.vision-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: justify;
}

/* Valores */
.values-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.values-title {
  text-align: center;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 4rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  justify-items: center;
}

.value-item {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
}

.value-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  padding: 20px;
}

.value-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.value-item:hover .value-icon {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tooltip {
  position: absolute;
  bottom: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  text-align: center;
  border: 2px solid var(--color-accent);
}

.tooltip::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--color-accent);
}

.value-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -150px;
}

.tooltip h4 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.tooltip p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-image-section {
    margin-top: 110px; /* Ajuste para mobile: 85px + 25px */
  }

  .nav-image-overlay h2 {
    font-size: var(--font-size-3xl);
  }

  .hero-video-section {
    height: 40vh;
    min-height: 300px;
  }

  .video-wrapper iframe,
  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .manager-text h2 {
    font-size: 2rem;
  }
  
  .manager-message p {
    font-size: 1rem;
    text-align: left;
  }
  
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .value-item {
    width: 100px;
    height: 100px;
  }
  
  .value-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .tooltip {
    min-width: 180px;
    bottom: -130px;
  }
  
  .value-item:hover .tooltip {
    bottom: -140px;
  }
}

@media (max-width: 480px) {
  .nav-image-section {
    margin-top: 100px; /* Ajuste para móviles pequeños: 75px + 25px */
  }

  .nav-image-overlay h2 {
    font-size: var(--font-size-2xl);
  }

  .hero-video-section {
    height: 35vh;
    min-height: 250px;
  }

  .video-wrapper iframe,
  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .values-title,
  .section-title {
    font-size: 2.2rem;
  }
}

/* Carrusel de Instalaciones */
.installations-carousel-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.installation-card {
  min-width: 100%;
  background: white;
  display: flex;
  align-items: center;
  gap: 0;
  height: 400px;
}

.installation-image {
  position: relative;
  width: 60%;
  height: 100%;
  overflow: hidden;
}

.installation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.installation-card:hover .installation-image img {
  transform: scale(1.05);
}

.installation-category {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.installation-content {
  width: 40%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.installation-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.installation-description {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.7;
  text-align: justify;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
  color: var(--color-primary);
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-btn-prev {
  left: -30px;
}

.carousel-btn-next {
  right: -30px;
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.carousel-btn:disabled:hover {
  background: white;
  color: var(--color-primary);
}

/* Indicadores */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(25, 118, 210, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Responsive Design para Carrusel */
@media (max-width: 1024px) {
  .carousel-btn {
    width: 50px;
    height: 50px;
  }
  
  .carousel-btn-prev {
    left: -25px;
  }
  
  .carousel-btn-next {
    right: -25px;
  }
  
  .installation-card {
    flex-direction: column;
    height: auto;
  }
  
  .installation-image,
  .installation-content {
    width: 100%;
  }
  
  .installation-image {
    height: 300px;
  }
  
  .installation-content {
    padding: 2rem;
    text-align: center;
  }
  
  .installation-title {
    font-size: 1.8rem;
  }
  
  .installation-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .installations-carousel-section {
    padding: 3rem 0;
  }
  
  .values-title,
  .section-title {
    font-size: 2.2rem;
  }
  
  .carousel-btn {
    display: none;
  }
  
  .installation-image {
    height: 250px;
  }
  
  .installation-content {
    padding: 1.5rem;
  }
  
  .installation-title {
    font-size: 1.5rem;
  }
  
  .installation-category {
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .values-title,
  .section-title {
    font-size: 1.8rem;
  }
  
  .installation-image {
    height: 200px;
  }
  
  .installation-content {
    padding: 1rem;
  }
  
  .installation-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .installation-description {
    font-size: 1rem;
  }
}