/* ============================================================
   Compuhelp — Oferta 2 años — estilos
   Tokens tomados del design system Compuhelp (colores.css, etc.)
   ============================================================ */

/* Montserrat (tipografía de marca) + IBM Plex Mono (acentos técnicos) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand blue */
  --blue-50:  #e7f2fa;
  --blue-100: #c5dff2;
  --blue-200: #93c3e6;
  --blue-300: #5aa3d6;
  --blue-400: #2986c7;
  --blue-500: #0e75ba;
  --blue-600: #0c63a0;
  --blue-700: #0a5083;
  --blue-800: #0b4169;
  --blue-900: #0a3450;

  /* Brand orange */
  --orange-50:  #fef4e4;
  --orange-100: #fde4bf;
  --orange-200: #fbcd86;
  --orange-300: #f8b44d;
  --orange-400: #f5a128;
  --orange-500: #ef8e0b;
  --orange-600: #cf7708;
  --orange-700: #a35e08;
  --orange-800: #7d4a0c;
  --orange-900: #5a360b;

  /* Ink / warm-neutral */
  --gray-0:   #ffffff;
  --gray-50:  #f7f7f6;
  --gray-100: #efefee;
  --gray-200: #e3e3e1;
  --gray-300: #cfcfcc;
  --gray-400: #9a9a97;
  --gray-500: #666666;
  --gray-600: #525250;
  --gray-700: #474747;
  --gray-800: #2c2c2b;
  --gray-900: #1d1d1b;

  /* Status */
  --green-100: #d9f3e0;
  --green-500: #2a9d54;
  --green-600: #1f7d41;
  --amber-100: #fdeecb;
  --amber-500: #e0a615;
  --amber-600: #b07f08;
  --red-100:   #fbdede;
  --red-500:   #d83b3b;
  --red-600:   #b32a2a;

  /* Semantic aliases */
  --brand-primary: var(--blue-500);
  --brand-primary-hover: var(--blue-600);
  --brand-primary-active: var(--blue-700);
  --brand-accent: var(--orange-500);
  --brand-accent-hover: var(--orange-600);
  --brand-ink: var(--gray-900);

  --text-strong: var(--gray-900);
  --text-body:   var(--gray-700);
  --text-muted:  var(--gray-500);
  --text-faint:  var(--gray-400);
  --text-on-brand: #ffffff;
  --text-on-dark: #f4f4f3;
  --text-on-dark-muted: #b9bcc0;
  --text-link: var(--blue-600);

  --surface-page: var(--gray-50);
  --surface-card: var(--gray-0);
  --surface-sunken: var(--gray-100);

  --border-subtle: var(--gray-200);
  --border-default: var(--gray-300);
  --border-strong: var(--gray-400);

  --status-success: var(--green-500);
  --status-success-bg: var(--green-100);
  --status-danger: var(--red-500);
  --status-danger-bg: var(--red-100);

  --focus-ring: rgba(14,117,186,0.45);
  --ring-focus: 0 0 0 3px var(--focus-ring);

  --gradient-brand: linear-gradient(118deg, var(--orange-500) 0%, var(--blue-500) 100%);

  /* Typography */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Radii / shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-md: 0 8px 20px -6px rgba(29,29,27,0.14), 0 2px 6px rgba(29,29,27,0.08);

  /* Motion */
  --dur-fast: 120ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: color var(--dur-fast) var(--ease-standard),
                       background-color var(--dur-fast) var(--ease-standard),
                       border-color var(--dur-fast) var(--ease-standard),
                       box-shadow var(--dur-fast) var(--ease-standard);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: var(--fw-bold); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }

