/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --c-primary: #e8693c;
  --c-primary-dark: #d4582c;
  --c-primary-light: #f4a261;
  --c-secondary: #2a9d8f;
  --c-secondary-dark: #21867f;
  --c-dark: #1a1a2e;
  --c-dark-soft: #2d2d44;
  --c-muted: #6b6b80;
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fb;
  --c-bg-dark: #16213e;
  --c-border: #e8e8ee;
  --c-whatsapp: #25d366;
  --c-whatsapp-dark: #1da851;
  --c-white: #ffffff;
  --c-text: #1a1a2e;
  --c-text-light: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.10);
  --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.15);
  --space: 8px;
  --max-w: 1140px;
  --max-w-narrow: 760px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 4px 14px rgba(232, 105, 60, 0.30);
}
.btn--primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232, 105, 60, 0.40); }
.btn--ghost {
  border-color: rgba(255,255,255,0.4); color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn--ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); }
.btn--whatsapp {
  background: var(--c-whatsapp); color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.30);
}
.btn--whatsapp:hover { background: var(--c-whatsapp-dark); transform: translateY(-1px); }
.btn--outline {
  border-color: var(--c-primary); color: var(--c-primary); background: transparent;
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 16px 40px; font-size: 17px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 33, 62, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}
.header.scrolled { background: rgba(22, 33, 62, 0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.header__logo {
  font-size: 24px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: -0.5px;
}
.header__logo-icon { color: var(--c-primary-light); font-size: 22px; }
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__link {
  color: rgba(255,255,255,0.85); font-weight: 500; font-size: 15px;
  transition: color 0.2s; position: relative;
}
.header__link:hover { color: #fff; }
.header__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform 0.25s;
}
.header__link:hover::after { transform: scaleX(1); }
.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.header__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f1629 100%);
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,105,60,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; }
.hero__title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2;
  color: #fff; letter-spacing: -1px; margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.75);
  margin-bottom: 32px; line-height: 1.6; max-width: 520px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--c-primary-light); }
.hero__stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ===== GALERÍA DE CAPTURAS ===== */
.hero__gallery-wrap {
  display: flex; flex-direction: column; align-items: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero__gallery-caption {
  margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.55);
  text-align: center;
}

.gallery-carousel {
  position: relative; width: 100%; max-width: 340px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-track {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #1b1b30; border: 3px solid #2a2a44;
}
.gallery-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.gallery-slide--active { opacity: 1; pointer-events: auto; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15, 22, 41, 0.75); color: #fff;
  border: none; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-arrow:hover { background: rgba(15, 22, 41, 0.92); }
.gallery-arrow:active { transform: translateY(-50%) scale(0.92); }
.gallery-arrow--prev { left: -12px; }
.gallery-arrow--next { right: -12px; }

.gallery-dots {
  display: flex; gap: 8px; margin-top: 14px;
  justify-content: center;
}
.gallery-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.3);
  cursor: pointer; padding: 0; transition: all 0.25s;
}
.gallery-dot--active {
  background: var(--c-primary-light); width: 24px; border-radius: 5px;
}

