  :root {
    --paper: #F4F1EA;
    --paper-2: #EAE5DA;
    --card: #FFFDF8;
    --ink: #14202B;
    --ink-2: #4A5561;
    --line: #D8D1C3;
    --accent: #D2552A;
    --accent-ink: #FFFFFF;
    --glacier: #2E6B70;
    --night: #0F1820;
    --wa: #1FA855;
    --radius: 18px;
    --max: 1180px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 "Manrope", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
  h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--glacier);
  }
  .eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
    text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,168,85,.7); }
  .btn-ghost { border-color: var(--ink); color: var(--ink); }
  .btn svg { width: 20px; height: 20px; flex: none; }

  /* Nav */
  header.nav { position: sticky; top: 0; z-index: 20; background: rgba(244,241,234,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
  header.nav.scrolled { border-color: var(--line); }
  .nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; }
  .logo img { width: 34px; height: 34px; border-radius: 50%; }
  .nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 600; }
  .nav-links a { text-decoration: none; color: var(--ink-2); }
  .nav-links a:hover { color: var(--ink); }
  .nav .btn { padding: 10px 18px; font-size: 14px; }

  /* Hero */
  .hero { padding: 64px 0 90px; }
  .hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(40px, 5.6vw, 70px); margin: 18px 0 22px; }
  .hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
  .hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-proof span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

  .stage { position: relative; aspect-ratio: 1.12; }
  .laptop {
    position: absolute; left: 0; top: 4%; width: 88%;
    background: var(--night); border-radius: 14px; padding: 10px 10px 12px;
    box-shadow: 0 40px 70px -30px rgba(15,24,32,.55);
    transform: rotate(-2deg);
  }
  .laptop .bar { display: flex; gap: 6px; padding: 2px 4px 9px; }
  .laptop .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A4651; }
  .laptop img { border-radius: 6px; aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
  .phone {
    position: absolute; right: 0; bottom: 0; width: 34%;
    background: var(--night); border-radius: 30px; padding: 8px;
    box-shadow: 0 40px 60px -24px rgba(15,24,32,.6);
    transform: rotate(4deg);
  }
  .phone img { border-radius: 23px; aspect-ratio: 9/19; object-fit: cover; object-position: top; width: 100%; }
  .badge {
    position: absolute; left: 6%; bottom: 6%; background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 18px 40px -20px rgba(15,24,32,.4); font-size: 14px; line-height: 1.3;
  }
  .badge b { display: block; font-size: 15px; }
  .badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; flex: none; }
  .badge .dot svg { width: 20px; height: 20px; }

  /* Sections */
  section { padding: 96px 0; }
  .sec-head { max-width: 720px; margin-bottom: 52px; }
  .sec-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin-top: 14px; }
  .sec-head p { color: var(--ink-2); font-size: 18px; margin: 18px 0 0; }

  /* Valor */
  .value { background: var(--night); color: #E9E4D8; }
  .value .eyebrow { color: #8FC3C6; }
  .value .sec-head p { color: #A9B3BC; }
  .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #22303C; border-radius: var(--radius); overflow: hidden; }
  .value-item { background: var(--night); padding: 34px 30px; }
  .value-item .num { font-family: "Fraunces", serif; font-size: 44px; color: var(--accent); line-height: 1; }
  .value-item h3 { font-size: 23px; margin: 16px 0 10px; color: #fff; }
  .value-item p { margin: 0; color: #A9B3BC; font-size: 16px; }

  /* Trabajos */
  .work { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
  .work:first-of-type { border-top: 0; padding-top: 0; }
  .work.flip .work-shot { order: 2; }
  .work-shot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); padding: 10px; box-shadow: 0 30px 60px -32px rgba(15,24,32,.5); text-decoration: none; display: block; }
  .work-shot img { border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; transition: transform .5s; }
  .work-shot:hover img { transform: scale(1.02); }
  .work-shot .tag { position: absolute; top: 22px; left: 22px; background: rgba(255,253,248,.95); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
  .work-info .kind { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--glacier); }
  .work-info h3 { font-size: clamp(28px, 3vw, 38px); margin: 10px 0 14px; }
  .work-info > p { color: var(--ink-2); margin: 0 0 22px; }
  .feats { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
  .feats li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 16px; }
  .feats li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
  .feats b { font-weight: 700; }
  .link-arrow { font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

  /* Servicios */
  .services { background: var(--paper-2); }
  .svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  .svc .ic { width: 48px; height: 48px; border-radius: 14px; background: #F6E3DA; color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
  .svc .ic svg { width: 24px; height: 24px; }
  .svc h3 { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 8px; letter-spacing: 0; }
  .svc p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

  /* Paquetes */
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
  .plan.featured { background: var(--night); color: #E9E4D8; border-color: var(--night); transform: translateY(-10px); box-shadow: 0 40px 70px -36px rgba(15,24,32,.7); }
  .plan .ribbon { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
  .plan .for { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
  .plan.featured .for { color: #A9B3BC; }
  .plan h3 { font-size: 30px; }
  .price { margin: 22px 0 6px; font-family: "Fraunces", serif; font-size: 40px; line-height: 1; }
  .price small { font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 6px; }
  .plan.featured .price small { color: #A9B3BC; }
  .when { font-size: 14px; font-weight: 600; color: var(--glacier); margin-bottom: 22px; }
  .plan.featured .when { color: #8FC3C6; }
  .plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15.5px; flex: 1; }
  .plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
  .plan li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
  .plan .btn { width: 100%; }
  .plan:not(.featured) .btn { background: var(--ink); color: #fff; }
  .maint { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--card); border: 1px dashed var(--accent); border-radius: 22px; padding: 26px 30px; }
  .maint h3 { font-size: 24px; }
  .maint p { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
  .maint .from { font-family: "Fraunces", serif; font-size: 28px; white-space: nowrap; }
  .maint .from small { font-family: "Manrope", sans-serif; font-size: 14px; color: var(--ink-2); }
  .note { font-size: 14px; color: var(--ink-2); margin-top: 18px; }

  /* Proceso */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
  .step { border-top: 2px solid var(--ink); padding-top: 22px; }
  .step::before { counter-increment: s; content: "0" counter(s); font-family: "Fraunces", serif; font-size: 18px; color: var(--accent); }
  .step h3 { font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 700; margin: 12px 0 8px; letter-spacing: 0; }
  .step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

  /* FAQ */
  .faq { background: var(--paper-2); }
  .faq-list { max-width: 820px; }
  details { border-bottom: 1px solid var(--line); padding: 4px 0; }
  summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .2s; }
  details[open] summary::after { transform: rotate(45deg); }
  details p { margin: 0 0 22px; color: var(--ink-2); max-width: 700px; }

  /* CTA final */
  .final { background: var(--night); color: #fff; text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
  .final::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at center, rgba(210,85,42,.35), transparent 60%); pointer-events: none; }
  .final .wrap { position: relative; }
  .final h2 { font-size: clamp(34px, 5vw, 60px); max-width: 820px; margin: 16px auto 20px; }
  .final p { color: #A9B3BC; font-size: 18px; max-width: 560px; margin: 0 auto 34px; }
  .final .eyebrow { color: #8FC3C6; }

  footer { background: var(--night); color: #7E8A95; font-size: 14px; border-top: 1px solid #22303C; }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
  footer a { color: #C9D1D8; text-decoration: none; }

  .wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31,168,85,.8); transition: transform .15s; }
  .wa-float:hover { transform: scale(1.06); }
  .wa-float svg { width: 30px; height: 30px; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

  @media (max-width: 960px) {
    .nav-links { display: none; }
    .hero { padding: 36px 0 64px; }
    .hero-grid, .work { grid-template-columns: 1fr; gap: 36px; }
    .work.flip .work-shot { order: 0; }
    .value-grid, .svc-grid, .plans { grid-template-columns: 1fr; }
    .plan.featured { transform: none; margin-top: 10px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .maint { grid-template-columns: 1fr; gap: 14px; }
    section { padding: 72px 0; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    body { font-size: 16px; }
    .steps { grid-template-columns: 1fr; }
    .nav .btn span { display: none; }
    .nav .btn { padding: 10px 12px; }
    .hero-ctas .btn { width: 100%; }
    .badge { left: 0; bottom: -4%; font-size: 13px; padding: 10px 12px; }
  }


/* Hero links to the subpages */
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.hero-links a { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .15s; }
.hero-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* Subpages */
.page-back { padding-top: 28px; }
.page-back a { font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.page-back a:hover { color: var(--accent); }
.subpage > section:first-of-type { padding-top: 40px; }
.subpage > section.services:first-of-type, .subpage > section.faq:first-of-type { background: transparent; }
@media (max-width: 560px) { .hero-links { gap: 12px 20px; } }
