/* ============================================================
   LAYOUT.CSS — Header, Footer, Navigation
   INOXKAREN — Paleta clara azul/acero
   ============================================================ */

/* ── SITE HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all .35s ease;
}

/* Top bar */
.header-top {
  background: var(--gold);
  padding: 8px 0;
  transition: all .35s ease;
}
.header-top .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.hd-top-info {
  display: flex; align-items: center; gap: 24px;
}
.hd-top-info a {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,.85);
  transition: color var(--t);
}
.hd-top-info a:hover { color: #fff; }
.hd-top-info a i { color: rgba(255,255,255,.7); font-size: 11px; }
.hd-top-right {
  display: flex; align-items: center; gap: 12px;
}
.hd-social { display: flex; align-items: center; gap: 6px; }
.hd-social a {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.8);
  transition: all var(--t);
}
.hd-social a:hover { background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.4); }
.hd-schedule {
  font-size: 11px; color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 6px;
}
.hd-schedule i { color: rgba(255,255,255,.9); }
.hd-schedule .dot { width: 6px; height: 6px; border-radius: 50%; background: #25D366; animation: pulse-gold 2s infinite; }

/* Main nav */
.header-main {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .35s ease;
  box-shadow: var(--shadow-sm);
}
.header-main .container {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img { height: 44px; width: auto; }
.logo-text {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.logo-text .name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: .5px;
  background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-text .sub {
  font-size: 10px; color: var(--text-dim); letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
}
.nav-links a {
  position: relative;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  padding: 8px 14px; border-radius: var(--r);
  transition: all var(--t); letter-spacing: .3px;
  display: flex; align-items: center; gap: 5px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px; background: var(--grad-gold);
  border-radius: var(--rmax); transition: all var(--t);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: var(--glass-2);
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 14px; right: 14px;
}

/* Nav dropdown (Catálogo) */
.nav-dropdown {
  position: relative;
}
.nav-dd-trigger {
  cursor: pointer;
}
.nav-dd-arrow {
  font-size: 9px; margin-left: 2px;
  transition: transform .2s;
}
.nav-dropdown:hover .nav-dd-arrow { transform: rotate(180deg); }
.nav-dd-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  padding: 6px; z-index: 900;
  flex-direction: column;
}
.nav-dropdown:hover .nav-dd-menu { display: flex; }
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-dd-item:hover { background: var(--glass-2); color: var(--gold); }
.nav-dd-item i { width: 16px; text-align: center; color: var(--gold); font-size: 12px; }
.nav-dd-all {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px; padding-bottom: 10px;
  font-weight: 700; color: var(--text-light);
}

/* Nav right group */
.nav-actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}

/* Search bar in header */
.nav-search {
  display: flex; align-items: center;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--rmax); overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
  width: 200px;
}
.nav-search:focus-within {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(30,95,168,.1);
  width: 240px;
}
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px;
  padding: 8px 14px; flex: 1; min-width: 0;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search button {
  background: none; border: none; color: var(--text-dim);
  padding: 8px 12px; font-size: 13px;
  transition: color var(--t);
}
.nav-search button:hover { color: var(--gold); }

/* Quote cart button */
.btn-quote-cart {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-2); border: 1px solid var(--border-gold);
  color: var(--gold); font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--rmax);
  cursor: pointer; transition: all var(--t);
  letter-spacing: .3px;
}
.btn-quote-cart:hover {
  background: var(--gold); color: #fff; border-color: var(--gold);
  box-shadow: var(--glow-blue);
}
.btn-quote-cart .cart-count {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.btn-quote-cart .cart-count.bump { animation: bumpScale .3s ease; }
@keyframes bumpScale { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* WhatsApp nav button */
.btn-nav-wa {
  display: flex; align-items: center; gap: 7px;
  background: var(--whatsapp); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--rmax);
  transition: all var(--t); border: none;
  text-decoration: none;
}
.btn-nav-wa:hover { background: var(--whatsapp-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,.3); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
  width: 42px; align-items: flex-end;
}
.hamburger span {
  display: block; height: 2px; background: var(--text-mid);
  border-radius: var(--rmax); transition: all .3s ease;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 16px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 22px; background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 22px; background: var(--gold); }

/* Scrolled header */
.site-header.scrolled .header-top { display: none; }
.site-header.scrolled .header-main {
  background: rgba(255,255,255,.99);
  box-shadow: 0 4px 24px rgba(15,28,46,.10), 0 1px 0 rgba(30,95,168,.10);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none; position: fixed;
  top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: #fff; border-left: 1px solid var(--border);
  z-index: 1100; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
  overflow-y: auto; pointer-events: none;
}
.nav-mobile.open { transform: none; pointer-events: auto; }
.nav-mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,28,46,.5); z-index: 1050;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: auto; }
.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  background: var(--gold);
}
.nav-mobile-close {
  background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 18px; cursor: pointer; padding: 4px;
}
.nav-mobile-links { padding: 16px; flex: 1; }
.nav-mobile-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r);
  color: var(--text-mid); font-size: 15px; font-weight: 500;
  transition: all var(--t); border-bottom: 1px solid var(--border);
}
.nav-mobile-links a:last-child { border-bottom: none; }
.nav-mobile-links a:hover, .nav-mobile-links a.active { color: var(--gold); background: var(--glass-2); }
.nav-mobile-links a i { width: 20px; color: var(--gold); text-align: center; }
/* Mobile catalog dropdown */
.nav-mob-section { border-bottom: 1px solid var(--border); }
.nav-mob-cat-toggle {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px; border-radius: var(--r);
  background: none; border: none; cursor: pointer;
  color: var(--text-mid); font-size: 15px; font-weight: 500;
}
.nav-mob-cat-toggle i:first-child { width: 20px; color: var(--gold); text-align: center; }
.nav-mob-cat-toggle:hover { color: var(--gold); background: var(--glass-2); }
.nav-mob-cat-list { padding: 0 8px 8px; }
.nav-mob-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r);
  color: var(--text-mid); font-size: 14px; font-weight: 500;
  transition: all var(--t);
}
.nav-mob-cat-item:hover { color: var(--gold); background: var(--glass-2); }
.nav-mob-cat-item i { width: 18px; color: var(--gold); text-align: center; font-size: 12px; }

