/* ==========================================================================
   ESTILOS CINEMATOGRÁFICOS TEMPO — GLACIAR CRISTALINO
   ========================================================================== */

:root {
  --bg-dark: #070b12;
  --bg-card: #0f172a;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --text-light: #f0f9ff;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-body); background-color: var(--bg-dark); color: var(--text-light); }
body { background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* CINEMATIC HERO (TEMPO SYSTEM 100svh) */
.center-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  background-color: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.center-media img,
.center-media video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-media video { opacity: 0; }
.center-stage.has-film .center-media video { opacity: 1; }
.center-stage.has-film .center-media img { opacity: 0; }

.center-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 75%, var(--bg-dark) 100%);
  pointer-events: none;
}

.center-chrome {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.center-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.center-brand {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.center-brand span { color: var(--accent); }
.center-brand-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

.center-top-actions { display: flex; align-items: center; gap: 16px; }
.center-explore {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s;
}
.center-explore:hover { background: rgba(255, 255, 255, 0.08); }

.center-middle {
  text-align: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
  margin-bottom: auto;
}

.center-title {
  font-family: var(--font-title);
  font-size: clamp(44px, 5.2vw, 86px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text-light);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 8px;
}

.center-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.center-bottom p {
  color: var(--text-light);
  opacity: 0.85;
  font-size: 1rem;
  font-weight: 300;
  max-width: 580px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.center-cta-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.center-cta {
  height: 62px;
  padding: 0 36px;
  border-radius: var(--radius-pill);
  background-color: var(--text-light);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.center-cta:hover {
  transform: scale(1.03);
  background-color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.btn-pill-outline {
  height: 62px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-pill-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-light);
  transform: scale(1.02);
}

.center-return {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
  z-index: 20;
}
.center-return:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--text-light);
}

.center-stage.immersive .center-top { opacity: 0.2; transform: translateY(-10px); }
.center-stage.immersive .center-middle { opacity: 0; transform: scale(0.95); pointer-events: none; }
.center-stage.immersive .center-bottom { opacity: 0; transform: translateY(20px); pointer-events: none; }
.center-stage.immersive .center-return { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.center-stage.immersive .center-media video,
.center-stage.immersive .center-media img { transform: translate(-50%, -50%) scale(1.05); }

/* GLOBAL NAVBAR */
.global-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
}
.global-navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text-light); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background-color: var(--text-light); color: var(--bg-dark); }
.btn-primary:hover { background-color: #ffffff; transform: translateY(-2px); }
.btn-secondary { background-color: rgba(255, 255, 255, 0.05); color: var(--text-light); border-color: var(--border-color); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

.cart-open-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: background-color 0.2s;
}
.cart-open-btn:hover { background: rgba(255, 255, 255, 0.12); }
.cart-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SECTIONS & CARDS */
.section-container { max-width: 1280px; margin: 0 auto; padding: 100px 24px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; display: inline-block; }
.section-title { font-family: var(--font-title); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.card-media { height: 280px; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card-item:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.card-title { font-family: var(--font-title); font-size: 1.35rem; font-weight: 500; margin-bottom: 8px; }
.card-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; margin-bottom: 20px; }
.price-box { border-top: 1px solid var(--border-color); padding-top: 16px; margin-bottom: 16px; }
.price-amount { font-size: 1.5rem; font-weight: 700; color: var(--text-light); }
.price-tax { font-size: 0.75rem; color: var(--text-muted); }

.pillar-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 32px 24px; text-align: left; }
.pillar-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.pillar-title { font-family: var(--font-title); font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.pillar-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* CART DRAWER */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border-color); }
.cart-close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.cart-close-btn:hover { color: var(--text-light); }
.cart-body { flex-grow: 1; overflow-y: auto; padding: 24px; }
.cart-item { display: flex; gap: 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.cart-qty-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: var(--text-light); width: 26px; height: 26px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-footer { padding: 24px; border-top: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.3); }
.totals-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.88rem; color: var(--text-muted); }
.total-main { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; color: var(--text-light); margin: 16px 0 20px; padding-top: 12px; border-top: 1px solid var(--border-color); }

/* FOOTER */
.footer { background-color: #050505; border-top: 1px solid var(--border-color); padding: 80px 24px 40px; }
.footer-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-family: var(--font-title); font-size: 1.05rem; margin-bottom: 20px; color: var(--text-light); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 30px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; gap: 16px; }

@media (max-width: 768px) {
  .center-chrome { padding: 20px; }
  .center-title { font-size: clamp(34px, 8vw, 54px); }
  .nav-links { display: none; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; }
}
