/* ===================================
   SATEK INGENIERÍA — Estilos principales
   =================================== */

/* --- Fuentes --- */
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 350.ttf') format('truetype');
  font-weight: 350;
  font-style: normal;
}
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'StereoGothic';
  src: url('../fonts/StereoGothic/Stereo Gothic 500 Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

/* --- Variables --- */
:root {
  --dark:        #0d1b2a;
  --steel:       #1c2e42;
  --steel-mid:   #2a3f57;
  --grey:        #6b7c8d;
  --grey-light:  #b0bec8;
  --surface:     #f2f4f7;
  --white:       #ffffff;
  --accent:      #e85d04;
  --accent-dark: #c44b02;
  --accent-pale: #fff2ec;

  --radius:  6px;
  --shadow:  0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* Tipografía: títulos/apartados en StereoGothic, cuerpos en Onest */
  --font-display: 'StereoGothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Títulos, apartados y elementos display mantienen StereoGothic (fuente del logo) */
.section-title,
.hero h1,
.servicio-title,
.servicio-num,
.stat-number,
.step-title,
.sector-name,
.form-title,
.logo-satek,
.logo-sub,
.nav-links a,
.tag,
.hero-eyebrow span {
  font-family: var(--font-display);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Utilidades --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.tag {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.section-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey);
  max-width: 560px;
  margin-top: 12px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,93,4,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--steel-mid);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===================================
   NAVEGACIÓN
   =================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 24px 0;
}

.nav.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
  transition: opacity var(--transition);
}
.nav-logo:hover .logo-text { opacity: 0.8; }

.logo-satek {
  font-family: 'StereoGothic', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-sub {
  font-family: 'StereoGothic', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 8.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  letter-spacing: 0.08em;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-cta::after { display: none; }

/* Menú desplegable de Servicios */
.nav-dropdown { position: relative; }
.nav-sub-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 0.9rem;
}
.nav-submenu {
  position: absolute;
  top: 100%; left: -16px;
  margin-top: 14px;
  background: var(--dark);
  min-width: 290px;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}
/* Puente invisible para que el hover no se pierda en el hueco */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu li { display: block; }
.nav-submenu a {
  display: block;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}
.nav-submenu a::after { display: none; }
.nav-submenu a:hover { background: var(--steel); color: var(--white); }

/* Botón cerrar menú móvil */
.menu-close {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 110;
}

/* Selector de idioma (banderas) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switch-desktop {
  margin-left: 28px;
}
.lang-btn {
  width: 26px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition);
  display: inline-flex;
}
.lang-btn .flag {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.lang-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lang-btn.active {
  opacity: 1;
  border-color: var(--accent);
}
.nav-lang-mobile { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center top/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,27,42,0.2) 0%,
    rgba(13,27,42,0.55) 50%,
    rgba(13,27,42,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.03em;
  max-width: 900px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.hero-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  cursor: pointer;
  transition: color var(--transition);
}
.hero-scroll:hover { color: var(--white); }
.hero-scroll-line {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.3; }
}

/* Stats bar bajo el hero */
.stats-bar {
  background: var(--steel);
  padding: 0;
  overflow: hidden;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: left;
  min-width: 0;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  white-space: nowrap;
}
.stat-number.stat-small {
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--grey-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===================================
   SERVICIOS
   =================================== */
.servicios {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}
.servicios::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/servicios-bg.jpg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

.servicios-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}

.servicios-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--surface);
}

.servicio-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  transition: var(--transition);
  cursor: default;
  min-width: 0;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.servicio-card:hover::before { width: 100%; }
.servicio-card:hover { background: var(--surface); }

.servicio-icon {
  width: 52px; height: 52px;
  margin-bottom: 28px;
  color: var(--accent);
}

.servicio-num {
  position: absolute;
  top: 32px; right: 36px;
  font-size: 5rem;
  font-weight: 400;
  color: var(--surface);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  transition: color var(--transition);
}
.servicio-card:hover .servicio-num { color: #e8edf2; }

.servicio-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.servicio-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.servicio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.servicio-tag {
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-mid);
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 2px;
  transition: var(--transition);
  white-space: nowrap;
}
.servicio-card:hover .servicio-tag {
  background: var(--accent-pale);
  color: var(--accent);
}

.servicio-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: color var(--transition), transform var(--transition);
}
.servicio-link:hover { color: var(--accent-dark); transform: translateX(3px); }

/* ===================================
   SECTORES
   =================================== */