@keyframes ch-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------- Buttons ---------------- */
.ch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: var(--transition-colors), transform var(--dur-fast) var(--ease-standard);
  user-select: none;
}
.ch-btn:hover { text-decoration: none; }
.ch-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.ch-btn:active { transform: translateY(1px); }
.ch-btn svg, .ch-btn i { width: 1.1em; height: 1.1em; flex: none; }
.ch-btn--sm { font-size: 0.875rem; padding: 7px 14px; }
.ch-btn--lg { font-size: 1.125rem; padding: 13px 24px; border-radius: var(--radius-lg); }
.ch-btn--accent { background: var(--brand-accent); color: #fff; }
.ch-btn--accent:hover { background: var(--brand-accent-hover); color: #fff; }
.ch-btn--secondary { background: var(--surface-card); color: var(--brand-primary); border-color: var(--border-default); }
.ch-btn--secondary:hover { background: var(--blue-50); border-color: var(--blue-300); color: var(--brand-primary); }
.ch-btn--block { display: flex; width: 100%; }

/* ---------------- Badge ---------------- */
.ch-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: 0.75rem; line-height: 1; border-radius: var(--radius-pill);
  padding: 5px 10px; border: 1px solid transparent; white-space: nowrap;
}
.ch-badge--accent { background: var(--orange-50); color: var(--orange-700); }

/* ---------------- Cards / FeatureCard ---------------- */
.ch-card {
  background: var(--surface-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.ch-card--raised { box-shadow: var(--shadow-md); border-color: transparent; }
.ch-card__body { padding: 24px; }
.ch-card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--brand-primary); margin-bottom: 12px;
}
.ch-card--accent-icon .ch-card__icon { background: var(--orange-50); color: var(--brand-accent); }
.ch-card__icon svg, .ch-card__icon i { width: 23px; height: 23px; }
.ch-card__title { font-weight: var(--fw-bold); font-size: 1.125rem; color: var(--text-strong); margin: 0 0 6px; letter-spacing: -0.01em; }
.ch-card__text { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------------- Inputs ---------------- */
.ch-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); }
.ch-field__label { font-size: 0.875rem; font-weight: var(--fw-semibold); color: var(--text-strong); }
.ch-input {
  width: 100%; font-family: var(--font-sans); font-size: 1rem;
  color: var(--text-strong); background: var(--surface-card);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 10px 14px; transition: var(--transition-colors); appearance: none;
}
.ch-input::placeholder { color: var(--text-faint); }
.ch-input:hover { border-color: var(--border-strong); }
.ch-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--ring-focus); }

