@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: #1A1A2E; background: #fff; overflow-x: hidden; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TOKENS ─────────────────────────────── */
:root {
  --azul:       #1A237E;   /* azul marino corporativo */
  --azul-mid:   #283593;
  --azul-light: #3949AB;
  --azul-pale:  #E8EAF6;   /* fondo suave azulado */
  --azul-soft:  #C5CAE9;
  --blanco:     #FFFFFF;
  --gris-fondo: #F5F5F7;   /* gris muy suave para secciones alternas */
  --gris-borde: #E0E0E0;
  --texto:      #1A1A2E;   /* texto oscuro sobre fondo claro */
  --texto-sub:  #4A5068;   /* subtexto */
  --fh: 'Barlow', sans-serif;
  --fb: 'Source Sans 3', sans-serif;
  --r: 8px;
  --rl: 12px;
  --sombra: 0 4px 24px rgba(26,35,126,.10);
  --sombra-lg: 0 12px 48px rgba(26,35,126,.16);
  --trans: .28s cubic-bezier(.4,0,.2,1);
}

/* ─── UTILITIES ──────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--gris-fondo); }
.tag-label {
  display: inline-block;
  font-family: var(--fh); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--azul-light); background: var(--azul-pale);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--fh); font-size: clamp(24px,3.2vw,38px);
  font-weight: 800; line-height: 1.12; color: var(--azul);
}
.section-sub {
  font-size: 16px; color: var(--texto-sub);
  margin-top: 12px; max-width: 580px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 12px auto 0; }

/* ─── BOTONES ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r);
  font-family: var(--fh); font-size: 14px; font-weight: 700;
  letter-spacing: .03em; cursor: pointer; border: 2px solid transparent;
  transition: var(--trans); white-space: nowrap;
}
.btn-primary { background: var(--azul); color: #fff; border-color: var(--azul); }
.btn-primary:hover { background: var(--azul-mid); border-color: var(--azul-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,35,126,.28); }
.btn-secondary { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn-secondary:hover { background: var(--azul); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--azul); border-color: #fff; }
.btn-white:hover { background: var(--azul-pale); border-color: var(--azul-pale); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ─── HEADER ─────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--azul);
  padding: 0;
  transition: box-shadow var(--trans);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.header-logo img {
  height: 46px; width: auto;
  background: #fff; border-radius: 6px; padding: 5px 10px;
}
.header-nav { display: flex; gap: 2px; }
.nav-link {
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.80); padding: 8px 14px; border-radius: 6px;
  transition: var(--trans);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link {
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.80); display: flex; align-items: center; gap: 6px;
  transition: color var(--trans);
}
.phone-link:hover { color: #fff; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  transition: var(--trans); transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--azul);
  z-index: 999; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 80px 24px 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 1.3rem; padding: 12px 24px; width: 100%; text-align: center; color: #fff; }
.mobile-phone { color: var(--azul-soft); font-family: var(--fh); font-weight: 700; font-size: 1.1rem; margin-top: 16px; }
.mobile-cta { margin-top: 12px; }

/* ─── HERO (FONDO BLANCO) ─────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: #FFFFFF;
  padding-top: 68px;
  position: relative; overflow: hidden;
}
/* Decoración sutil en esquina */
#hero::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--azul-pale) 0%, transparent 70%);
  pointer-events: none;
}
.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
  padding: 48px 0;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azul-pale); border: 1px solid var(--azul-soft);
  border-radius: 100px; padding: 5px 16px;
  font-family: var(--fh); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; color: var(--azul-light); text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-kicker::before {
  content: ''; width: 7px; height: 7px;
  background: var(--azul); border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero-title {
  font-family: var(--fh); font-size: clamp(30px,4.5vw,54px);
  font-weight: 900; line-height: 1.06;
  color: var(--azul);        /* AZUL MARINO SOBRE BLANCO */
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--azul-light);  /* azul ligeramente más claro */
}
.hero-subtitle {
  font-size: 17px; line-height: 1.72;
  color: var(--texto-sub);   /* GRIS OSCURO SOBRE BLANCO */
  max-width: 500px; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 48px;
  padding-top: 36px; border-top: 2px solid var(--gris-borde);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--fh); font-size: 32px; font-weight: 900;
  color: var(--azul);
}
.stat-label { font-size: 12px; color: var(--texto-sub); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
/* Imagen hero */
.hero-visual { position: relative; }
.hero-img-wrap {
  border-radius: var(--rl); overflow: hidden;
  box-shadow: var(--sombra-lg);
}
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.hero-img-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--azul); color: #fff;
  border-radius: var(--rl); padding: 18px 24px;
  font-family: var(--fh); box-shadow: var(--sombra-lg);
}
.hero-img-badge strong { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.hero-img-badge span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* ─── SERVICIOS (FONDO GRIS SUAVE) ──────── */
#servicios { background: var(--gris-fondo); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
  margin-top: 48px;
}
.service-card {
  background: #fff; border-radius: var(--rl);
  padding: 32px 28px; border: 1px solid var(--gris-borde);
  transition: var(--trans); position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--azul);
  transform: scaleX(0); transform-origin: left; transition: var(--trans);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--azul-pale); border: 1px solid var(--azul-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--fh); font-size: 15px; font-weight: 700;
  color: var(--azul); margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--texto-sub); line-height: 1.68; }

