/* ─────────────────────────────────────────────────────────
   NexoGest Landing — styles.css
   Brand: primary #1E3A5F · accent #2563EB · success #10B981
   Font: Inter (Google Fonts)
───────────────────────────────────────────────────────── */

/* ── 1. VARIABLES ────────────────────────────────────────── */
:root {
  --navy:          #1E3A5F;
  --navy-dark:     #152C4A;
  --navy-darker:   #0E1E32;
  --accent:        #2563EB;
  --accent-dark:   #1D4ED8;
  --accent-light:  #EFF6FF;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --white:         #FFFFFF;
  --bg:            #F8FAFC;
  --bg-subtle:     #F1F5F9;
  --border:        #E2E8F0;
  --text-main:     #1E293B;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,.09);
  --shadow-lg:     0 12px 36px rgba(0,0,0,.12);
  --shadow-xl:     0 24px 64px rgba(0,0,0,.15);
  --max-w:         1120px;
  --section-py:    100px;
}

/* ── 2. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── 3. LAYOUT ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 4. TYPOGRAPHY UTILITIES ─────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── 5. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

.btn-primary-lg {
  font-size: 16px;
  padding: 15px 36px;
}

.btn-ghost-navy {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost-navy:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
}

/* ── 6. HEADER / NAV ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text-main); background: var(--bg-subtle); }

.nav-cta {
  font-size: 14px;
  padding: 9px 20px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: .25s;
}

/* Mobile nav overlay — fuera del header, fondo navy sólido */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--navy);
  z-index: 200;
  padding: 20px 16px 32px;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid rgba(255,255,255,.12);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 16px;
  padding: 13px 16px;
  color: rgba(255,255,255,.82);
  border-radius: 10px;
}
.mobile-nav .nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.mobile-nav .btn { justify-content: center; margin-top: 12px; }

/* ── 7. BANNER ───────────────────────────────────────────── */
@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes bannerShimmer {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(200%); }
}

@keyframes bannerIconPulse {
  0%, 100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
  40%       { transform: scale(1.3) rotate(-8deg);  opacity: .9; }
  60%       { transform: scale(1.1) rotate(4deg);   opacity: 1; }
}

#site-banner {
  display: none;
  background: linear-gradient(100deg, #0f0c29 0%, var(--accent) 45%, #6d28d9 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}
#site-banner.visible {
  display: block;
  animation: bannerSlideDown .45s cubic-bezier(.22,.68,0,1.2) both;
}
#site-banner::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  animation: bannerShimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 24px;
  position: relative;
  z-index: 1;
}

.banner-icon {
  display: inline-flex;
  align-items: center;
  color: #FCD34D;
  animation: bannerIconPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(252,211,77,.6));
}

.banner-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: .9;
  transition: opacity .15s;
  white-space: nowrap;
}
.banner-link:hover { opacity: 1; }

/* ── 8. HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy-darker) 0%, var(--navy) 55%, #1a3a6e 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 80px;
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Glow blobs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-content { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #93C5FD, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.hero-trust svg { color: var(--success); }

/* ── 9. HERO MOCKUP ──────────────────────────────────────── */
.hero-mockup {
  position: relative;
  z-index: 1;
}

