/* ========================================================
   ABOUT PAGE – DISEÑO ORIGINAL DRIVEWAYS (OPTIMIZADO 2026)
   ======================================================== */

/* ====================== HERO SECTION ====================== */
.about-hero {
  /* Usamos la nueva imagen con un degradado ligero para que resalten los colores cálidos */
  background: linear-gradient(rgba(19, 72, 102, 0.65), rgba(19, 72, 102, 0.85)), url('../img/hartford.webp');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  
  /* GROSOR EXACTO DEL DISEÑO ORIGINAL */
  padding: 6rem 5%; 
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUpReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  text-wrap: balance; /* Optimización tipográfica */
}

.about-hero p.tagline {
  font-size: 1.6rem;
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  text-wrap: balance;
}

/* Línea decorativa brillante */
.hero-divider {
  width: 90px;
  height: 4px;
  background: var(--accent);
  margin: 1.5rem auto 0;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(255, 79, 90, 0.7);
}

@keyframes fadeUpReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================== CONTENIDO PRINCIPAL ====================== */
.about-content {
  padding: 4rem 5% 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-section h2, .values-section h2, .certifications h2 {
  font-size: 2.6rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  text-wrap: balance;
}

.about-section h2::after, .values-section h2::after {
  content: '';
  width: 100px;
  height: 4px;
  background: var(--accent);
  display: block;
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ====================== STORY GRID (Estructura Limpia) ====================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% texto – 50% imagen */
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.story-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
  text-wrap: pretty; /* Evita palabras huérfanas al final del párrafo */
}

.story-grid img {
  width: 100%;
  max-width: 550px; /* Limita el ancho máximo */
  height: auto; /* Mantiene proporción */
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  object-fit: cover;
  display: block;
  margin: 0 auto; /* Centra si la pantalla es muy ancha */
}

/* ====================== VALORES Y TARJETAS ====================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  
  /* Aceleración de Hardware GPU y transición de alta gama */
  transform: translateZ(0); 
  will-change: transform, box-shadow;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover { 
  transform: translateY(-12px) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.value-card p {
  text-wrap: pretty;
}

.value-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ====================== CERTIFICACIONES ====================== */
.certifications {
  text-align: center;
  padding: 4rem 0;
  background: #f8f9fa;
  border-radius: 20px;
  margin: 4rem 0;
}

.certs-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--dark);
}

.cert-item i {
  color: var(--accent);
  margin-right: 0.8rem;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {
  .story-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  
  .story-grid img {
    max-width: 100%; /* En móvil ocupa todo el ancho disponible */
    height: auto;
    border-radius: 16px;
  }
  
  .about-hero h1 { 
    font-size: 3.5rem; 
  }
}

@media (max-width: 768px) {
  .about-hero {
    height: 48vh;
    min-height: 380px;
    padding: 4rem 5%; /* Grosor ajustado para celular */
  }
  
  .about-hero h1 { 
    font-size: 2.8rem !important; 
  }
  
  .about-hero p.tagline { 
    font-size: 1.25rem !important; 
  }
  
  .about-content { 
    padding: 3rem 5%; 
  }
}