/* ===========================
   TOANPE – SOBRE NOSOTROS (MEJORADO)
   Este archivo se carga después de styles.css
   =========================== */

/* Paleta TOANPE + aliases de compatibilidad */
:root {
  --azul-oscuro: #1C1B29;
  --naranja-fuerte: #FB8C00; /* alias corporativo */
  --naranja-suave: #FFB74D;  /* alias corporativo */
  --rojo: #C62828;
  --gris-200: #e6e7f0;
  --gris-120: #f3f4f8;
  --gris-100: #f6f7fb;
  --blanco: #ffffff;
  
  /* Variables adicionales para consistencia */
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-1: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 12px 36px rgba(0, 0, 0, 0.15);
  --transition: all 0.25s ease;
}

/* ===== Header / Navbar (ajuste visual en esta página) ===== */
.header {
  background: var(--azul-oscuro);
  box-shadow: var(--shadow-1);
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 0.35rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar a {
  color: #ececf4;
  font-weight: 700;
  transition: var(--transition);
}

.navbar a.active,
.navbar a:hover {
  color: #ffffff;
}

.navbar a.active::after,
.navbar a:hover::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--naranja-fuerte);
  border-radius: 3px;
  margin-top: 6px;
  transition: var(--transition);
}

.menu-toggle .bar {
  background: #ffffff;
  transition: var(--transition);
}

/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.sobre-nosotros-container {
  padding: 8rem 5%;
  background-color: var(--gris-100);
  position: relative;
  overflow: hidden;
}

.sobre-nosotros-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231C1B29' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

/* Hero */
.hero-nosotros {
  max-width: 1200px;
  margin: 0 auto 6rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.hero-texto h1 {
  font-size: 3.8rem;
  color: var(--naranja-fuerte);
  line-height: 1.2;
  margin-bottom: 1.6rem;
  letter-spacing: -0.3px;
  font-weight: 800;
}

.hero-texto .subtitulo {
  font-size: 1.9rem;
  color: #595b72;
  margin-bottom: 2.4rem;
  line-height: 1.6;
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--naranja-fuerte);
  border-radius: var(--radius-lg);
  top: 12px;
  left: 12px;
  z-index: -1;
  opacity: 0.3;
}

.hero-image img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--gris-200);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
}

/* Historia / Quiénes somos */
.historia-section {
  max-width: 1200px;
  margin: 0 auto 8rem;
  position: relative;
  z-index: 1;
}

.historia-content h2 {
  font-size: 3.2rem;
  color: var(--rojo);
  margin-bottom: 2.4rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.historia-content h2 span {
  color: var(--naranja-fuerte);
}

.historia-texto {
  max-width: 900px;
  margin: 0 auto;
}

.historia-texto p {
  font-size: 1.7rem;
  color: #565872;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

/* Ocultar completamente logros (pedido del cliente) */
.logros-grid {
  display: none !important;
}

/* ===== BLOQUES REUSABLES (Valores/Esencia/Modelo/Áreas) ===== */
.valores-section {
  max-width: 1200px;
  margin: 0 auto 8rem;
  padding: 0 5%;
  position: relative;
  z-index: 1;
}

.valores-section h2 {
  font-size: 3.2rem;
  color: #2a2c3f;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
}

.valor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  border: 1px solid var(--gris-200);
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.valor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(28, 27, 41, 0.12);
}

.valor-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--naranja-suave), var(--naranja-fuerte));
  box-shadow: 0 10px 24px rgba(251, 140, 0, 0.22);
  transition: var(--transition);
}

.valor-card:hover .valor-icon {
  transform: scale(1.05);
}

.valor-icon i {
  font-size: 2.4rem;
  color: #111;
}

.valor-card h3 {
  font-size: 2.1rem;
  color: #2a2c3f;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.valor-card p {
  font-size: 1.55rem;
  color: #565872;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== ESPECÍFICOS DE ESTA PÁGINA ===== */
/* Esencia (Misión/Visión) */
.esencia-section .valor-card {
  position: relative;
  overflow: hidden;
}

.esencia-section .valor-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--naranja-fuerte), var(--naranja-suave));
  transition: var(--transition);
}

.esencia-section .valor-card:hover::before {
  height: 5px;
}

/* Modelo de trabajo (4 pasos) */
.modelo-grid .valor-card {
  border-top: 4px solid rgba(251, 140, 0, 0.25);
  transition: var(--transition);
}

.modelo-grid .valor-card:hover {
  border-top-color: var(--naranja-fuerte);
  transform: translateY(-6px);
}

/* Áreas clave */
.areas-grid .valor-card i.fa-rocket {
  transform: translateY(0);
  transition: var(--transition);
}

.areas-grid .valor-card:hover i.fa-rocket {
  transform: translateY(-2px);
}

.areas-grid .valor-card .valor-icon {
  background: linear-gradient(135deg, #ffd7a0, var(--naranja-fuerte));
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-texto h1 {
    font-size: 3.2rem;
  }
  
  .hero-texto .subtitulo {
    font-size: 1.7rem;
  }
  
  .valores-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .historia-content h2,
  .valores-section h2 {
    font-size: 2.8rem;
  }
  
  .valor-card {
    padding: 2.4rem;
  }
}

@media (max-width: 480px) {
  .sobre-nosotros-container {
    padding: 6rem 5%;
  }
  
  .hero-texto h1 {
    font-size: 2.8rem;
  }
  
  .hero-texto .subtitulo {
    font-size: 1.6rem;
  }
  
  .historia-content h2,
  .valores-section h2 {
    font-size: 2.4rem;
  }
  
  .valores-grid {
    grid-template-columns: 1fr;
  }
  
  .valor-card {
    padding: 2rem;
  }
  
  .valor-icon {
    width: 70px;
    height: 70px;
  }
  
  .valor-icon i {
    font-size: 2rem;
  }
  
  .valor-card h3 {
    font-size: 1.9rem;
  }
  
  .valor-card p {
    font-size: 1.5rem;
  }
}