/* Página de Sostenibilidad - ENHANCED VERSION con tendencias modernas */
/* Fecha: 2025-10-24 */
/* Inspirado en: Airbnb, Stripe, Apple landing pages */

/* ============================================
   RESET Y BASE
   ============================================ */
.sostenibilidad-page * {
  box-sizing: border-box;
}

.sostenibilidad-page {
  font-family: 'Inter', 'Arial', 'Helvetica', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ============================================
   HERO BANNER - Con Glassmorphism y Parallax
   ============================================ */
.sostenibilidad-page .hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-45vw + 50%) !important;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 80px;
}

/* Overlay gradient sobre la imagen - DESACTIVADO para evitar fondo verde en zoom */
.sostenibilidad-page .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.sostenibilidad-page .hero-green-box {
  background: linear-gradient(135deg, #00A651 0%, #00C569 100%);
  color: white;
  padding: 60px 80px;
  width: 48%;
  min-height: 320px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-left: 40px;
  border-radius: 24px 0 24px 0;
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease;
}

.sostenibilidad-page .hero-green-box:hover {
  transform: translateY(-4px);
}

.sostenibilidad-page .hero-green-box h1 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.3px;
}

.sostenibilidad-page .hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.sostenibilidad-page .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05);
  transform: scale(1);
  transition: transform 1s ease;
  cursor: pointer;
}

/* Zoom MUY notorio en hover - 20% más grande */
.sostenibilidad-page .hero-image:hover img,
.sostenibilidad-page .hero-section:hover .hero-image img {
  transform: scale(1.2);
  filter: brightness(1.1) contrast(1.1);
}

/* Zoom suave en scroll (activado por JavaScript) */
.sostenibilidad-page .hero-image img.zoom-in {
  transform: scale(1.15);
}

/* ============================================
   INFORMACIÓN CORPORATIVA - Card Design
   ============================================ */
.sostenibilidad-page .info-section {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 60px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sostenibilidad-page .info-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.sostenibilidad-page .info-text h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 15px;
}

.sostenibilidad-page .info-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #00A651, #00C569);
  border-radius: 2px;
}

.sostenibilidad-page .info-text p {
  margin-bottom: 20px;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

/* Card del gerente con glassmorphism */
.sostenibilidad-page .info-gerente {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 249, 249, 0.8));
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sostenibilidad-page .info-gerente:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.sostenibilidad-page .gerente-foto {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.sostenibilidad-page .info-gerente:hover .gerente-foto {
  transform: scale(1.05);
}

.sostenibilidad-page .gerente-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease;
}

/* Zoom en hover - directo en la imagen */
.sostenibilidad-page .gerente-foto:hover img {
  transform: scale(1.15);
}

/* Zoom suave en scroll (activado por JavaScript) */
.sostenibilidad-page .gerente-foto img.zoom-in {
  transform: scale(1.15);
}

.sostenibilidad-page .gerente-info {
  margin-bottom: 25px;
}

.sostenibilidad-page .gerente-info h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 5px;
  font-weight: 700;
}

.sostenibilidad-page .gerente-info p {
  color: ##80bc00;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sostenibilidad-page .gerente-quote {
  position: relative;
  padding: 25px 25px 25px 45px;
  font-style: italic;
  color: #2d2d2d;
  font-size: 15px;
  line-height: 1.7;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.05), rgba(0, 166, 81, 0.02));
  border-radius: 12px;
  border-left: 4px solid #00A651;
}

.sostenibilidad-page .gerente-quote::before {
  content: '"';
  position: absolute;
  left: 10px;
  top: 15px;
  font-size: 70px;
  font-family: Georgia, serif;
  color: #00A651;
  opacity: 0.15;
  line-height: 1;
}

/* ============================================
   TRES PILARES - Cards interactivos
   ============================================ */
.sostenibilidad-page .pilares-section {
  background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
  padding: 80px 0 100px;
  margin-bottom: 60px;
  position: relative;
}

.sostenibilidad-page .pilares-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00A651, transparent);
}

.sostenibilidad-page .pilares-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.sostenibilidad-page .pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  text-align: center;
}

.sostenibilidad-page .pilar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 50px 30px 40px;
  border-radius: 20px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  overflow: hidden;
}