.sectores {
  padding: 100px 0;
  background: var(--dark);
}
.sectores-header { margin-bottom: 64px; }
.sectores-header .section-title { color: var(--white); }
.sectores-header .section-sub   { color: var(--grey-light); }

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--steel-mid);
}

.sector-item {
  background: var(--steel);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.sector-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}
.sector-item:hover::before { height: 100%; }
.sector-item:hover { background: var(--steel-mid); }

.sector-icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.sector-icon svg { width: 100%; height: 100%; }

.sector-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sector-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .sectores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sectores-grid { grid-template-columns: 1fr; }
  .sector-item { padding: 28px 24px; }
}

/* ===================================
   CÓMO TRABAJAMOS
   =================================== */
.proceso {
  padding: 100px 0;
  background: var(--dark);
  overflow: hidden;
}

.proceso .section-title { color: var(--white); }
.proceso .section-sub { color: var(--grey-light); }

.proceso-header {
  margin-bottom: 64px;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--steel-mid), transparent);
}

.proceso-step {
  padding: 0 24px;
  position: relative;
}

.step-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--steel);
  border: 2px solid var(--steel-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.step-dot svg {
  width: 24px; height: 24px;
  color: var(--accent);
}

.step-num {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.step-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ===================================
   NOSOTROS / ABOUT
   =================================== */
.nosotros {
  padding: 100px 0;
  background: var(--white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-img-wrap {
  position: relative;
}

.nosotros-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
}

.nosotros-img-accent {
  position: absolute;
  bottom: -32px; right: -32px;
  width: 55%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.nosotros-text .tag { margin-bottom: 20px; }

.nosotros-text .section-title { margin-bottom: 20px; }

.nosotros-body {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.nosotros-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--accent-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.value-icon svg { width: 20px; height: 20px; }

.value-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.value-desc {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.5;
}

/* Logo colegio */
.colegiado-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  margin-top: 16px;
}
.colegiado-badge img { height: 40px; width: auto; }
.colegiado-text {
  font-size: 0.75rem;
  color: var(--grey);
  line-height: 1.4;
}
.colegiado-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--dark);
  font-weight: 700;
}

/* ===================================
   CONTACTO
   =================================== */
.contacto {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
}
.contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/contacto-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.contacto-info,
.contacto-form {
  min-width: 0;
  overflow: hidden;
}

.contacto-info .section-title { color: var(--white); margin-bottom: 16px; }
.contacto-info .section-sub { color: var(--grey-light); margin-bottom: 48px; }

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacto-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.contacto-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--steel);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contacto-item-icon svg { width: 20px; height: 20px; }

.contacto-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}
.contacto-item-value {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.contacto-item-value a {
  color: var(--white);
  transition: color var(--transition);
}
.contacto-item-value a:hover { color: var(--accent); }

.contacto-social {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.social-link {
  width: 40px; height: 40px;
  background: var(--steel);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-light);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.social-link svg { width: 18px; height: 18px; }

/* Form */
.contacto-form {
  background: var(--steel);
  border-radius: var(--radius);
  padding: 48px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.3;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--steel); color: var(--white); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check label {
  font-size: 0.78rem;
  color: var(--grey-light);
  line-height: 1.5;
  cursor: pointer;
}
.form-check label a { color: var(--accent); }

.form-submit {
  width: 100%;
}

/* ===================================
   PÁGINAS LEGALES
   =================================== */
.legal-page {
  padding: 140px 0 100px;
  background: var(--white);
  min-height: 70vh;
}

.legal-header {
  max-width: 700px;
  margin-bottom: 48px;
}

.legal-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--surface);
  padding-bottom: 0;
}

.legal-nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}
.legal-nav-link:hover { color: var(--dark); }
.legal-nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.legal-body {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.legal-section p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.legal-section ul li {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.legal-section a:hover { opacity: 0.75; }

/* Tabla cookies */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid var(--surface);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.cookie-table th {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.cookie-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--surface);
  color: var(--grey);
  font-weight: 300;
  line-height: 1.6;
  vertical-align: top;
}
.cookie-table code {
  font-family: monospace;
  font-size: 0.8em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--dark);
}

@media (max-width: 768px) {
  .legal-page { padding: 120px 0 60px; }
  .legal-nav { flex-wrap: wrap; }
  .legal-nav-link { padding: 10px 14px; }
}

/* ===================================
   PÁGINAS EXPLICATIVAS (artículos de servicio)
   =================================== */
.art-hero-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
}
.art-hero-head h1 { margin: 0; }
.art-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.30);
  border-radius: 16px;
}
.art-hero-icon svg { width: 38px; height: 38px; display: block; }

