:root {
  --azul-oscuro: #0F1F4B;
  --azul-medio: #1B2A4A;
  --dorado: #C9A84C;
  --dorado-claro: #E2C06E;
  /* Dorado oscurecido para texto sobre fondos claros (contraste AA). */
  --dorado-texto: #8A6D1F;
  --verde: #047857;
  --verde-whatsapp: #15803D;
  --blanco: #FFFFFF;
  --gris-claro: #F5F6FA;
  --gris-texto: #4A5270;
  --gradiente: linear-gradient(135deg, #1B2A4A 0%, #2A4080 100%);
  --gradiente-oscuro: linear-gradient(135deg, #0F1F4B 0%, #1B2A4A 60%, #2A4080 140%);
  --gradiente-dorado: linear-gradient(135deg, #C9A84C 0%, #E2C06E 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--azul-oscuro);
  line-height: 1.6;
  background: var(--blanco);
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--blanco);
  color: var(--azul-oscuro);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(15, 31, 75, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding 0.3s ease;
}

/* 12 px: el área de respeto del logo (½ A, unos 12 px con el logo de 28 px de alto). */
nav.scrolled {
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blanco);
}

/* Logo horizontal del kit (brand/aramat), por alto. Mínimo del kit sin lema: 117 px de ancho.
   Área de respeto: ½ A por lado (A ≈ 0,86 del alto del archivo). */
.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.footer-brand .logo-img {
  height: 40px;
}

.error-page .logo-img {
  height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blanco);
}

.nav-cta {
  padding: 10px 22px;
  background: var(--gradiente);
  color: var(--blanco) !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--azul-oscuro);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(26, 77, 181, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--dorado);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--dorado);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--blanco);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero h1 .gradient-text {
  background: var(--gradiente-dorado);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradiente);
  color: var(--blanco);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35);
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.5);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 80px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradiente-dorado);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dorado-texto);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--azul-oscuro);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gris-texto);
  line-height: 1.6;
}

/* ===== NOSOTROS ===== */
.nosotros {
  background: var(--gris-claro);
  position: relative;
}

.nosotros-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.nosotros-text {
  font-size: 18px;
  color: var(--gris-texto);
  line-height: 1.8;
  margin-bottom: 24px;
}

.nosotros-text strong {
  color: var(--azul-oscuro);
  font-weight: 600;
}

.nosotros-highlight {
  margin-top: 40px;
  padding: 32px;
  background: var(--blanco);
  border-radius: 20px;
  border-left: 4px solid transparent;
  border-image: var(--gradiente) 1;
  box-shadow: 0 4px 30px rgba(15, 31, 75, 0.06);
  position: relative;
}

.nosotros-highlight::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 24px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--dorado);
  line-height: 1;
  opacity: 0.3;
}

.nosotros-highlight p {
  font-size: 20px;
  font-style: italic;
  color: var(--azul-oscuro);
  font-weight: 500;
}

/* ===== MISIÓN VISIÓN OBJETIVO ===== */
.mvo {
  background: var(--blanco);
}

.mvo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.mvo-card {
  padding: 40px 32px;
  background: var(--blanco);
  border: 1px solid rgba(15, 31, 75, 0.08);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mvo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradiente);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.mvo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 31, 75, 0.08);
  border-color: transparent;
}

.mvo-card:hover::before {
  transform: scaleX(1);
}

.mvo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(26, 77, 181, 0.1) 0%, rgba(201, 168, 76, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.mvo-card:hover .mvo-icon {
  transform: scale(1.1) rotate(-5deg);
}

.mvo-icon svg {
  width: 28px;
  height: 28px;
}

.mvo-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 12px;
}

.mvo-card p {
  color: var(--gris-texto);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== SERVICIOS ===== */
.servicios {
  background: var(--gris-claro);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.servicio-card {
  padding: 48px 40px;
  background: var(--blanco);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(15, 31, 75, 0.05);
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 31, 75, 0.12);
}

.servicio-card.featured {
  background: var(--gradiente-oscuro);
  color: var(--blanco);
}

.servicio-card.featured::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.servicio-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--gradiente);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
  position: relative;
  z-index: 2;
}

.servicio-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--blanco);
}

.servicio-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.servicio-card.featured h3 {
  color: var(--blanco);
}

.servicio-card > p {
  color: var(--gris-texto);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.servicio-card.featured > p {
  color: rgba(255, 255, 255, 0.85);
}

.servicio-features {
  list-style: none;
  position: relative;
  z-index: 2;
}

.servicio-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--gris-texto);
}

.servicio-card.featured .servicio-features li {
  color: rgba(255, 255, 255, 0.9);
}