/* ─── POR QUÉ ELEGIRNOS (FONDO AZUL MARINO) */
#por-que { background: var(--azul); }
#por-que .tag-label { background: rgba(255,255,255,.12); color: #C5CAE9; }
#por-que .section-title { color: #fff; }
#por-que .section-sub { color: rgba(255,255,255,.72); }
.why-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.why-list { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; }
.why-item { display: flex; gap: 18px; }
.why-ico {
  flex-shrink: 0; width: 46px; height: 46px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.why-item h4 { font-family: var(--fh); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.why-item p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.65; }
.why-visual {}
.why-img { border-radius: var(--rl); overflow: hidden; }
.why-img img { width: 100%; height: 400px; object-fit: cover; display: block; }
.why-badge {
  background: #fff; color: var(--azul); border-radius: var(--rl);
  padding: 18px 24px; font-family: var(--fh); margin-top: 16px; display: inline-block;
}
.why-badge strong { display: block; font-size: 30px; font-weight: 900; line-height: 1; color: var(--azul); }
.why-badge span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-light); }

/* ─── GALERÍA (FONDO GRIS SUAVE) ─────────── */
#proyectos { background: var(--gris-fondo); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px;
}
.gallery-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; background: var(--azul); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, opacity .3s; }
.gallery-item.big img { min-height: 340px; }
.gallery-item:not(.big) img { min-height: 158px; }
.gallery-item:hover img { transform: scale(1.06); opacity: .4; }
.gallery-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(26,35,126,.90) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption h4 { font-family: var(--fh); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.gallery-caption p { font-size: 12px; color: rgba(255,255,255,.70); }
.gallery-footer { text-align: center; margin-top: 36px; }

/* ─── SOBRE NOSOTROS (FONDO BLANCO) ─────── */
#sobre { background: #fff; }
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-img-wrap { border-radius: var(--rl); overflow: hidden; box-shadow: var(--sombra-lg); position: relative; }
.about-img-wrap img { width: 100%; height: 440px; object-fit: cover; display: block; }
.about-img-accent {
  position: absolute; bottom: -16px; right: -16px;
  width: 160px; height: 160px; border-radius: var(--rl); overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--sombra);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { font-size: 15px; color: var(--texto-sub); line-height: 1.78; margin-top: 16px; }
.about-text p + p { margin-top: 14px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.value-chip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: var(--azul-pale);
  border-radius: 8px; border-left: 3px solid var(--azul-light);
}
.value-chip .ck { color: var(--azul); font-weight: 800; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.value-chip h5 { font-family: var(--fh); font-size: 13px; font-weight: 700; color: var(--azul); margin-bottom: 2px; }
.value-chip p { font-size: 12px; color: var(--texto-sub); }

/* ─── CTA BANNER (FONDO AZUL MARINO) ────── */
#cta-banner {
  background: var(--azul-mid);
  padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 48px 48px;
}
#cta-banner .container { position: relative; z-index: 1; }
#cta-banner h2 { font-family: var(--fh); font-size: clamp(22px,3.2vw,34px); font-weight: 800; color: #fff; margin-bottom: 12px; }
#cta-banner p { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; }

/* ─── CONTACTO (FONDO GRIS SUAVE) ────────── */
#contacto { background: var(--gris-fondo); }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 56px; align-items: start; margin-top: 56px;
}
.contact-info h3 { font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--azul); margin-bottom: 10px; }
.contact-info p { font-size: 15px; color: var(--texto-sub); line-height: 1.7; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.c-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--azul-pale); border: 1px solid var(--azul-soft);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.contact-item h5 { font-family: var(--fh); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-light); margin-bottom: 3px; }
.contact-item a, .contact-item p { font-size: 14px; color: var(--texto); font-weight: 500; }
.contact-item a:hover { color: var(--azul); }
.contact-map { margin-top: 28px; border-radius: var(--rl); overflow: hidden; border: 1px solid var(--gris-borde); }
/* Formulario */
.form-box { background: #fff; border-radius: var(--rl); padding: 36px; box-shadow: var(--sombra); }
.form-box h3 { font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--azul); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-family: var(--fh); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-sub); margin-bottom: 6px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 14px;
  background: var(--gris-fondo); border: 1.5px solid var(--gris-borde);
  border-radius: 6px; font-size: 14px; color: var(--texto);
  font-family: var(--fb); outline: none; transition: border-color var(--trans);
  appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--azul-light); box-shadow: 0 0 0 3px rgba(57,73,171,.12); }