.mockup-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.1);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .3s ease;
}
.mockup-window:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.mockup-chrome {
  background: #E8ECF0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chrome-dots { display: flex; gap: 6px; }
.chrome-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.chrome-dot.red    { background: #FF5F57; }
.chrome-dot.yellow { background: #FEBC2E; }
.chrome-dot.green  { background: #28C840; }

.chrome-url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-ui {
  display: flex;
  height: 360px;
}

.mockup-sidebar {
  width: 54px;
  background: var(--navy);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.mockup-nav-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.mockup-nav-dot.active { background: var(--accent); }

.mockup-content {
  flex: 1;
  background: var(--bg);
  padding: 14px;
  overflow: hidden;
}

.mockup-topbar {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mockup-stat {
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.mockup-stat.highlight {
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,.15);
}

.mockup-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.mockup-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -.02em;
}
.mockup-stat.highlight .mockup-stat-value { color: var(--accent); }

.mockup-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.mockup-appts { display: flex; flex-direction: column; gap: 6px; }

.mockup-appt {
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.appt-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 36px;
  font-family: monospace;
}

.appt-client {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.appt-badge {
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
}
.appt-badge.confirmed { background: #DCFCE7; color: #166534; }
.appt-badge.pending   { background: #FEF9C3; color: #854D0E; }
.appt-badge.done      { background: #F0F9FF; color: #0C4A6E; }

/* ── 10. FEATURES ────────────────────────────────────────── */
.features {
  padding: var(--section-py) 0;
  background: var(--white);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.features-header .section-subtitle { margin: 0 auto; }

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.11), 0 2px 8px rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.25);
  transform: translateY(-5px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 11. SOCIAL PROOF STRIP ──────────────────────────────── */
.proof-strip {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.proof-item {
  text-align: center;
}

.proof-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
}

.proof-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ── 12. OFFERS ──────────────────────────────────────────── */
#section-ofertas {
  display: none;
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 60%, #fde68a 100%);
  border-top: 3px solid var(--warning);
  border-bottom: 3px solid var(--warning);
  position: relative;
  overflow: hidden;
}
#section-ofertas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(245,158,11,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(234,88,12,.08)  0%, transparent 55%);
  pointer-events: none;
}
#section-ofertas.visible { display: block; }

.offers-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
#section-ofertas .eyebrow { color: #B45309; }
#section-ofertas .section-title { color: #78350F; }

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.offer-card {
  background: var(--white);
  border: 2px solid rgba(245,158,11,.35);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  box-shadow: 0 4px 18px rgba(245,158,11,.14), 0 1px 4px rgba(0,0,0,.06);
}
.offer-card:hover {
  box-shadow: 0 10px 36px rgba(245,158,11,.28), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-5px);
  border-color: var(--warning);
}
/* Accent stripe */
.offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--warning) 0%, #EA580C 100%);
}

.offer-urgency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid rgba(245,158,11,.45);
  border-radius: 50px;
  padding: 3px 10px;
  margin-bottom: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--warning), #EA580C);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(245,158,11,.4);
}

.offer-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #78350F;
  margin-bottom: 10px;
  line-height: 1.3;
}

.offer-card p {
  font-size: 15px;
  color: #92400E;
  line-height: 1.65;
  opacity: .88;
}

.offer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(120,53,15,.07);
  border: 1px solid rgba(120,53,15,.15);
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0;
  flex-shrink: 0;
}
.offer-close:hover {
  background: rgba(239,68,68,.1);
  color: var(--danger);
  border-color: rgba(239,68,68,.3);
}

.offer-card.offer-dismissed { display: none; }

/* ── 13. PRICING / PLANES ────────────────────────────────── */
.pricing {
  padding: var(--section-py) 0;
  background: var(--navy-darker);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.pricing-header .section-title { color: var(--white); }
.pricing-header .section-subtitle { color: rgba(255,255,255,.6); margin: 0 auto; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.plan-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  color: var(--white);
  transition: border-color .2s, background .2s, transform .2s;
}
.plan-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.plan-card.highlighted {
  background: var(--white);
  border-color: var(--white);
  color: var(--text-main);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.plan-card.highlighted:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 72px rgba(0,0,0,.2), 0 4px 16px rgba(37,99,235,.12);
}

.plan-popular-badge {
  display: none;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  border-radius: 50px;
  padding: 5px 16px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.plan-card.highlighted .plan-popular-badge { display: block; }

.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.plan-card:not(.highlighted) .plan-name { color: var(--white); }
.plan-card.highlighted .plan-name { color: var(--navy); }

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}
.plan-card:not(.highlighted) .plan-price-amount { color: var(--white); }
.plan-card.highlighted .plan-price-amount { color: var(--accent); }

.plan-price-currency {
  font-size: 22px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 8px;
}

.plan-price-period {
  font-size: 14px;
  font-weight: 500;
  opacity: .6;
}

.plan-divider {
  height: 1px;
  background: rgba(255,255,255,.15);
  margin: 24px 0;
}
.plan-card.highlighted .plan-divider { background: var(--border); }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.plan-feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16,185,129,.2);
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
}
.plan-card.highlighted .plan-feature-icon {
  background: #DCFCE7;
}

.plan-feature-text { opacity: .85; }
.plan-card.highlighted .plan-feature-text { opacity: 1; color: var(--text-muted); }

.plan-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all .18s ease;
}

.plan-card:not(.highlighted) .plan-cta {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
}
.plan-card:not(.highlighted) .plan-cta:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}

.plan-card.highlighted .plan-cta {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.plan-card.highlighted .plan-cta:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.5);
  transform: translateY(-1px);
}

/* Diagonal ribbon — injected by JS when ribbon_active + ribbon_text are set.
   Uses an overflow:hidden wrapper so the rotated band is clipped to the
   top-right corner without affecting the .plan-popular-badge sibling. */
.plan-ribbon-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) 0 0;
  pointer-events: none;
}

.plan-ribbon {
  position: absolute;
  top: 24px;
  right: -26px;
  width: 110px;
  padding: 5px 0;
  background: var(--warning);
  color: var(--navy-darker);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  transform: rotate(45deg);
  white-space: nowrap;
}