.servicio-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url('assets/icons/check.svg'), var(--gradiente);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px, cover;
}

/* ===== PRODUCTOS ===== */
.productos {
  background: var(--blanco);
  position: relative;
  overflow: hidden;
}

.productos::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.producto-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--blanco);
  border-radius: 24px;
  border: 1px solid rgba(15, 31, 75, 0.08);
  box-shadow: 0 20px 60px rgba(15, 31, 75, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 31, 75, 0.12);
}

.producto-card--proximamente {
  background: var(--gris-claro);
  border: 2px dashed rgba(15, 31, 75, 0.15);
  box-shadow: none;
}

.producto-card--proximamente:hover {
  transform: none;
  box-shadow: none;
}

.producto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.producto-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradiente-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 31, 75, 0.2);
}

.producto-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--dorado-claro);
}

.producto-card--proximamente .producto-icon {
  background: rgba(15, 31, 75, 0.08);
  box-shadow: none;
}

.producto-card--proximamente .producto-icon svg {
  stroke: var(--azul-medio);
}

.producto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.producto-badge--disponible {
  background: var(--verde);
  color: var(--blanco);
}

.producto-badge--disponible::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blanco);
  border-radius: 50%;
}

.producto-badge--proximamente {
  background: rgba(201, 168, 76, 0.15);
  color: var(--dorado-texto);
  border: 1px solid rgba(201, 168, 76, 0.5);
}

.producto-card h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--azul-oscuro);
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.producto-subtitle {
  font-size: 14px;
  color: var(--dorado-texto);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.producto-card > p {
  color: var(--gris-texto);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.producto-features {
  list-style: none;
  margin-bottom: 32px;
}

.producto-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--gris-texto);
}

.producto-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--dorado-texto);
  flex-shrink: 0;
}

.producto-card .btn-outline {
  margin-top: auto;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--azul-medio);
  border: 2px solid var(--azul-medio);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

.btn-outline:hover {
  background: var(--gradiente);
  border-color: transparent;
  color: var(--blanco);
  transform: translateY(-2px);
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--gris-claro);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contacto-info h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.contacto-info p {
  color: var(--gris-texto);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contacto-items {
  list-style: none;
}

.contacto-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--gris-texto);
  font-size: 15px;
}

.contacto-items li svg {
  width: 20px;
  height: 20px;
  stroke: var(--dorado-texto);
  flex-shrink: 0;
}

.contacto-items li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contacto-items li a:hover {
  color: var(--azul-oscuro);
  text-decoration: underline;
}

.contacto-card {
  background: var(--blanco);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 31, 75, 0.08);
  text-align: center;
}

.contacto-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 8px;
}

.contacto-card > p {
  color: var(--gris-texto);
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--verde-whatsapp);
  color: var(--blanco);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.4);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.contacto-separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  color: var(--gris-texto);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contacto-separador::before,
.contacto-separador::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15, 31, 75, 0.12);
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--gris-claro);
  border: 1.5px solid rgba(15, 31, 75, 0.1);
  border-radius: 12px;
}

.email-box a {
  color: var(--azul-oscuro);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  text-align: left;
}

.email-box a:hover {
  text-decoration: underline;
}

/* El botón de copiar solo se muestra si hay JS para que funcione. */
.btn-copy {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--blanco);
  color: var(--azul-medio);
  border: 1.5px solid rgba(15, 31, 75, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.js .btn-copy {
  display: inline-flex;
}

.btn-copy:hover {
  border-color: var(--azul-medio);
}

.btn-copy svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.copy-status {
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--verde);
}

/* ===== FOOTER ===== */
footer {
  background: var(--azul-oscuro);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradiente);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-legal {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.8;
}

.footer-legal strong {
  color: var(--blanco);
  font-weight: 600;
}

.footer-col h4 {
  color: var(--blanco);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--dorado);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* ===== 404 ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gradiente-oscuro);
  color: var(--blanco);
  text-align: center;
}

.error-page .logo {
  justify-content: center;
  margin-bottom: 40px;
}

.error-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.error-page p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--azul-oscuro);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open .nav-cta {
    display: block;
    text-align: center;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 32px;
  }

  section {
    padding: 70px 0;
  }

  .nosotros-highlight {
    padding: 24px;
  }

  .nosotros-highlight p {
    font-size: 17px;
  }

  .servicio-card,
  .producto-card,
  .contacto-card {
    padding: 32px 24px;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .servicios-grid,
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .email-box {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .email-box a {
    text-align: center;
  }

  .btn-copy {
    justify-content: center;
  }
}

/* Scroll Animations: el contenido solo se oculta si hay JS para revelarlo. */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