.fg textarea { resize: vertical; min-height: 120px; }
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5068' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.form-check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--azul); cursor: pointer; }
.form-check label { font-size: 13px; color: var(--texto-sub); line-height: 1.55; cursor: pointer; }
.form-check a { color: var(--azul-light); text-decoration: underline; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-ok { display: none; text-align: center; padding: 28px; background: #E8F5E9; border-radius: 8px; border: 1px solid #A5D6A7; color: #2E7D32; font-family: var(--fh); font-weight: 600; }

/* ─── FOOTER (AZUL MARINO) ───────────────── */
#footer { background: var(--azul); }
.footer-body {
  padding: 60px 0 40px;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 44px;
}
.footer-brand {}
.footer-logo img { height: 42px; background: #fff; border-radius: 5px; padding: 4px 9px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.60); line-height: 1.72; margin-top: 14px; max-width: 240px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.20);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.60); font-size: 17px; transition: var(--trans);
}
.social-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.40); color: #fff; }
.footer-col h4 { font-family: var(--fh); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--trans); }
.footer-col a:hover { color: var(--azul-soft); }
.footer-contact-row { display: flex; gap: 8px; margin-bottom: 12px; }
.footer-contact-row span { font-size: 14px; color: rgba(255,255,255,.60); }
.footer-contact-row a { font-size: 14px; color: rgba(255,255,255,.60); transition: color var(--trans); }
.footer-contact-row a:hover { color: var(--azul-soft); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bar p { font-size: 13px; color: rgba(255,255,255,.45); }
.footer-legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 13px; color: rgba(255,255,255,.40); transition: color var(--trans); }
.footer-legal-links a:hover { color: var(--azul-soft); }

/* ─── COOKIE BANNER ──────────────────────── */
#cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 500px; background: #fff; border-radius: var(--rl);
  box-shadow: 0 16px 56px rgba(26,35,126,.22);
  padding: 24px 28px; z-index: 9999; border: 1px solid var(--gris-borde);
  transform: translateY(140px); opacity: 0; transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s;
}
#cookie-banner.show { transform: translateY(0); opacity: 1; }
#cookie-banner h4 { font-family: var(--fh); font-size: 16px; font-weight: 800; color: var(--azul); margin-bottom: 8px; }
#cookie-banner p { font-size: 13px; color: var(--texto-sub); line-height: 1.6; margin-bottom: 18px; }
#cookie-banner p a { color: var(--azul-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-accept { background: var(--azul); color: #fff; font-family: var(--fh); font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 6px; border: none; cursor: pointer; }
.ck-reject { background: var(--gris-fondo); color: var(--texto); font-family: var(--fh); font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 6px; border: 1px solid var(--gris-borde); cursor: pointer; }
.ck-config { background: transparent; color: var(--azul-light); font-family: var(--fh); font-size: 13px; font-weight: 600; padding: 9px 4px; border: none; cursor: pointer; text-decoration: underline; }

