/* =============================================
   CONEXION TV – styles.css
   Responsivo: 1080p | 1366x768 | Mobile
   ============================================= */

:root {
  --brand: #e63000;
  --brand-light: #ff4d1a;
  --brand-dark: #b52200;
  --dark: #0a0a0a;
  --darker: #050505;
  --gray: #1a1a1a;
  --text: #f0f0f0;
  --text-dim: rgba(240,240,240,0.65);
  --green-wa: #25d366;
  --header-h: 64px;
  --radius: 10px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--darker);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230,48,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-h);
}

.logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(230,48,0,0.5));
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav a:hover { color: var(--brand-light); }

.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--brand-light) !important; transform: scale(1.04); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(5,5,5,0.97);
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
}
.mobile-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 0.75rem;
}
.mobile-nav.open { display: flex; }

/* ══════════════════════════════════════════════
   MAIN GRID  –  6 celdas en 3×2
══════════════════════════════════════════════ */
.grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, calc((100vh - var(--header-h)) / 2));
  margin-top: var(--header-h);
  width: 100%;
}

/* ── Celda base ──────────────────────────────── */
.cell {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.cell-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  will-change: transform;
}
.cell:hover .cell-bg { transform: scale(1.06); }

.cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(230,48,0,0.18) 60%,
    rgba(0,0,0,0.8) 100%
  );
  transition: opacity 0.4s;
}
.cell-overlay--dark {
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(10,10,10,0.75) 100%);
}
.cell-overlay--green {
  background: linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(37,211,102,0.12) 100%);
}

.cell-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.5rem 1.75rem;
  gap: 0.4rem;
}

.cell-content--app {
  justify-content: center;
  padding: 2rem;
}

/* ── Tags ────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.25rem;
}
.tag--light {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ── Titles ──────────────────────────────────── */
.cell-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.cell-title--lg {
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  line-height: 1.1;
}

.cell-sub {
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.5;
  max-width: 28ch;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.9),
    0 2px 12px rgba(0,0,0,0.8),
    0 4px 24px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(2px);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  margin-top: 0.75rem;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230,48,0,0.45);
}
.btn--primary:hover { background: var(--brand-light); box-shadow: 0 6px 28px rgba(230,48,0,0.6); }

.btn--whatsapp {
  background: var(--green-wa);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn--whatsapp:hover { background: #20bd5a; box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── Separadores entre celdas ────────────────── */
.cell::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 3;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: #000;
  border-top: 1px solid rgba(230,48,0,0.3);
  padding: 1.2rem 2rem;
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.footer-logo { height: 32px; opacity: 0.8; }
.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════
   RESPONSIVE – 1366×768
══════════════════════════════════════════════ */
@media (max-width: 1400px) {
  .cell-title { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
  .cell-content { padding: 1.2rem 1.4rem; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – Tablet / < 900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .grid-main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 42vw);
    margin-top: var(--header-h);
  }

  .cell-title { font-size: clamp(1.5rem, 4vw, 2.2rem); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – Mobile / < 540px
══════════════════════════════════════════════ */
@media (max-width: 540px) {
  :root { --header-h: 56px; }

  .logo { height: 34px; }

  .grid-main {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 56vw);
  }

  .cell-title { font-size: 2rem; }
  .cell-title--lg { font-size: 1.3rem; }
  .cell-content { padding: 1rem 1.2rem; }
  .cell-content--app { justify-content: flex-end; padding: 1.2rem; }
  .cell-sub { font-size: 0.8rem; max-width: 100%; }
  .btn { font-size: 0.78rem; padding: 0.55rem 1.1rem; }

  .footer { padding: 1rem; }
  .footer-logo { height: 26px; }
}

/* ── Hover glow accent on brand cells ───────── */
.cell--1:hover .cell-overlay,
.cell--3:hover .cell-overlay,
.cell--6:hover .cell-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(230,48,0,0.28) 100%);
}