.art-hero {
  background: var(--dark);
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/servicios-bg.jpg') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.art-hero .container { position: relative; z-index: 1; }
.art-breadcrumb {
  font-size: 0.78rem;
  color: var(--grey-light);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.art-breadcrumb a { color: var(--accent); }
.art-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 800px;
  overflow-wrap: break-word;
}
.art-hero .art-intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 720px;
  margin-top: 18px;
}

.art-body {
  padding: 80px 0 100px;
  background: var(--white);
}
.art-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.art-main { min-width: 0; }

.art-section { margin-bottom: 48px; }
.art-section:last-child { margin-bottom: 0; }
.art-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.art-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 10px;
}
.art-section p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 14px;
}
.art-section ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.art-section ul li {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}
.art-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.art-section ul li strong { color: var(--dark); font-weight: 600; }

/* Caja destacada (ej. "quién está obligado") */
.art-callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.art-callout h3 { margin-top: 0; }
.art-callout p:last-child { margin-bottom: 0; }

/* Tabla de umbrales */
.art-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--surface); }
.art-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.art-table th {
  background: var(--dark); color: var(--white);
  font-weight: 500; font-size: 0.78rem;
  text-align: left; padding: 12px 16px; letter-spacing: 0.02em;
}
.art-table td {
  padding: 12px 16px; border-top: 1px solid var(--surface);
  color: var(--grey); font-weight: 300; line-height: 1.5; vertical-align: top;
}
.art-table tr:nth-child(even) td { background: #fafbfc; }

/* Sidebar */
.art-aside { position: sticky; top: 100px; }
.art-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--white);
}
.art-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.art-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.6;
  margin-bottom: 18px;
}
.art-card .btn { width: 100%; justify-content: center; }
.art-card-tags { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.art-card-tags .tag-label {
  font-size: 0.7rem; color: var(--grey); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px; display: block;
}
.art-card-tags a {
  display: block; font-size: 0.85rem; color: var(--grey-light);
  padding: 6px 0; transition: color var(--transition);
}
.art-card-tags a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; gap: 40px; }
  .art-aside { position: static; }
}
@media (max-width: 768px) {
  .art-hero { padding: 120px 0 50px; }
  .art-body { padding: 50px 0 60px; }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: #080f17;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img { display: none; }

.footer-copy {
  font-size: 0.78rem;
  color: var(--grey);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ===================================
   ANIMACIONES
   =================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .proceso-steps::before { display: none; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-img-accent { right: 0; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--dark);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 100; }
  .nav-links.open ~ .menu-close { display: block; }
  .nav-links.open ~ .nav-toggle { display: none; }

  /* Hero de artículo: icono apilado sobre el título en móvil (evita que el título se corte) */
  .art-hero-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .art-hero h1 { font-size: clamp(1.1rem, 5.8vw, 1.9rem); }

  /* Idioma: ocultar el de desktop, mostrar el del menú móvil */
  .lang-switch-desktop { display: none; }
  .nav-lang-mobile { display: block; }
  .nav-links.open .nav-lang-mobile .lang-switch { justify-content: center; }
  .lang-btn { width: 34px; height: 23px; }

  /* Submenú de servicios en móvil = acordeón */
  .nav-dropdown { display: flex; flex-direction: column; align-items: center; }
  .nav-sub-toggle { display: inline-block; font-size: 1.2rem; padding: 6px 12px; }
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-submenu::before { display: none; }
  .nav-submenu.open { max-height: 600px; }
  .nav-submenu a {
    text-align: center;
    color: var(--grey-light);
    font-size: 1rem;
    padding: 9px 0;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 48px;
  }
  .hero-content { padding: 0; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 3.2rem); }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .servicios-header { grid-template-columns: 1fr; }
  .servicios-header-right { align-items: flex-start; }
  .servicios-grid { grid-template-columns: 1fr; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 16px; }
  .stat-number { font-size: 1.7rem; }
  .stat-number.stat-small { font-size: 1.3rem; }
  .stat-label { font-size: 0.65rem; }

  .proceso-steps { grid-template-columns: 1fr; }

  .nosotros-img-accent { display: none; }
  .nosotros-values { grid-template-columns: 1fr; }
  .nosotros { padding: 60px 0; }
  .nosotros-img-main {
    aspect-ratio: 3/2;
    object-position: center 35%;
  }
  .nosotros-img-wrap { margin-bottom: 0; }

  .form-row { grid-template-columns: 1fr; }
  .contacto-form { padding: 28px 20px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .servicios-header-right .btn { display: none; }
}
