/* ============================================================
   GLOBAL.CSS — Variables, reset y utilidades compartidas
   YEYSON INOX PERU S.A.C.
   ============================================================ */

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

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --navy:        #1A2F5E;
  --navy-dark:   #0F1E35;
  --navy-light:  #2A4080;
  --orange:      #D4691E;
  --orange-dark: #B85818;
  --silver:      #8B9BAB;
  --silver-lt:   #C8D0D8;

  /* Third-party brand colors (centralized) */
  --whatsapp:       #25D366;
  --whatsapp-dark:  #1ebe5a;
  --facebook:       #1877F2;
  --facebook-dark:  #145db2;

  /* UI colors */
  --white:    #FFFFFF;
  --bg:       #F4F6F9;
  --bg-mid:   #E8EAED;
  --text:     #1A2030;
  --text-mid: #4A5568;
  --text-lt:  #718096;
  --success:  #27AE60;
  --warning:  #F39C12;
  --error:    #E74C3C;
  --info:     #3498DB;
  --border:   #D1D9E0;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);

  /* Border radius */
  --r:   8px;
  --rl:  12px;
  --rll: 16px;

  /* Transition */
  --t: .25s ease;

  /* Scroll reveal utility */
  --reveal-delay: 0s;
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease var(--reveal-delay, 0s),
              transform .6s ease var(--reveal-delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { --reveal-delay: .1s; }
.reveal-d2 { --reveal-delay: .2s; }
.reveal-d3 { --reveal-delay: .3s; }
.reveal-d4 { --reveal-delay: .4s; }
.reveal-d5 { --reveal-delay: .5s; }

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font-family: 'Inter', sans-serif; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION EYEBROW ─────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--orange);
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }

/* ── STATUS BADGES ───────────────────────────────────────────── */
.badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .3px;
  display: inline-flex; align-items: center;
}
.b-nuevo     { background: #27AE60; color: #fff; }
.b-oferta    { background: var(--orange); color: #fff; }
.b-top       { background: #8E44AD; color: #fff; }
.b-active    { background: rgba(39,174,96,.12); color: #27AE60; }
.b-inactive  { background: rgba(231,76,60,.1);  color: #E74C3C; }

/* ── SCROLL TO TOP ───────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: var(--shadow-md);
  transition: all var(--t); z-index: 999;
  opacity: 0; transform: translateY(10px); pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover   { background: var(--orange); transform: translateY(-3px); }

/* ── TOAST ───────────────────────────────────────────────────── */
.toast-area {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r); padding: 12px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14); font-size: 13px; font-weight: 500;
  color: var(--text); min-width: 260px; max-width: 360px;
  border-left: 4px solid var(--success);
  animation: tIn .3s ease;
}
.toast.warn { border-left-color: var(--warning); }
.toast.err  { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }
.toast i    { font-size: 16px; flex-shrink: 0; }
.toast.out  { animation: tOut .3s ease forwards; }
@keyframes tIn  { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
@keyframes tOut { to   { opacity:0; transform: translateX(20px); } }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes pulse    { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity:.5; transform: scale(.85); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-orange  { color: var(--orange); }
.text-navy    { color: var(--navy); }
.text-light   { color: var(--text-lt); }
.fw-800       { font-weight: 800; }
.text-center  { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    linear-gradient(140deg, rgba(6,12,28,.92), rgba(26,47,94,.88)),
    url('https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.maintenance-card {
  width: min(100%, 460px);
  background: rgba(255,255,255,.96);
  border-radius: var(--rl);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  text-align: center;
}
.maintenance-card img {
  height: 54px;
  width: auto;
  margin: 0 auto 22px;
}
.maintenance-card h1 {
  font-size: 26px;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.maintenance-card p {
  color: var(--text-lt);
  margin-bottom: 24px;
}
.maintenance-card .btn-wa {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ── PAGE INNER HERO (shared by all inner pages) ─────────────── */
.page-hero {
  background:
    linear-gradient(140deg, rgba(6,12,28,.90) 0%, rgba(20,38,78,.84) 50%, rgba(10,22,50,.92) 100%),
    var(--page-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  padding: 96px 0 80px; position: relative; overflow: hidden;
  min-height: 380px; display: flex; align-items: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.018) 60px, rgba(255,255,255,.018) 61px),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.008) 60px, rgba(255,255,255,.008) 61px);
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px; background: var(--bg);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,105,30,.18); border: 1px solid rgba(212,105,30,.4);
  color: var(--orange); font-size: 11px; font-weight: 700;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .8px;
  backdrop-filter: blur(8px);
}
.page-hero h1 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 58px; font-weight: 900; color: var(--white);
  line-height: 1.0; margin-bottom: 14px; letter-spacing: -0.5px;
}
.page-hero h1 span { color: var(--orange); }
.page-hero p { font-size: 17px; color: rgba(200,208,216,.9); max-width: 580px; line-height: 1.75; }
.breadcrumb-trail {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; margin-top: 24px;
}
.breadcrumb-trail a { color: var(--silver); transition: color var(--t); }
.breadcrumb-trail a:hover { color: var(--orange); }
.breadcrumb-trail .sep { color: var(--silver); opacity: .4; }
.breadcrumb-trail .cur { color: var(--orange); font-weight: 600; }

/* ── SECTION SHARED ──────────────────────────────────────────── */
.section-block { padding: 72px 0; }
.section-block-sm { padding: 48px 0; }
.sec-heading {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 42px; font-weight: 900; color: var(--navy-dark);
  margin-bottom: 8px; letter-spacing: -0.3px; line-height: 1.05;
}
.sec-heading span { color: var(--orange); }
.sec-sub { font-size: 15px; color: var(--text-lt); margin-bottom: 48px; }

/* ── RESPONSIVE GRID UTILITY ─────────────────────────────────── */
@media (max-width: 768px) { .container { padding: 0 16px; } }
