/* ================================================= */
/* ============== APPLE DESIGN SYSTEM ============== */
/* ============== EMPRESAS PAGE ==================== */
/* ================================================= */

:root {
  --apple-bg: #ffffff;
  --apple-text: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-border: rgba(0,0,0,0.06);
  --apple-blue: #0066cc;
  --apple-blue-dark: #004999;
  --apple-green: #34c759;
  --apple-gray-soft: #f5f5f7;
  --apple-gray-medium: #e8e8ed;
  --apple-radius-xl: 32px;
  --apple-radius-lg: 24px;
  --apple-radius-md: 18px;
  --apple-radius-sm: 14px;
  --transition-apple: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.02);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--apple-bg);
  color: var(--apple-text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================= */
/* ============== EMPRESAS HERO ==================== */
/* ================================================= */

.empresas-hero {
  position: relative;
  padding: 100px 24px 80px;
  background: linear-gradient(to bottom, #ffffff, #f9f9fb);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--apple-border);
}

.empresas-hero h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: var(--apple-text);
  position: relative;
  z-index: 2;
}

.empresas-hero p {
  font-size: 20px;
  color: var(--apple-muted);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

/* ================================================= */
/* ============== ICON RAIN EMPRESAS =============== */
/* ================================================= */

.empresas-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.empresas-icon {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  user-select: none;
  color: rgba(0,102,204,0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  pointer-events: none;
  z-index: 1;
}

/* ================================================= */
/* ============== TRUST BADGES ===================== */
/* ================================================= */

.trust-banner {
  background: var(--apple-gray-soft);
  padding: 24px;
  border-bottom: 1px solid var(--apple-border);
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item i {
  font-size: 24px;
  color: var(--apple-blue);
}

.trust-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--apple-text);
}

/* ================================================= */
/* ============== ABOUT GRID ======================= */
/* ================================================= */

.about-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--apple-text);
}

.about-content p {
  font-size: 18px;
  color: var(--apple-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.about-stat {
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 24px;
  transition: var(--transition-apple);
}

.about-stat:hover {
  transform: translateY(-4px);
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
}

.about-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--apple-blue);
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 15px;
  color: var(--apple-muted);
}

.about-image {
  border-radius: var(--apple-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-apple);
}

.about-image:hover img {
  transform: scale(1.02);
}

/* ================================================= */
/* ============== MISION VISION ==================== */
/* ================================================= */

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.mision-card, .vision-card {
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-xl);
  padding: 40px 32px;
  transition: var(--transition-apple);
}

.mision-card:hover, .vision-card:hover {
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.mision-icon, .vision-icon {
  font-size: 40px;
  color: var(--apple-blue);
  margin-bottom: 24px;
}

.mision-card h3, .vision-card h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.mision-card p, .vision-card p {
  font-size: 16px;
  color: var(--apple-muted);
  line-height: 1.6;
}

/* ================================================= */
/* ============== VALORES ========================== */
/* ================================================= */

.valores-section {
  background: var(--apple-gray-soft);
  padding: 80px 24px;
  border-radius: 48px;
  margin: 40px 24px;
}

.valores-container {
  max-width: 1200px;
  margin: 0 auto;
}

.valores-header {
  text-align: center;
  margin-bottom: 48px;
}

.valores-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0,102,204,0.08);
  color: var(--apple-blue);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.valores-header h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.valor-item {
  background: white;
  border-radius: var(--apple-radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--apple-border);
  transition: var(--transition-apple);
}

.valor-item:hover {
  transform: translateY(-6px);
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
}

.valor-icon {
  font-size: 40px;
  color: var(--apple-blue);
  margin-bottom: 20px;
}

.valor-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.valor-item p {
  font-size: 14px;
  color: var(--apple-muted);
  line-height: 1.5;
}

/* ================================================= */
/* ============== CLIENTES ========================= */
/* ================================================= */

.clientes-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.clientes-header {
  text-align: center;
  margin-bottom: 48px;
}

.clientes-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0,102,204,0.08);
  color: var(--apple-blue);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.clientes-header h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cliente-item {
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-apple);
}

