/* ==========================================================================
   CONTAINER INNOVARÉ — Estilos complementarios a Tailwind
   ========================================================================== */

:root {
  --ink-900: #0F0F0F;
  --ink-800: #171717;
  --steel-100: #F4F4F5;
  --steel-800: #27272A;
  --gold: #D4AF37;
  --gold-soft: #C5A059;
  --header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { background: var(--ink-900); color: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--gold); color: var(--ink-900); }

/* Foco visible accesible */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Barra de desplazamiento */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--steel-800); border-radius: 10px; border: 2px solid var(--ink-900); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* Texto dorado con degradado */
.text-gold-gradient {
  background: linear-gradient(100deg, #E9CF74 0%, var(--gold) 40%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Botón principal dorado */
.btn-gold {
  background: linear-gradient(135deg, #E2C35A 0%, var(--gold) 45%, var(--gold-soft) 100%);
  color: var(--ink-900);
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 36px -12px rgba(212, 175, 55, .7); }
.btn-gold:active { transform: translateY(0); }

.btn-outline { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn-outline:hover { transform: translateY(-2px); }

/* Fondo industrial: rejilla técnica */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Textura de chapa corrugada tipo container */
.bg-corrugated {
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}

/* Línea decorativa dorada */
.gold-rule { width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; }

/* Tarjetas */
.card-hover { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.card-hover:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.55); box-shadow: 0 24px 48px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(212,175,55,.15); }

/* Header al hacer scroll */
.header-scrolled { background: rgba(15,15,15,.92); box-shadow: 0 8px 30px -12px rgba(0,0,0,.8); border-bottom-color: rgba(212,175,55,.18) !important; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header-scrolled { background: rgba(15,15,15,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--gold); }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Botón flotante de WhatsApp */
.wa-float { animation: wa-bounce 3.2s ease-in-out infinite; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 9999px;
  background: #25D366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wa-bounce { 0%, 88%, 100% { transform: translateY(0); } 92% { transform: translateY(-6px); } 96% { transform: translateY(0); } }

/* Galería */
.gallery-item[hidden] { display: none !important; }
.gallery-item .gallery-img { transition: transform .6s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
.filter-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink-900); border-color: var(--gold); }

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Formulario */
.field {
  width: 100%; background: var(--ink-900); border: 1px solid var(--steel-800); color: #fff;
  border-radius: .75rem; padding: .8rem 1rem; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #71717A; }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.field[aria-invalid="true"] { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
select.field { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.75rem; }
select.field option { background: var(--ink-800); color: #fff; }

/* Honeypot anti-spam (oculto para personas, visible para bots) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Accesibilidad: respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
