@import url('https://fonts.googleapis.com/css2?family=Anton&family=Fira+Code:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800;900&display=swap');

/* ==========================================================================
   BULLET DESIGN - HIGH-IMPACT EDITORIAL & INTERACTIVE DESIGN SYSTEM
   Exact Reference Replica, Deep Electric Blue, Massive Red Typography
   ========================================================================== */

:root {
  --blue:       #0A25E0; /* Electric Blue from Reference */
  --blue-dark:  #05189E;
  --red:        #FF2600; /* Pure Vibrant Red from Reference */
  --red-dark:   #C41D00;
  --black:      #0A0A0A;
  --black-soft: #141416;
  --white:      #FFFFFF;
  --offwhite:   #F5F5F7;
  --gray-border:#E2E2E8;
  --gray-muted: #8E8E9A;
  
  --font-display: 'Anton', 'Syne', sans-serif;
  --font-sans:    'Plus Jakarta Sans', sans-serif;
  --font-code:    'Fira Code', monospace;
  
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill:9999px;
  
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease-editorial);
}

/* ==========================================================================
   1. SHARED BASE STYLES
   ========================================================================== */

/* ==========================================================================
   2. HERO REPLICA EXACTA A LA FOTO
   ========================================================================== */

.hero-replica {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 750px;
  background-color: var(--blue);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 40px;
}

/* Portrait Image Background (Blending like fashion reference) */
.hero-portrait-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 100%;
  max-width: 1200px;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: luminosity;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* Top bar text overlay inside hero */
.hero-nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.hero-center-content {
  position: relative;
  z-index: 5;
  text-align: center;
  margin: auto 0;
  width: 100%;
}

.hero-huge-text {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 17.5vw, 21rem);
  line-height: 0.82;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0,0,0,0.3);
  word-break: break-word;
}

/* Edge Micro-Typography */
.hero-side-left {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  z-index: 10;
  white-space: nowrap;
}

.hero-side-right {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
  z-index: 10;
  color: rgba(255, 255, 255, 0.9);
}

.hero-bottom-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   3. LANGUAGE SWITCHER (EN / ES)
   ========================================================================== */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 38, 0, 0.4);
}

/* ==========================================================================
   4. MODAL POP-UP PARA TARJETAS DE PLANES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-editorial);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 650px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s var(--ease-editorial);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--offwhite);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-close:hover {
  background: var(--red);
  color: var(--white);
}

/* ==========================================================================
   5. WIDGET INTERACTIVO "ARMA TU WEB / EASY BUILDER"
   ========================================================================== */

.builder-widget {
  background: var(--black-soft);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}

.builder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 36px;
}

.builder-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-editorial);
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-chip:hover, .builder-chip.active {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 38, 0, 0.4);
}

.code-terminal {
  background: #050507;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #38BDF8;
  line-height: 1.7;
  overflow-x: auto;
}

.code-keyword { color: #F43F5E; font-weight: 700; }
.code-string  { color: #4ADE80; }
.code-fn      { color: #FACC15; }
.code-comment { color: #64748B; font-style: italic; }

/* ==========================================================================
   6. TABLAS COMPARATIVAS CON RESALTADO PLUS
   ========================================================================== */

.editorial-table .plus-highlight {
  color: var(--red);
  font-weight: 800;
}

.editorial-table .plus-tag {
  background: rgba(255, 38, 0, 0.1);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ==========================================================================
   TYPOGRAPHY OVERLAPS & BADGES
   ========================================================================== */

.font-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
}

.text-huge { font-size: clamp(4rem, 13vw, 14rem); }
.text-giant { font-size: clamp(3rem, 9vw, 9rem); }
.text-title { font-size: clamp(2.2rem, 5vw, 5rem); }

.color-blue  { color: var(--blue) !important; }
.color-red   { color: var(--red) !important; }
.color-white { color: var(--white) !important; }
.color-black { color: var(--black) !important; }
.color-muted { color: var(--gray-muted) !important; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }

.bg-blue { background-color: var(--blue); color: var(--white); }
.bg-red { background-color: var(--red); color: var(--white); }
.bg-black { background-color: var(--black); color: var(--white); }
.bg-offwhite { background-color: var(--offwhite); color: var(--black); }
.bg-white { background-color: var(--white); color: var(--black); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 40px; display: flex; justify-content: space-between; align-items: center;
  mix-blend-mode: difference; color: var(--white);
}

.header-logo {
  font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}

.header-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--red); }

.sticky-cta-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  background: var(--red); color: var(--white); padding: 16px 32px;
  border-radius: var(--radius-pill); font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 16px 40px rgba(255, 38, 0, 0.4);
  display: flex; align-items: center; gap: 10px; border: none; cursor: pointer;
  transition: transform 0.3s var(--ease-editorial), background 0.3s;
}
.sticky-cta-btn:hover { transform: translateY(-4px) scale(1.03); background: var(--black); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 38px; border-radius: var(--radius-pill); font-size: 0.9rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; border: 2px solid transparent; transition: all 0.3s var(--ease-editorial);
}
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--red); color: var(--white); transform: translateY(-3px); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--black); color: var(--white); transform: translateY(-3px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 12px 30px rgba(255, 38, 0, 0.35); }
.btn-red:hover { background: var(--black); color: var(--white); transform: translateY(-3px); }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--black); transform: translateY(-3px); }
.btn-outline-black { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline-black:hover { background: var(--black); color: var(--white); transform: translateY(-3px); }

.inline-badge {
  display: inline-flex; vertical-align: middle; position: relative;
  margin: 0 12px; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); transition: transform 0.4s var(--ease-editorial);
}
.inline-badge:hover { transform: scale(1.1) rotate(-2deg); }
.inline-badge img { width: 110px; height: 70px; object-fit: cover; }
.badge-tag {
  position: absolute; bottom: 6px; left: 6px; right: 6px;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(8px);
  color: var(--white); font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; text-align: center;
}