/* ── 14. FAQ ─────────────────────────────────────────────── */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.faq-header { text-align: center; margin-bottom: 56px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
details.faq-item[open] { border-color: rgba(37,99,235,.3); }
details.faq-item[open] summary { color: var(--accent); }

summary.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  transition: color .15s;
  gap: 16px;
}
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .2s;
  line-height: 1;
}
details[open] summary.faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  margin-top: -1px;
}

/* ── 15. FINAL CTA STRIP ─────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-strip h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.cta-strip p {
  font-size: 18px;
  opacity: .8;
  margin-bottom: 36px;
}

.cta-strip-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 16. FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.35); transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── 17. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan-card.highlighted { transform: none; }
  .plan-card.highlighted:hover { transform: translateY(-2px); }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-badge { margin: 0 auto 24px; }

  .mockup-window { transform: none; }
  .mockup-window:hover { transform: none; }

  .features-grid { grid-template-columns: 1fr; }

  .proof-inner { gap: 36px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .promo-sticker-wrap {
    width: 140px;
    height: 140px;
    bottom: 16px;
    right: 16px;
  }
  .sticker-text { font-size: 11px; max-width: 80px; }
  .sticker-close { top: 14px; right: 14px; width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .mockup-stats { grid-template-columns: 1fr 1fr; }
  .mockup-stat:last-child { grid-column: 1 / -1; }

  .cta-strip-btns { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
  .cta-strip-btns .btn { justify-content: center; }
}

/* ── 18. PROMO STICKER ───────────────────────────────────── */

@keyframes stickerBob {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  35%       { transform: rotate(-3deg) scale(1.04); }
  70%       { transform: rotate(-9deg) scale(.97); }
}

/* Wrapper: fixed positioning sin clip-path, para que el botón cerrar
   no quede recortado por la estrella interior */
.promo-sticker-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 190px;
  height: 190px;
}

/* Estrella con clip-path — ocupa todo el wrapper */
.promo-sticker-star {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--warning) 0%, #EA580C 100%);
  /* 12-point starburst */
  clip-path: polygon(
    50% 0%,  55% 13%, 64%  5%, 64% 18%,
    76% 11%, 73% 24%, 87% 21%, 81% 33%,
    96% 33%, 87% 43%, 100% 47%, 88% 53%,
    99% 60%, 86% 62%, 92% 74%, 78% 72%,
    82% 86%, 69% 80%, 70% 95%, 59% 86%,
    50% 100%, 41% 86%, 30% 95%, 31% 80%,
    18% 86%, 22% 72%, 8%  74%, 14% 62%,
    1%  60%, 12% 53%, 0%  47%, 13% 43%,
    4%  33%, 19% 33%, 13% 21%, 27% 24%,
    24% 11%, 36% 18%, 36%  5%, 45% 13%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: stickerBob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 20px rgba(234,88,12,.55));
  transition: filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.promo-sticker-wrap:hover .promo-sticker-star {
  animation-play-state: paused;
  filter: drop-shadow(0 10px 28px rgba(234,88,12,.7));
}
.promo-sticker-star:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 8px;
  border-radius: 50%;
}

/* Texto del sticker — tamaño generoso para texto de hasta ~40 char */
.sticker-text {
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  max-width: 108px;     /* ~57% del ancho de 190px */
  word-break: break-word;
  hyphens: none;        /* sin guiones automáticos */
  overflow-wrap: break-word;
  transform: rotate(-6deg);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
  pointer-events: none;
  user-select: none;
}

/* Botón cerrar — fuera del clip-path, visible solo en hover */
.sticker-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: 1.5px solid rgba(255,255,255,.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .22s ease, transform .22s ease, background .15s;
  z-index: 1;
}
.promo-sticker-wrap:hover .sticker-close {
  opacity: 1;
  transform: scale(1);
}
.sticker-close:hover {
  background: rgba(239,68,68,.75);
  border-color: rgba(255,255,255,.8);
}

/* En pantallas táctiles no existe hover real: mostrar el botón siempre */
@media (hover: none) {
  .sticker-close {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── 19. UTILITIES ───────────────────────────────────────── */
.hidden { display: none !important; }

.text-center { text-align: center; }

/* Fade-in animation for hero content */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge    { animation: fadeInUp .5s ease both; }
.hero-title    { animation: fadeInUp .5s ease .1s both; }
.hero-subtitle { animation: fadeInUp .5s ease .2s both; }
.hero-ctas     { animation: fadeInUp .5s ease .3s both; }
.hero-trust    { animation: fadeInUp .5s ease .4s both; }
.hero-mockup   { animation: fadeInUp .6s ease .25s both; }