/* ===== SECTIONS ===== */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head__tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--c-primary); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-head__title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-head__sub { font-size: 18px; color: var(--c-muted); max-width: 540px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: var(--c-bg-alt); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  border: 1px solid var(--c-border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.feature-card__icon--blue { background: #e8f0fe; }
.feature-card__icon--green { background: #e6f7ee; }
.feature-card__icon--teal { background: #e0f5f3; }
.feature-card__icon--orange { background: #fdf0e6; }
.feature-card__icon--pink { background: #fce8f0; }
.feature-card__icon--cyan { background: #e0f4f8; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--c-muted); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing { padding: 100px 0; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.plan-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 32px;
  box-shadow: var(--shadow-sm); border: 2px solid var(--c-border);
  position: relative; transition: all 0.3s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card--featured {
  border-color: var(--c-primary);
  box-shadow: 0 8px 40px rgba(232, 105, 60, 0.15);
  transform: scale(1.02);
}
.plan-card--featured:hover { transform: scale(1.02) translateY(-4px); }
.plan-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 20px; white-space: nowrap;
}
.plan-card__head { margin-bottom: 8px; }
.plan-card__head h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-card__price { display: flex; align-items: baseline; gap: 4px; }
.plan-card__price span { font-size: 40px; font-weight: 800; color: var(--c-dark); }
.plan-card__price small { font-size: 16px; color: var(--c-muted); }
.plan-card__desc { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }
.plan-card__list { margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan-card__list li { font-size: 15px; padding-left: 26px; position: relative; }
.plan-card__list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--c-secondary); font-weight: 700;
}

/* ===== ADD-ON BANNER ===== */
.addon-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #2a9d8f 0%, #21867f 100%);
  border-radius: var(--radius-lg); padding: 32px 40px; color: #fff;
  box-shadow: 0 8px 30px rgba(42, 157, 143, 0.25);
}
.addon-banner__text h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.addon-banner__text p { font-size: 15px; opacity: 0.9; }
.addon-banner__price { display: flex; flex-direction: column; align-items: center; }
.addon-banner__price span { font-size: 36px; font-weight: 800; }
.addon-banner__price small { font-size: 16px; opacity: 0.8; }
.addon-banner__price em { font-size: 12px; opacity: 0.7; margin-top: 4px; font-style: normal; }
.addon-banner .btn { background: #fff; color: var(--c-secondary-dark); }
.addon-banner .btn:hover { background: #f0f0f0; }

/* ===== INSTALL CARD ===== */
.install-card {
  display: flex; gap: 36px; align-items: flex-start;
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  border-radius: var(--radius-lg); padding: 40px; margin-top: 28px;
  color: #fff; box-shadow: var(--shadow);
  border: 1px solid rgba(244, 162, 97, 0.2);
}
.install-card__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(244, 162, 97, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0;
}
.install-card__content { flex: 1; }
.install-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.install-card__head h3 { font-size: 24px; font-weight: 700; color: #fff; }
.install-card__price { display: flex; flex-direction: column; align-items: flex-end; }
.install-card__price span { font-size: 36px; font-weight: 800; color: var(--c-primary-light); }
.install-card__price small { font-size: 13px; color: rgba(255,255,255,0.5); }
.install-card__desc { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 20px; }
.install-card__list { margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.install-card__list li { font-size: 14px; padding-left: 24px; position: relative; color: rgba(255,255,255,0.85); }
.install-card__list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--c-primary-light); font-weight: 700;
}
.install-card .btn { background: var(--c-primary); color: #fff; }
.install-card .btn:hover { background: var(--c-primary-dark); }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: var(--c-bg-alt); }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-border); transition: box-shadow 0.25s;
}
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-item__q {
  width: 100%; padding: 20px 24px; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 600; color: var(--c-dark); cursor: pointer;
  text-align: left; transition: color 0.2s;
}
.faq-item__q:hover { color: var(--c-primary); }
.faq-item__icon {
  font-size: 24px; color: var(--c-primary); font-weight: 300;
  transition: transform 0.3s; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-item__a { max-height: 200px; padding: 0 24px 20px; }
.faq-item__a p { font-size: 16px; color: var(--c-muted); line-height: 1.6; }

/* ===== CTA FINAL ===== */
.cta-final {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, #16213e 0%, #0f1629 100%);
}
.cta-final h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer { background: #0f1629; color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer__inner {
  display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; padding-bottom: 40px;
}
.footer__brand { max-width: 300px; }
.footer__logo { font-size: 22px; font-weight: 800; color: #fff; display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.footer__brand p { font-size: 14px; opacity: 0.7; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 15px; transition: color 0.2s; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer__bottom p { font-size: 14px; opacity: 0.5; text-align: center; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan-card--featured { transform: none; }
  .plan-card--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__nav.open {
    display: flex; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; background: rgba(22,33,62,0.98);
    padding: 24px; gap: 20px; backdrop-filter: blur(12px);
  }
  .header__burger { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .features__grid { grid-template-columns: 1fr; }
  .features { padding: 70px 0; }
  .pricing { padding: 70px 0; }
  .faq { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .addon-banner { flex-direction: column; text-align: center; }
  .install-card { flex-direction: column; gap: 20px; padding: 28px; }
  .install-card__head { flex-direction: column; align-items: flex-start; }
  .install-card__price { align-items: flex-start; }
  .install-card__list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 20px; }
  .hero__stat strong { font-size: 22px; }
  .gallery-carousel { max-width: 280px; }
  .gallery-arrow { width: 34px; height: 34px; font-size: 18px; }
  .gallery-arrow--prev { left: -8px; }
  .gallery-arrow--next { right: -8px; }
}
