/* Opción 2 – Ajuste cliente: grises, video+parallax, mapa, formulario, hovers */
@import url('../css/base.css');

:root {
  --accent: #4b5563;
  --accent-hover: #374151;
  --bg: #ffffff;
  --bg-panel: #f5f5f5;
  --bg-dark: #111827;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --column-1: #f3f4f6;
  --column-2: #1f2937;
  --column-3: #e5e7eb;
}

body { color: var(--text); background: var(--bg); }

/* Reveal al scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header – mismo criterio que opción 1: fondo claro, logo izquierda, CTA derecha */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: var(--space-2xl); align-items: center; }
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover { color: var(--accent); }
.btn-cta {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 500;
}
.btn-cta:hover { border-color: var(--accent); color: var(--accent); }

/* Hamburguesa mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  border-radius: 4px;
}
.nav-toggle:hover { background: var(--bg-panel); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}
.header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero – video de fondo con parallax (estilo opción 1) */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-video {
  position: absolute;
  inset: -20%;
  left: -10%;
  right: -10%;
  width: 120%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-lg);
}
.hero-label-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 0;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-lg);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-family);
  border-radius: 0;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--white);
  color: var(--bg-dark);
  border: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-arrow {
  min-width: 130px;
  height: 52px;
  padding: 0 var(--space-lg);
  background: var(--accent);
  color: var(--white);
  border: none;
}
.btn-arrow:hover { opacity: 0.9; }

/* Secciones genéricas */
.section { padding: var(--space-4xl) 0; }
.section-light { background: var(--bg); }
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.section-light .section-label { color: var(--accent); }
.section-dark .section-label { color: rgba(255,255,255,0.7); }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}
.section-light .section-title { color: var(--text); }
.section-dark .section-title { color: var(--white); }
.section-intro {
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 640px;
}
.section-light .section-intro { color: var(--text-muted); }
.section-dark .section-intro { color: rgba(255,255,255,0.85); }

/* Quiénes somos diferenciado */
.about-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.about-kicker {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.2rem 0.55rem;
  background: #e5e7eb;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-copy .section-intro {
  max-width: 58ch;
}
.about-metrics {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.about-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-md);
}
.about-metric span {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-metric small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.about-visual {
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 320px;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empresas del grupo: acceso directo igualitario */
.empresas-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-lg);
}
.empresas-grid .empresa-card { grid-column: span 2; }
.empresas-grid .empresa-card:nth-child(4) { grid-column: 2 / span 2; }
.empresas-grid .empresa-card:nth-child(5) { grid-column: 4 / span 2; }
.empresa-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: var(--space-xl);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.empresa-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}
.empresa-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}
.empresa-card span {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
}
.empresa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
  border-color: var(--accent);
}

/* Encabezado de servicios */
.servicios-head {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
}

/* Servicios */
.section-columns { padding: 0; }
.columns-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 60vh;
}
.column-card {
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
}
.column-card--1 {
  background: var(--column-1);
  color: var(--text);
}
.column-card--2 {
  background: var(--column-2);
  color: var(--white);
}
.column-card--3 {
  background: var(--column-3);
  color: var(--text);
}
.column-num {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.5;
}
.column-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2xl);
}
.column-card--1 .column-icon,
.column-card--3 .column-icon { color: var(--column-2); }
.column-card--2 .column-icon { color: var(--white); }
.column-icon svg { width: 100%; height: 100%; }
.column-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  margin-top: auto;
}
.column-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  opacity: 0.9;
}
.column-card {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.column-card:hover {
  transform: translateY(-8px);
  filter: saturate(1.05);
}

/* Equipamiento */
.equip-section .section-title { margin-bottom: var(--space-xl); }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}
.equip-item {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.equip-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.equip-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.14);
}
.equip-item:hover img {
  transform: scale(1.05);
}
.fichas-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.fichas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.ficha-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  border-radius: 2px;
}
.ficha-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.ficha-card dl { margin: 0; font-size: var(--text-sm); }
.ficha-card dt { color: var(--text-muted); margin-top: var(--space-sm); }
.ficha-card dt:first-of-type { margin-top: 0; }
.ficha-card dd { color: var(--text); margin: 0; }

/* CTA – misma imagen de fondo con parallax */
.cta-section {
  position: relative;
  min-height: 50vh;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}
.cta-video {
  position: absolute;
  inset: -20%;
  left: -10%;
  right: -10%;
  width: 120%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}
.cta-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.cta-section-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.cta-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}
.cta-section .btn-primary { background: var(--white); color: var(--bg-dark); }
.cta-section .btn-primary:hover { opacity: 0.95; }

/* Formulario */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-family);
}
.contact-form input::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.contact-form select option {
  color: var(--text);
}
.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}
.contact-form button {
  justify-self: center;
  grid-column: 1 / -1;
}

/* Mapa y sedes */
.sedes-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.map-embed {
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
}
.sedes-list {
  list-style: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: var(--space-lg);
}
.sedes-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.sedes-list li:last-child {
  border-bottom: none;
}
.maps-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.sedes-list a {
  color: var(--accent);
  font-weight: 600;
}
.sedes-list a:hover {
  text-decoration: underline;
}

/* Footer – mismo diseño que opción 1 (documento: mismo diseño de footer) */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--text-muted);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  min-height: 72px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  justify-self: start;
}
.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--accent); }
.footer-logo { justify-self: center; }
.footer-logo img { height: 36px; width: auto; }
.footer-contact {
  justify-self: end;
  font-size: var(--text-sm);
  text-align: right;
  color: var(--text-muted);
}
.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Mobile */
/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-lg);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .header.is-open .nav { display: flex; }
  .nav a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child { border-bottom: none; }
  .hero { padding-top: calc(72px + var(--space-2xl)); }
  .hero-video,
  .cta-video {
    inset: -10%;
    width: 120%;
    height: 120%;
  }
  .empresas-grid { grid-template-columns: 1fr; }
  .empresas-grid .empresa-card:nth-child(4),
  .empresas-grid .empresa-card:nth-child(5) { grid-column: auto; }
  .about-layout { grid-template-columns: 1fr; }
  .about-metrics { grid-template-columns: 1fr; }
  .about-visual { min-height: 220px; }
  .columns-three { grid-template-columns: 1fr; min-height: auto; }
  .equip-grid { grid-template-columns: 1fr; }
  .sedes-layout { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-self: center; align-items: center; }
  .footer-contact { justify-self: center; text-align: center; }
  .whatsapp-float { bottom: var(--space-lg); right: var(--space-lg); width: 52px; height: 52px; }
}