.nav-mobile-footer {
  padding: 20px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 890;
  width: 54px; height: 54px;
  background: var(--whatsapp); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: all var(--t); text-decoration: none;
  animation: float 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12) translateY(-4px); box-shadow: 0 10px 32px rgba(37,211,102,.5); }
.wa-float .wa-tooltip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--text); border: none;
  color: #fff; font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity var(--t);
  box-shadow: var(--shadow);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ── SITE FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text);           /* azul muy oscuro / casi negro */
  border-top: none;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--grad-gold);
}
.footer-main {
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { text-align: center; }
.footer-brand p { margin-left: auto; margin-right: auto; }
.footer-socials { justify-content: center; }
.footer-brand .site-logo { margin-bottom: 20px; justify-content: center; }
.footer-brand .site-logo .logo-text .name { -webkit-text-fill-color: #fff; background: none; color: #fff; }
.footer-brand .site-logo .logo-text .sub  { color: rgba(255,255,255,.4); }
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.8;
  margin-bottom: 24px; max-width: 280px;
}
.footer-socials {
  display: flex; gap: 10px;
}
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.5);
  transition: all var(--t);
}
.footer-socials a:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 12px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 8px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,.5);
  transition: all var(--t); display: flex; align-items: center; gap: 8px;
}
.footer-col ul li a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.2); transition: background var(--t);
  flex-shrink: 0;
}
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-col ul li a:hover::before { background: var(--gold-light); }
.footer-contact-item {
  display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start;
}
.fci-icon {
  width: 32px; height: 32px; min-width: 32px;
  background: rgba(30,95,168,.3); border: 1px solid rgba(52,120,200,.4);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--gold-light); flex-shrink: 0;
}
.footer-contact-item .fc-text { display: flex; flex-direction: column; }
.footer-contact-item .fc-label { font-size: 11px; color: rgba(255,255,255,.35); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .5px; }
.footer-contact-item .fc-val  { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-contact-item .fc-val a { transition: color var(--t); }
.footer-contact-item .fc-val a:hover { color: #fff; }

/* Footer bottom bar */
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; text-align: center;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,.35);
}
.footer-copy span { color: var(--gold-light); }
.footer-bottom-links {
  display: flex; gap: 20px;
}
.footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,.35); transition: color var(--t);
}
.footer-bottom-links a:hover { color: #fff; }
.footer-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 4px 10px; border-radius: var(--rmax);
}
.footer-badge i { color: var(--gold-light); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hd-top-info .hd-loc { display: none; }
  .nav-search { width: 160px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links, .nav-search, .hd-top-info { display: none; }
  .hamburger { display: flex; }
  .nav-mobile, .nav-mobile-overlay { display: flex; }
  .hd-schedule { display: none; }
  .header-main .container { height: 58px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .header-top .container { justify-content: center; }
  .hd-top-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .btn-quote-cart .btn-label { display: none; }
  .btn-nav-wa .btn-label { display: none; }
  .nav-actions { gap: 6px; }
}

@media (max-width: 400px) {
  .header-main .container { gap: 8px; height: 54px; }
  .site-logo .logo-text .sub { display: none; }
  .site-logo img { height: 34px; }
  .header-top { display: none; }
}