.editorial-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.editorial-table th { text-align: left; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-muted); padding: 16px 24px; border-bottom: 2px solid var(--black); }
.editorial-table td { padding: 24px; border-bottom: 1px solid var(--gray-border); font-size: 0.95rem; font-weight: 600; vertical-align: middle; }
.editorial-table tr:hover { background: var(--offwhite); }
.editorial-table tr.active-row { background: var(--black); color: var(--white); }
.editorial-table tr.active-row .color-muted { color: rgba(255,255,255,0.6) !important; }
.table-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.editorial-card {
  display: flex; flex-direction: column; justify-content: space-between; padding: 40px;
  border-radius: var(--radius-lg); border: 1px solid var(--gray-border); background: var(--white);
  transition: all 0.4s var(--ease-editorial); position: relative; overflow: hidden; cursor: pointer;
}
.editorial-card:hover { transform: translateY(-8px); border-color: var(--red); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.editorial-card.card-featured { background: var(--red); color: var(--white); border-color: var(--red); }
.editorial-card.card-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.card-num { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--red); margin-bottom: 20px; }
.card-featured .card-num { color: var(--white); }
.card-price { font-family: var(--font-display); font-size: 4rem; line-height: 1; margin: 16px 0; }
.card-price span { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--gray-muted); }
.card-featured .card-price span { color: rgba(255,255,255,0.7); }

.feature-list { list-style: none; margin: 24px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; }
.feature-list li::before { content: '→'; color: var(--red); font-weight: 800; flex-shrink: 0; }
.card-featured .feature-list li::before { color: var(--white); }

.site-footer { background: var(--red); color: var(--white); padding: 80px 0 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand h2 { font-family: var(--font-display); font-size: 3.5rem; margin-bottom: 16px; color: var(--white); }
.footer-brand p { font-size: 1rem; opacity: 0.9; max-width: 360px; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 24px; color: var(--white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--black); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-replica { padding: 20px; min-height: 600px; }
  .hero-side-left, .hero-side-right { display: none; }
  .modal-card { padding: 28px; }
  .builder-widget { padding: 24px; }
}

/* 2026 frameless refinement shared across the site */
:focus-visible { outline: 3px solid #b8fff0; outline-offset: 4px; }
.section { border-radius: 0; border-top: 1px solid rgba(10,10,10,.08); }
.bg-black + .bg-black, .bg-red + .bg-red, .bg-blue + .bg-blue { border-top-color: rgba(255,255,255,.16); }
.editorial-card, .banner-box, .inline-badge, .code-terminal, .builder-widget { border-radius: 0 !important; }
.editorial-card { cursor: default; }
.editorial-card::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -80px; top: -80px;
  border: 1px solid currentColor; border-radius: 50%; opacity: .08; transition: transform .55s var(--ease-editorial);
}
.editorial-card:hover::after { transform: scale(1.8); }
.site-header { transition: transform .4s var(--ease-editorial), background .3s; }
.motion-ready { opacity: 0; transform: translateY(30px); }
.motion-ready.motion-in { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease-editorial), transform .8s var(--ease-editorial); }

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