/* ============================================================
   REVESTIMIENTOS ARQUITECTÓNICOS — Hoja de estilos principal
   ============================================================ */

:root {
  --brand-blue: #00449d;
  --brand-blue-rgb: 0, 68, 157;
  --brand-blue-hover: #0b58c7;
  --brand-lime: #c2d816;
  --brand-lime-rgb: 194, 216, 22;
  --brand-lime-soft: #d6e86f;

  --cream: #f4f7ff;
  --charcoal: #061225;
  --cement: #8aa0c2;
  --sand: var(--brand-lime-soft);
  --rust: var(--brand-blue);
  --white: #ffffff;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
}

/* ---- Reset & base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
  cursor: none;
}

/* ---- Cursor personalizado ---- */
.cursor {
  width: 10px; height: 10px;
  background: var(--rust);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform 0.15s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: transform 0.35s ease, width 0.3s, height 0.3s;
}

/* ---- Grain overlay ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none; z-index: 100;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 56px;
  background: rgba(6,18,37,0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--brand-lime-rgb), 0.10);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.logo-img {
  height: 76px; width: auto; object-fit: contain;
  background: transparent; padding: 0; border-radius: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 13px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--sand); line-height: 1.3;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  opacity: 0.7; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; color: var(--sand); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 56px 80px; position: relative; z-index: 2;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--rust); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeUp 1s 0.3s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--rust); }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(52px, 6.5vw, 88px); font-weight: 700;
  line-height: 0.92; letter-spacing: -1px; color: var(--white);
  margin-bottom: 32px; opacity: 0; animation: fadeUp 1s 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--sand); }

.hero-desc {
  font-size: 14px; letter-spacing: 0.6px; line-height: 1.9;
  color: var(--cement); max-width: 380px; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 1s 0.7s forwards;
}
.hero-cta {
  display: flex; gap: 20px; align-items: center;
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
}

.btn-primary {
  background: var(--rust); color: var(--white);
  padding: 16px 40px; font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  border: none; cursor: none; text-decoration: none;
  display: inline-block; transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--brand-blue-hover); transform: translateY(-2px); }

.btn-secondary {
  color: var(--sand); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 10px; transition: gap 0.3s;
}
.btn-secondary::after { content: '→'; font-size: 16px; }
.btn-secondary:hover { gap: 16px; }

.hero-right { position: relative; overflow: hidden; }
.hero-texture {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('imagenes/trabajador.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: saturate(0.9) contrast(1.05);
}
.hero-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.22) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 30%, var(--charcoal) 100%);
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(var(--brand-lime-rgb), 0.10) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(var(--brand-lime-rgb), 0.05) 0px, rgba(var(--brand-lime-rgb), 0.05) 1px, transparent 1px, transparent 40px),
    linear-gradient(160deg, #0b2341 0%, var(--charcoal) 52%, #030a14 100%);
  display: flex; align-items: center; justify-content: center;
}

.shape-container { position: absolute; inset: 0; overflow: hidden; }
.shape { position: absolute; border: 1px solid rgba(var(--brand-lime-rgb), 0.14); }
.shape-1 { width: 340px; height: 420px; top: 10%; left: 15%; animation: floatA 8s ease-in-out infinite; }
.shape-2 { width: 200px; height: 200px; bottom: 20%; right: 10%; border-color: rgba(var(--brand-blue-rgb), 0.26); animation: floatB 6s ease-in-out infinite; }
.shape-3 { width: 100px; height: 100px; top: 30%; right: 30%; border-color: rgba(var(--brand-lime-rgb), 0.14); animation: floatC 10s ease-in-out infinite; }

.hero-number {
  position: absolute; bottom: -20px; right: 40px;
  font-family: var(--font-sans); font-size: 220px;
  font-weight: 700; color: rgba(255,255,255,0.02); line-height: 1; user-select: none;
}
.hero-vertical {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--cement); opacity: 0.5; white-space: nowrap;
}
.hero-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(var(--brand-lime-rgb), 0.22) 30%, rgba(var(--brand-lime-rgb), 0.22) 70%, transparent);
  z-index: 3;
}
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 10; opacity: 0; animation: fadeUp 1s 1.4s forwards;
}
.scroll-indicator span { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--cement); }
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--rust), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--cream); color: var(--charcoal);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 48px 40px; border-right: 1px solid rgba(var(--brand-blue-rgb), 0.12);
  opacity: 0; animation: fadeUp 0.8s forwards;
}
.stat-item:nth-child(1) { animation-delay: 1.1s; }
.stat-item:nth-child(2) { animation-delay: 1.25s; }
.stat-item:nth-child(3) { animation-delay: 1.4s; }
.stat-item:nth-child(4) { animation-delay: 1.55s; border-right: none; }
.stat-number {
  font-family: var(--font-sans); font-size: 52px;
  font-weight: 700; color: var(--charcoal); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cement); }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.section-products { padding: 120px 56px; background: var(--charcoal); }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px;
}
.section-label { font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--rust); margin-bottom: 16px; }
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; line-height: 1.05; color: var(--white);
}
.view-all {
  color: var(--sand); text-decoration: none; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; transition: gap 0.3s;
}
.view-all::after { content: '→'; }
.view-all:hover { gap: 16px; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.product-card { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: none; }
.product-card:nth-child(1) { grid-column: span 2; }
.product-card:nth-child(5) { grid-column: span 2; }

.product-bg { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-card:hover .product-bg { transform: scale(1.04); }

/* Fallback gradients por posición */
.product-card:nth-child(1) .product-bg { background: linear-gradient(145deg, #0b2b4f, #061225); }
.product-card:nth-child(2) .product-bg { background: linear-gradient(145deg, #11345a, #07182e); }
.product-card:nth-child(3) .product-bg { background: linear-gradient(145deg, #0a2544, #050f1e); }
.product-card:nth-child(4) .product-bg { background: linear-gradient(145deg, #133962, #061225); }
.product-card:nth-child(5) .product-bg { background: linear-gradient(145deg, #0b2747, #030a14); }
.product-card:nth-child(6) .product-bg { background: linear-gradient(145deg, #0f3156, #07182e); }
.product-card:nth-child(7) .product-bg { background: linear-gradient(145deg, #08203b, #030a14); }
.product-card:nth-child(8) .product-bg { background: linear-gradient(145deg, #0d2d50, #061225); }

.product-texture-overlay {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(30deg, rgba(var(--brand-lime-rgb), 0.035) 0px, rgba(var(--brand-lime-rgb), 0.035) 1px, transparent 1px, transparent 30px);
}
.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,18,37,0.92) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.product-tag  { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.product-name { font-family: var(--font-sans); font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 8px; }
.product-price { font-size: 13px; letter-spacing: 2px; color: var(--sand); }

.product-hover-info { position: absolute; top: 20px; right: 20px; opacity: 0; transform: translateY(-8px); transition: all 0.3s; }
.product-card:hover .product-hover-info { opacity: 1; transform: translateY(0); }
.product-hover-btn {
  background: var(--rust); color: var(--white); border: none;
  padding: 10px 18px; font-family: var(--font-sans);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; cursor: none;
}

.oferta-badge {
  position: absolute; top: 16px; left: 16px; background: var(--rust); color: var(--white);
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; padding: 5px 12px; z-index: 2;
}

/* Skeleton loader */
.product-card.skeleton .product-bg {
  background: linear-gradient(90deg, #061225 25%, #0b2341 50%, #061225 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}

/* Error state */
.api-error { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--cement); font-size: 14px; letter-spacing: 2px; }
.api-error span { display: block; font-size: 32px; margin-bottom: 16px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.section-about { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.about-left {
  background: var(--cream); padding: 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-right {
  background:
    repeating-linear-gradient(-45deg, rgba(var(--brand-blue-rgb), 0.07) 0px, rgba(var(--brand-blue-rgb), 0.07) 1px, transparent 1px, transparent 28px),
    linear-gradient(160deg, #0b2341, var(--charcoal));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('imagenes/trabajador.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}
.about-big-text {
  font-family: var(--font-sans); font-size: 160px;
  font-weight: 700; color: rgba(255,255,255,0.03); line-height: 1;
  position: absolute; user-select: none;
}
.about-right .about-big-text { z-index: 1; }
.services-list { position: relative; z-index: 2; list-style: none; padding: 60px; }
.services-list li {
  padding: 22px 0; border-bottom: 1px solid rgba(var(--brand-lime-rgb), 0.18);
  display: flex; align-items: center; gap: 20px;
  font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cream); transition: color 0.3s;
}
.services-list li:hover { color: var(--sand); }
.services-list li::before { content: ''; width: 6px; height: 6px; background: var(--rust); flex-shrink: 0; }

.about-label  { font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--rust); margin-bottom: 16px; }
.about-title  { font-family: var(--font-sans); font-size: 44px; font-weight: 700; color: var(--charcoal); line-height: 1.1; margin-bottom: 24px; }
.about-desc   { font-size: 14px; letter-spacing: 0.4px; line-height: 2; color: var(--cement); max-width: 420px; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.section-nosotros {
  background: var(--cream);
  padding: 120px 56px;
  position: relative;
  overflow: hidden;
}
.nosotros-bg-text {
  position: absolute; top: -40px; right: -20px;
  font-family: var(--font-sans);
  font-size: 220px; font-weight: 300;
  color: rgba(var(--brand-blue-rgb), 0.06);
  line-height: 1; user-select: none; pointer-events: none;
}
.nosotros-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.nosotros-header {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(var(--brand-blue-rgb), 0.12);
}
.nosotros-label {
  font-size: 10px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--rust); margin-bottom: 14px;
}
.nosotros-title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700; line-height: 1.02; color: var(--charcoal);
}
.nosotros-title em { font-style: italic; color: var(--rust); }
.nosotros-year {
  font-family: var(--font-sans);
  font-size: 80px; font-weight: 300;
  color: rgba(var(--brand-blue-rgb), 0.12); line-height: 1; user-select: none;
}

/* Tarjetas Misión / Visión */
.mision-card {
  background: var(--charcoal);
  padding: 48px; position: relative; overflow: hidden;
}
.mision-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--rust);
}
.mision-card-label {
  font-size: 9px; letter-spacing: 5px; text-transform: uppercase; color: var(--rust);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.mision-card-label::after { content: ''; flex: 1; height: 1px; background: rgba(var(--brand-blue-rgb), 0.35); }
.mision-card-title {
  font-family: var(--font-sans);
  font-size: 28px; font-weight: 700; color: var(--white); line-height: 1.12; margin-bottom: 20px;
}
.mision-card-text { font-size: 14px; letter-spacing: 0.5px; line-height: 2; color: var(--cement); }
.mision-card-num {
  position: absolute; bottom: 16px; right: 24px;
  font-family: var(--font-sans);
  font-size: 80px; font-weight: 300; color: rgba(255,255,255,0.04); line-height: 1; user-select: none;
}

/* Tarjeta Visión (variante clara) */
.mision-card.vision {
  background: var(--cream);
}
.mision-card.vision::before { background: rgba(var(--brand-blue-rgb), 0.35); }
.mision-card.vision .mision-card-title { color: var(--charcoal); }
.mision-card.vision .mision-card-text  { color: var(--cement); }
.mision-card.vision .mision-card-num   { color: rgba(var(--brand-blue-rgb), 0.07); }

/* Valores */
.valores-block { display: flex; flex-direction: column; }
.valor-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(var(--brand-blue-rgb), 0.14);
  display: grid; grid-template-columns: 40px 1fr;
  gap: 20px; align-items: start; cursor: default;
}
.valor-item:first-child { border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
.valor-item:hover .valor-num { color: var(--rust); }
.valor-num {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 300;
  color: rgba(var(--brand-blue-rgb), 0.22); transition: color 0.3s; padding-top: 2px;
}
.valor-name {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--charcoal); font-weight: 700; margin-bottom: 6px;
}
.valor-desc { font-size: 13px; letter-spacing: 0.5px; line-height: 1.8; color: var(--cement); }

/* Franja decorativa */
.nosotros-franja {
  background: var(--charcoal);
  padding: 40px 56px;
  display: flex; align-items: center; gap: 60px; overflow: hidden;
}
.franja-line { flex: 1; height: 1px; background: rgba(var(--brand-lime-rgb), 0.18); }
.franja-text {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600; font-style: italic;
  color: var(--sand); white-space: nowrap; letter-spacing: 1px;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.section-contacto {
  background: var(--charcoal);
  padding: 120px 56px;
  position: relative; overflow: hidden;
}
.contacto-bg-shape {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: repeating-linear-gradient(60deg, rgba(var(--brand-blue-rgb), 0.05) 0px, rgba(var(--brand-blue-rgb), 0.05) 1px, transparent 1px, transparent 32px);
  pointer-events: none;
}
.contacto-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contacto-label {
  font-size: 10px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--rust); margin-bottom: 16px;
}
.contacto-title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700; line-height: 1.02; color: var(--white); margin-bottom: 40px;
}
.contacto-title em { font-style: italic; color: var(--sand); }

/* Info de contacto */
.contacto-info-list { list-style: none; display: flex; flex-direction: column; }
.contacto-info-item {
  padding: 24px 0; border-bottom: 1px solid rgba(var(--brand-lime-rgb), 0.14);
  display: flex; align-items: flex-start; gap: 24px;
}
.contacto-info-item:first-child { border-top: 1px solid rgba(var(--brand-lime-rgb), 0.14); }
.ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--rust); font-size: 16px;
}
.ci-label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--cement); margin-bottom: 6px; }
.ci-value { font-size: 15px; letter-spacing: 1px; color: var(--cream); line-height: 1.5; }
.ci-value a { color: var(--cream); text-decoration: none; transition: color 0.3s; }
.ci-value a:hover { color: var(--sand); }

/* Horario */
.horario-box {
  margin-top: 40px; padding: 24px;
  border: 1px solid rgba(var(--brand-lime-rgb), 0.14);
  background: rgba(255,255,255,0.02);
}
.horario-label {
  font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--rust); margin-bottom: 16px;
}
.horario-grid { display: grid; gap: 8px; }
.horario-row {
  display: flex; justify-content: space-between;
  font-size: 13px; letter-spacing: 1px; color: var(--cream);
}
.horario-row.cerrado { color: var(--cement); }
.horario-row span:last-child { color: var(--sand); }
.horario-row.cerrado span:last-child { color: var(--cement); }

/* Formulario */
.form-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid rgba(var(--brand-lime-rgb), 0.14); }
.form-header-label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.form-header-title { font-family: var(--font-sans); font-size: 22px; font-weight: 700; color: var(--white); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--cement); }

.form-input,
.form-textarea,
.form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(var(--brand-lime-rgb), 0.18);
  color: var(--cream); padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14px; letter-spacing: 1px; outline: none;
  transition: border-color 0.3s, background 0.3s; width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(138,160,194,0.55); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(var(--brand-blue-rgb), 0.65);
  background: rgba(var(--brand-blue-rgb), 0.08);
}
.form-textarea { resize: none; min-height: 120px; }
.form-select { appearance: none; -webkit-appearance: none; cursor: none; }
.form-select option { background: var(--charcoal); color: var(--cream); }

.form-submit {
  grid-column: 1 / -1; margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.submit-btn {
  background: var(--rust); color: var(--white);
  border: none; cursor: none; padding: 18px 48px;
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.submit-btn:hover { background: var(--brand-blue-hover); transform: translateY(-2px); }
.submit-btn svg { width: 16px; height: 16px; }
.form-note { font-size: 11px; letter-spacing: 1px; color: var(--cement); opacity: 0.6; max-width: 200px; line-height: 1.6; }

/* Estado de éxito */
.form-success {
  display: none; padding: 40px;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.32);
  background: rgba(var(--brand-blue-rgb), 0.08); text-align: center;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.form-success-title {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 700; color: var(--sand); margin-bottom: 10px;
}
.form-success-text { font-size: 13px; letter-spacing: 1px; color: var(--cement); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #030a14; padding: 60px 56px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(var(--brand-lime-rgb), 0.10);
}
.footer-logo { font-family: var(--font-sans); font-size: 22px; font-weight: 700; color: var(--sand); letter-spacing: 1px; }
.footer-copy { font-size: 11px; letter-spacing: 3px; color: var(--cement); opacity: 0.5; text-transform: uppercase; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { color: var(--cement); text-decoration: none; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(0deg); }   50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0deg); }   50% { transform: translateY(12px) rotate(-1.5deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0); }                50% { transform: translateY(-8px); } }
@keyframes scrollPulse { 0%, 100% { opacity: 1; transform: scaleY(1); }   50% { opacity: 0.3; transform: scaleY(0.5); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .logo-img { height: 64px; }

  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 120px 20px 64px; }
  .hero-title { font-size: clamp(40px, 10vw, 56px); line-height: 1; letter-spacing: -0.8px; }
  .hero-desc { max-width: 100%; letter-spacing: 0.4px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .btn-primary { width: 100%; text-align: center; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 32px 20px; }
  .stat-number { font-size: 44px; }

  .section-products { padding: 80px 32px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .view-all { margin-top: 6px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card:nth-child(1),
  .product-card:nth-child(5) { grid-column: span 1; }

  .section-about { grid-template-columns: 1fr; }
  .about-left { padding: 64px 32px; }
  .about-right { min-height: 420px; }
  .services-list { padding: 40px 32px; }
  .services-list li { font-size: 14px; letter-spacing: 1.6px; }
  .about-title { font-size: 36px; }

  .section-nosotros { padding: 80px 32px; }
  .nosotros-inner { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nosotros-year { display: none; }
  .mision-card { padding: 32px; }
  .nosotros-franja { padding: 32px; gap: 24px; }
  .franja-text { white-space: normal; text-align: center; }

  .section-contacto { padding: 80px 32px; }
  .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit { flex-direction: column; align-items: flex-start; gap: 16px; }
  .submit-btn { width: 100%; justify-content: center; }
  .form-note { max-width: none; }

  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
}

@media (max-width: 520px) {
  nav { padding: 14px 16px; }
  .logo-img { height: 56px; }

  .hero-left { padding: 112px 16px 56px; }
  .hero-title { font-size: clamp(36px, 11vw, 48px); }
  .hero-eyebrow { letter-spacing: 4px; }

  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(var(--brand-blue-rgb), 0.12); }
  .stat-item:nth-child(4) { border-bottom: none; }

  .section-products { padding: 64px 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card { aspect-ratio: 16/10; }
  .product-card:nth-child(1),
  .product-card:nth-child(5) { grid-column: span 1; }

  .about-left { padding: 56px 16px; }
  .services-list { padding: 32px 16px; }
  .about-big-text { font-size: 120px; }

  .section-nosotros { padding: 64px 16px; }
  .nosotros-franja { padding: 28px 16px; }

  .section-contacto { padding: 64px 16px; }
  footer { padding: 48px 16px; }
}

@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  a, button, .product-card, .btn-primary, .submit-btn { cursor: pointer; }
}

/* ============================================================
   MEJORAS ESTÉTICAS
   ============================================================ */

/* Tipografía serif para los títulos de mayor impacto */
.hero-title,
.nosotros-title,
.contacto-title,
.about-title,
.section-title,
.mision-card-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}
.hero-title      { letter-spacing: -2px; }
.nosotros-title  { letter-spacing: -1px; }
.contacto-title  { letter-spacing: -1px; }
.about-title     { letter-spacing: -0.5px; }
.section-title   { letter-spacing: -0.5px; }

/* Nav — transición suave + efecto scroll */
nav {
  transition: padding 0.40s ease, background 0.40s ease,
              border-color 0.40s ease, box-shadow 0.40s ease;
}
nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(6,18,37,0.97);
  border-bottom-color: rgba(var(--brand-lime-rgb), 0.28);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}

/* Nav links — underline animado */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.30s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Scroll reveal — aplicado por JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible          { opacity: 1; transform: translateY(0); }
.reveal-d1               { transition-delay: 0.10s; }
.reveal-d2               { transition-delay: 0.20s; }
.reveal-d3               { transition-delay: 0.30s; }

/* Stat items — hover sutil */
.stat-item { transition: background 0.30s ease; }
.stat-item:hover { background: rgba(var(--brand-blue-rgb), 0.06); }
.stat-item:hover .stat-number { color: var(--brand-blue); transition: color 0.30s; }

/* Product cards — borde glow al hover */
.product-card::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px rgba(var(--brand-lime-rgb), 0.40);
  opacity: 0;
  transition: opacity 0.40s;
  pointer-events: none;
  z-index: 5;
}
.product-card:hover::after { opacity: 1; }

/* Oferta badge — color lima más llamativo */
.oferta-badge {
  background: var(--brand-lime);
  color: var(--charcoal);
  font-weight: 700;
}

/* Botones — efecto shimmer al hover */
.btn-primary,
.submit-btn,
.product-hover-btn { position: relative; overflow: hidden; }

.btn-primary::before,
.submit-btn::before,
.product-hover-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transform: skewX(-15deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::before,
.submit-btn:hover::before,
.product-hover-btn:hover::before { left: 160%; }

/* Service list — slide indent al hover */
.services-list li { transition: color 0.30s ease, padding-left 0.30s ease; }
.services-list li:hover { padding-left: 10px; }

/* Misión/Visión cards — elevación al hover */
.mision-card {
  transition: transform 0.40s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.40s ease;
}
.mision-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.38);
}

/* Valor items — fondo sutil al hover */
.valor-item { transition: background 0.30s ease, padding-left 0.30s ease; }
.valor-item:hover { background: rgba(var(--brand-blue-rgb), 0.05); padding-left: 8px; }

/* Contacto info — icon glow al hover */
.ci-icon { transition: background 0.30s ease, border-color 0.30s ease; }
.contacto-info-item:hover .ci-icon {
  background: rgba(var(--brand-blue-rgb), 0.18);
  border-color: rgba(var(--brand-blue-rgb), 0.75);
}

/* View-all / btn-secondary — color lima al hover */
.view-all:hover,
.btn-secondary:hover { color: var(--brand-lime); }

/* Section labels — línea decorativa previa (estilo eyebrow del hero) */
.section-label,
.nosotros-label,
.about-label,
.contacto-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before,
.nosotros-label::before,
.about-label::before,
.contacto-label::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* Franja — texto pulsante suave */
.franja-text {
  animation: franjaBreath 5s ease-in-out infinite;
}
@keyframes franjaBreath {
  0%, 100% { opacity: 0.80; letter-spacing: 0.8px; }
  50%       { opacity: 1;    letter-spacing: 2.5px; }
}

/* Footer — borde superior con gradiente */
footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(var(--brand-lime-rgb), 0.28), transparent) 1;
}