/* Modal cookies */
#cookie-modal { display: none; position: fixed; inset: 0; background: rgba(26,35,126,.45); z-index: 10000; align-items: center; justify-content: center; }
#cookie-modal.show { display: flex; }
.modal-box { background: #fff; border-radius: var(--rl); padding: 36px; max-width: 480px; width: 100%; margin: 20px; }
.modal-box h3 { font-family: var(--fh); font-weight: 800; color: var(--azul); margin-bottom: 20px; }
.ck-opt { padding: 14px 0; border-bottom: 1px solid var(--gris-borde); }
.ck-opt:last-child { border-bottom: none; }
.ck-opt-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.ck-opt-hd h5 { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--azul); }
.ck-opt p { font-size: 13px; color: var(--texto-sub); }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.tog-sl { position: absolute; inset: 0; background: var(--gris-borde); border-radius: 100px; cursor: pointer; transition: var(--trans); }
.tog-sl::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: var(--trans); }
.toggle input:checked + .tog-sl { background: var(--azul); }
.toggle input:checked + .tog-sl::before { transform: translateX(20px); }
.toggle input:disabled + .tog-sl { background: var(--azul-light); cursor: not-allowed; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* ─── ANIMACIONES SCROLL ─────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ─── PÁGINAS LEGALES ─────────────────────── */
.legal-header { background: var(--azul); padding: 130px 0 60px; text-align: center; }
.legal-header h1 { font-family: var(--fh); font-size: clamp(22px,4vw,40px); font-weight: 900; color: #fff; margin-bottom: 10px; }
.legal-header p { color: rgba(255,255,255,.65); font-size: 15px; }
.legal-body { max-width: 860px; margin: 0 auto; padding: 72px 24px; }
.legal-body h2 { font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--azul); margin: 40px 0 12px; padding-top: 16px; border-top: 2px solid var(--gris-borde); }
.legal-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--texto-sub); line-height: 1.78; margin-bottom: 10px; }
.legal-body ul { margin: 10px 0 14px 20px; list-style: disc; }
.legal-body a { color: var(--azul-light); text-decoration: underline; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-body th { background: var(--azul); color: #fff; font-family: var(--fh); font-weight: 700; padding: 11px 14px; text-align: left; }
.legal-body td { padding: 10px 14px; border-bottom: 1px solid var(--gris-borde); color: var(--texto-sub); }
.legal-body tr:nth-child(even) td { background: var(--gris-fondo); }
.legal-update { background: var(--azul-pale); border-left: 3px solid var(--azul-light); padding: 10px 16px; border-radius: 0 6px 6px 0; font-size: 13px; color: var(--texto-sub); margin-bottom: 28px; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .why-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  #header { padding: 0; }
  .header-nav, .phone-link { display: none; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.big { grid-column: span 2; }
  .about-layout { grid-template-columns: 1fr; }
  .about-img-accent { display: none; }
  .about-values { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.big { grid-column: span 1; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
}


/* GARANTÍAS DE LEGIBILIDAD - explicit colors */
.service-card h3 { color: #1A237E !important; }
.service-card p  { color: #4A5068 !important; }
.why-item h4     { color: #FFFFFF !important; }
.why-item p      { color: rgba(255,255,255,.72) !important; }
.hero-title      { color: #1A237E !important; }
.hero-subtitle   { color: #4A5068 !important; }
.stat-num        { color: #1A237E !important; }
.stat-label      { color: #4A5068 !important; }
.section-title   { color: #1A237E !important; }
.section-sub     { color: #4A5068 !important; }
.gallery-caption h4 { color: #FFFFFF !important; }
.gallery-caption p  { color: rgba(255,255,255,.80) !important; }
.about-text p    { color: #4A5068 !important; }
.value-chip h5   { color: #1A237E !important; }
.value-chip p    { color: #4A5068 !important; }
.contact-info h3  { color: #1A237E !important; }
.contact-info p   { color: #4A5068 !important; }
.contact-item h5  { color: #3949AB !important; }
.contact-item a, .contact-item p { color: #1A1A2E !important; }
.form-box h3     { color: #1A237E !important; }
.fg label        { color: #4A5068 !important; }
.fg input, .fg select, .fg textarea { color: #1A1A2E !important; background: #F5F5F7 !important; }
#cta-banner h2   { color: #FFFFFF !important; }
#cta-banner p    { color: rgba(255,255,255,.82) !important; }
.footer-col h4   { color: #FFFFFF !important; }
.footer-col a    { color: rgba(255,255,255,.65) !important; }
.footer-brand p  { color: rgba(255,255,255,.65) !important; }
.footer-bar p    { color: rgba(255,255,255,.55) !important; }
.footer-legal-links a { color: rgba(255,255,255,.50) !important; }
.footer-contact-row span, .footer-contact-row a { color: rgba(255,255,255,.65) !important; }
#cookie-banner h4 { color: #1A237E !important; }
#cookie-banner p  { color: #4A5068 !important; }
.tag-label       { color: #3949AB !important; background: #E8EAF6 !important; }
.hero-kicker     { color: #3949AB !important; background: #E8EAF6 !important; border-color: #C5CAE9 !important; }
#por-que .tag-label { color: #C5CAE9 !important; background: rgba(255,255,255,.12) !important; }
#por-que .section-title { color: #FFFFFF !important; }
#por-que .section-sub   { color: rgba(255,255,255,.72) !important; }
.why-badge strong { color: #1A237E !important; }
.why-badge span   { color: #3949AB !important; }
.about-values .value-chip { background: #E8EAF6 !important; }
.hero-img-badge  { background: #1A237E !important; color: #FFFFFF !important; }
.hero-img-badge strong { color: #FFFFFF !important; }
.hero-img-badge span   { color: rgba(255,255,255,.85) !important; }