/* ---------------- Checkbox ---------------- */
.ch-check { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-sans); cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ch-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ch-check__box {
  width: 19px; height: 19px; flex: none; border-radius: 5px; border: 1.5px solid var(--border-strong);
  background: var(--surface-card); display: flex; align-items: center; justify-content: center;
  transition: var(--transition-colors); margin-top: 1px;
}
.ch-check__box i, .ch-check__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard); }
.ch-check input:checked + .ch-check__box { background: var(--brand-primary); border-color: var(--brand-primary); }
.ch-check input:checked + .ch-check__box i, .ch-check input:checked + .ch-check__box svg { opacity: 1; }
.ch-check input:focus-visible + .ch-check__box { box-shadow: var(--ring-focus); }
.ch-check:hover .ch-check__box { border-color: var(--brand-primary); }
.ch-check__label a { color: var(--brand-primary); }
.form-error { display: none; font-size: 13px; color: var(--status-danger); background: var(--status-danger-bg); border-radius: var(--radius-md); padding: 10px 12px; }
.form-error.is-visible { display: block; }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { height: 44px; width: auto; display: block; flex: none; }
.header-right { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.header-phone:hover { color: var(--brand-primary); }
.header-phone i { width: 15px; height: 15px; flex: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--gray-900); }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; z-index: 0; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero::before { background: linear-gradient(118deg, rgba(239,142,11,0.62) 0%, rgba(14,117,186,0.66) 100%); mix-blend-mode: multiply; }
.hero::after { background: linear-gradient(118deg, #EF8E0B80, #1275BAEB); }
.hero-inner {
  position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; padding: 64px 24px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-copy { text-align: left; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: rgba(239,142,11,0.9); padding: 7px 15px; border-radius: 999px; margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ch-pulse 1.8s ease-in-out infinite; }
.hero-copy h1 { font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: #fff; margin: 0 0 20px 0; }
.hero-copy h1 .accent { color: var(--orange-400); }
.hero-copy h1 .hero-line1 { display: block; font-size: 1.35em; line-height: 1.1; margin-bottom: 10px; }
.hero-copy h1 .hero-line2 { display: block; font-size: 0.62em; font-weight: 700; line-height: 1.3; color: rgba(255,255,255,0.9); }
.hero-copy p.lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.86); max-width: 480px; margin: 0 0 30px 0; }

.hero-form-card {
  position: relative; background: var(--surface-card); border-radius: 18px;
  padding: 30px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.hero-form-card .form-fields h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 6px 0; }
.hero-form-card .hero-form-sub { margin: 0 0 20px 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------------- Section shared ---------------- */
.section { max-width: 1040px; margin: 0 auto; padding: 84px 24px 0 24px; }
#opiniones { padding-bottom: 84px; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 12px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); margin: 0; }
.section-sub { font-size: 19px; color: var(--text-muted); margin: 14px auto 0 auto; max-width: 560px; line-height: 1.5; }

/* ---------------- Pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 30px 28px; display: flex; flex-direction: column;
}
.price-card--featured {
  position: relative; border: 2px solid var(--brand-primary);
  box-shadow: 0 20px 42px -24px rgba(14,117,186,0.45);
}
.price-card__badge { position: absolute; top: -14px; left: 28px; }
.price-card__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.price-card__old { font-size: 22px; font-weight: 700; color: var(--gray-400); text-decoration: line-through; margin-bottom: 4px; }
.price-card__amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.price-card--featured .price-card__amount { font-size: 44px; color: var(--brand-primary); }
.price-card__amount .unit { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-card__sub { font-size: 13.5px; color: var(--text-muted); margin: 8px 0 24px 0; }
.price-card__features { display: flex; flex-direction: column; gap: 13px; flex: 1; margin-bottom: 26px; }
.price-card__features div { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-body); line-height: 1.5; }
.price-card__features i { width: 17px; height: 17px; color: var(--gray-400); flex: none; margin-top: 1px; }
.price-card--featured .price-card__features i { color: var(--brand-accent); }
.price-card__flat { margin-top: auto; text-align: center; padding: 12px; border-radius: 10px; border: 1px solid var(--border-default); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.pricing-savings { text-align: center; margin-top: 24px; font-size: 16px; font-weight: 700; color: var(--brand-accent); }

/* ---------------- Offer grid (qué ofrece) ---------------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.offer-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 24px;
}
.offer-card .ch-card__title { margin-bottom: 14px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.offer-list li {
  position: relative; padding-left: 22px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.5;
}
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--brand-accent);
}

/* ---------------- Dark banner (garantía) ---------------- */
.dark-banner {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--gray-900);
  padding: 42px 44px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.dark-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; z-index: 0; }
.dark-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(118deg, rgba(29,29,27,0.88) 0%, rgba(11,65,105,0.86) 100%); }
.dark-banner__icon {
  position: relative; z-index: 2; flex: none; width: 58px; height: 58px; border-radius: 14px;
  background: var(--brand-accent); display: flex; align-items: center; justify-content: center;
}
.dark-banner__icon i { width: 28px; height: 28px; color: #fff; }
.dark-banner__body { position: relative; z-index: 2; flex: 1; min-width: 260px; }
.dark-banner__body h3 { font-size: 21px; font-weight: 700; color: #fff; margin: 0 0 8px 0; }
.dark-banner__body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-on-dark-muted); max-width: 640px; font-weight: 700; }

/* ---------------- Testimonials ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 26px 24px; }
.testimonial-card i.quote { width: 20px; height: 20px; color: var(--brand-accent); display: block; margin-bottom: 12px; }
.testimonial-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-body); margin: 0 0 18px 0; }
.testimonial-card .who { font-size: 13.5px; font-weight: 700; color: var(--text-strong); }
.testimonial-card .where { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ---------------- Form (dentro del hero) ---------------- */
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-align: center; }
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 0; }
.form-success.is-visible { display: flex; }
.form-fields.is-hidden { display: none; }
.form-success__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--status-success-bg); display: flex; align-items: center; justify-content: center; }
.form-success__icon i { width: 24px; height: 24px; color: var(--green-600); }
.form-success h4 { margin: 4px 0 0 0; font-size: 17px; font-weight: 700; color: var(--text-strong); }
.form-success p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--gray-900); padding: 56px 24px 32px 24px; text-align: center; }
.footer-logo-img {
  height: 48px; width: auto; display: block; margin: 0 auto 18px auto;
  filter: brightness(0) invert(1);
}
.footer-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-on-dark-muted); }
.footer-terms {
  max-width: 640px; margin: 24px auto 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-terms h4 {
  margin: 0 0 8px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-on-dark-muted);
}
.footer-terms p { margin: 0; font-size: 11px; line-height: 1.6; color: rgba(185,188,192,0.65); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-copy p.lead { margin-inline: auto; }
  .hero-form-card { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 34px; }
  .section-head h2 { font-size: 26px; }
  .dark-banner { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .site-logo { height: 34px; }
  .header-phone__num { display: none; }
  .header-right { gap: 12px; }
}