.cliente-item:hover {
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cliente-icon {
  font-size: 48px;
  color: var(--apple-muted);
  margin-bottom: 16px;
  opacity: 0.7;
}

.cliente-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cliente-item p {
  font-size: 13px;
  color: var(--apple-muted);
}

/* ================================================= */
/* ============== CERTIFICACIONES ================== */
/* ================================================= */

.certificaciones-section {
  background: linear-gradient(145deg, #f5f5f7, #ffffff);
  border-radius: var(--apple-radius-xl);
  max-width: 1200px;
  margin: 40px auto;
  padding: 60px 48px;
  border: 1px solid var(--apple-border);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cert-item {
  text-align: center;
}

.cert-icon {
  font-size: 48px;
  color: var(--apple-blue);
  margin-bottom: 20px;
}

.cert-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-item p {
  font-size: 14px;
  color: var(--apple-muted);
  line-height: 1.5;
}

/* ================================================= */
/* ============== TIMELINE ========================= */
/* ================================================= */

.timeline-section {
  padding: 60px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.timeline-header h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px;
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  transition: var(--transition-apple);
}

.timeline-item:hover {
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-year {
  font-size: 28px;
  font-weight: 700;
  color: var(--apple-blue);
  letter-spacing: -1px;
}

.timeline-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 16px;
  color: var(--apple-muted);
}

/* ================================================= */
/* ============== CTA EMPRESAS ===================== */
/* ================================================= */

.cta-empresas {
  background: linear-gradient(145deg, #0066cc, #004999);
  border-radius: var(--apple-radius-xl);
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 64px 48px;
  text-align: center;
  color: white;
}

.cta-empresas h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.cta-empresas p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-empresas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  background: white;
  border: none;
  border-radius: 980px;
  color: var(--apple-blue-dark);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-apple);
}

.btn-cta-empresas:hover {
  background: rgba(255,255,255,0.95);
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn-cta-empresas i {
  font-size: 18px;
}

/* ================================================= */
/* ============== RESPONSIVE ======================= */
/* ================================================= */

@media (max-width: 950px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .empresas-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 650px) {
  .empresas-hero h1 {
    font-size: 40px;
  }
  
  .valores-grid {
    grid-template-columns: 1fr;
  }
  
  .clientes-grid {
    grid-template-columns: 1fr;
  }
  
  .mision-vision-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .trust-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cta-empresas {
    padding: 48px 24px;
  }
  
  .cta-empresas h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .empresas-hero {
    padding: 80px 20px 60px;
  }
  
  .empresas-hero h1 {
    font-size: 36px;
  }
  
  .empresas-hero p {
    font-size: 18px;
  }
  
  .about-content h2 {
    font-size: 36px;
  }
  
  .valores-header h2 {
    font-size: 36px;
  }
  
  .btn-cta-empresas {
    padding: 16px 32px;
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

/* ================================================= */
/* ============== HERO CON IMAGEN BG =============== */
/* ================================================= */

.empresas-hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empresas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

.empresas-hero .empresas-rain {
  z-index: 2;
}

.empresas-hero h1,
.empresas-hero p {
  position: relative;
  z-index: 3;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.empresas-hero h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.empresas-hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(30px); }
}

/* ================================================= */
/* ============== RESPONSIVE HERO ================== */
/* ================================================= */

@media (max-width: 950px) {
  .empresas-hero h1 {
    font-size: 48px;
  }
  
  .empresas-hero {
    padding: 100px 24px 80px;
    min-height: 450px;
  }
}

@media (max-width: 650px) {
  .empresas-hero h1 {
    font-size: 40px;
  }
  
  .empresas-hero p {
    font-size: 18px;
  }
  
  .empresas-hero {
    padding: 80px 20px 60px;
    min-height: 400px;
    background-attachment: scroll; /* Mejor rendimiento móvil */
  }
}

@media (max-width: 480px) {
  .empresas-hero h1 {
    font-size: 36px;
  }
  
  .empresas-hero {
    padding: 70px 16px 50px;
    min-height: 350px;
  }
}

/* ================================================= */
/* ============== STATS EN LÍNEA =================== */
/* ================================================= */

.stats-inline {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  max-width: 100%;
}

.stat-card {
  flex: 1;
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition-apple);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--apple-blue);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  color: var(--apple-muted);
}

/* Responsive stats */
@media (max-width: 650px) {
  .stats-inline {
    flex-direction: column;
    gap: 12px;
  }
  
  .stat-card {
    width: 100%;
    padding: 20px 16px;
  }
}

/* ================================================= */
/* ============== HERO CINEMATIC =================== */
/* ============== IDÉNTICO AL HOME ================= */
/* ================================================= */

.hero-cinematic {
  position: relative;
  height: 45vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 20px;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(30px); }
}

.hero-cinematic:hover .hero-bg {
  transform: scale(1.18);
}

/* Responsive Hero */
@media (max-width: 950px) {
  .hero-cinematic {
    min-height: 400px;
  }
  .hero-content h1 {
    font-size: 42px;
  }
}

@media (max-width: 650px) {
  .hero-cinematic {
    min-height: 350px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-content p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-cinematic {
    min-height: 320px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
}