.sostenibilidad-page .pilar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00A651, #00C569);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.sostenibilidad-page .pilar-item:hover::before {
  transform: scaleX(1);
}

.sostenibilidad-page .pilar-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.sostenibilidad-page .pilar-item:hover {
  transform: translateY(-12px);
  box-shadow:
    0 20px 60px rgba(0, 166, 81, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.sostenibilidad-page .pilar-icon {
  width: 180px;
  height: 180px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.05), rgba(0, 198, 105, 0.05));
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
}

.sostenibilidad-page .pilar-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(0, 166, 81, 0.1);
  transition: all 0.4s ease;
}

.sostenibilidad-page .pilar-item:hover .pilar-icon {
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(0, 198, 105, 0.1));
  transform: scale(1.02);
}

.sostenibilidad-page .pilar-item:hover .pilar-icon::after {
  width: 170px;
  height: 170px;
  border-color: rgba(0, 166, 81, 0.2);
}

.sostenibilidad-page .pilar-icon img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.6s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 166, 81, 0.2));
}

/* Zoom suave en hover */
.sostenibilidad-page .pilar-item:hover .pilar-icon img {
  transform: scale(1.2);
}

/* Zoom suave en scroll (activado por JavaScript) */
.sostenibilidad-page .pilar-icon img.zoom-in {
  transform: scale(1.2);
}

.sostenibilidad-page .pilar-item h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.sostenibilidad-page .pilar-item p {
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

/* ============================================
   CTA SECTION - Moderno con gradiente
   ============================================ */
.sostenibilidad-page .cta-section {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 60px 50px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.05) 0%, rgba(0, 198, 105, 0.05) 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.sostenibilidad-page .cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 166, 81, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.sostenibilidad-page .cta-text {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.sostenibilidad-page .cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #00A651 0%, #00C569 100%);
  color: white;
  padding: 18px 60px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: none;
  box-shadow:
    0 8px 24px rgba(0, 166, 81, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 250px;
  text-align: center;
}

.sostenibilidad-page .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.sostenibilidad-page .cta-button:hover::before {
  left: 100%;
}

.sostenibilidad-page .cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 12px 32px rgba(0, 166, 81, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.12);
  color: white;
  text-decoration: none;
}

.sostenibilidad-page .cta-button:active {
  transform: translateY(-2px) scale(1.02);
}

/* Contenedor de botones */
.sostenibilidad-page .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Botón primario - Leer Informe */
.sostenibilidad-page .cta-button-primary {
  background: linear-gradient(135deg, #80bc00 0%, #80bc00 100%);
}

/* Botón secundario - Bajar Informe */
.sostenibilidad-page .cta-button-secondary {
  background: linear-gradient(135deg, #80bc00 0%, #80bc00 100%);
  box-shadow:
    0 8px 24px rgba(155, 155, 155, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.sostenibilidad-page .cta-button-secondary:hover {
  box-shadow:
    0 12px 32px rgba(155, 155, 155, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================
   ANIMACIONES Y EFECTOS
   ============================================ */

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicar animaciones con delays */
.sostenibilidad-page .pilar-item:nth-child(1) {
  animation-delay: 0.1s;
}

.sostenibilidad-page .pilar-item:nth-child(2) {
  animation-delay: 0.2s;
}

.sostenibilidad-page .pilar-item:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .sostenibilidad-page .hero-section {
    flex-direction: column;
    min-height: auto;
  }

  .sostenibilidad-page .hero-green-box {
    width: 90%;
    margin: 40px auto;
    padding: 40px 30px;
    border-radius: 20px;
  }

  .sostenibilidad-page .hero-image {
    position: relative;
    width: 100%;
    height: 350px;
  }

  .sostenibilidad-page .info-section {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sostenibilidad-page .pilares-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sostenibilidad-page .cta-section {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .sostenibilidad-page .hero-green-box h1 {
    font-size: 22px;
  }

  .sostenibilidad-page .info-text h2 {
    font-size: 26px;
  }

  .sostenibilidad-page .cta-text {
    font-size: 18px;
  }

  .sostenibilidad-page .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .sostenibilidad-page .cta-button {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }
}
