:root {
  --ink: #1b212b;
  --muted: #6b7280;
  --dim: #a3a9b3;
  --line: #e6e8ec;
  --line-strong: #c9ced6;
  --soft: #f6f7f9;
  --bg: #ffffff;
  --logo-filter: none;
  color-scheme: light;
}
/* Modo oscuro: sigue al sistema, salvo que el visitante elija otro con el botón */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ffffff; --muted: #a9b0bb; --dim: #6b7482; --line: #2c3440; --line-strong: #4a5462;
    --soft: #222a35; --bg: #1b212b; --logo-filter: invert(1); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ffffff; --muted: #a9b0bb; --dim: #6b7482; --line: #2c3440; --line-strong: #4a5462;
  --soft: #222a35; --bg: #1b212b; --logo-filter: invert(1); color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  transition: background-color .3s, color .3s;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Enlaces: mismo color del texto, subrayado fino gris que se oscurece al pasar el mouse */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
a:hover { text-decoration-color: var(--ink); }

/* Botones: solo texto subrayado */
.btn {
  display: inline-block;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: padding .2s, opacity .2s;
}
.btn:hover { opacity: .65; }
.btn span { display: inline-block; transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }

/* Encabezado */
header { padding: 24px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
/* Se muestra solo la palabra "creación." del logo; el lema va como texto para que se lea bien */
.logo { display: block; line-height: 0; height: 44px; overflow: hidden; }
.logo img { height: 64px; width: auto; filter: var(--logo-filter); }
header .wrap { align-items: flex-start; }
nav { display: flex; gap: 28px; font-size: 15px; }
.head-right { display: flex; align-items: center; gap: 28px; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; transition: border-color .2s; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }
nav a { text-decoration-color: transparent; }
nav a:hover { text-decoration-color: var(--ink); }

/* Portada */
.hero { min-height: calc(100vh - 116px); min-height: calc(100svh - 116px); display: flex; align-items: center; padding: 24px 0 56px; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-img { width: 100%; height: auto; max-height: calc(100svh - 180px); aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 12px; display: block; background: var(--soft); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
h1 {
  font-size: clamp(34px, min(5.2vw, 8.6vh), 66px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  max-width: 16ch;
  color: var(--dim);
}
h1 b { color: var(--ink); font-weight: 500; }
.clock { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero p { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 24px 0 32px; font-weight: 300; }
.hero .eyebrow { margin-bottom: 20px; }
.hero .actions { display: flex; gap: 36px; flex-wrap: wrap; }

/* Secciones */
section { padding: 110px 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 64px; }
.sec-head .num { font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }

/* Servicios: tarjetas con íconos de línea animados */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; min-height: 440px;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card-num { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.card h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: auto; }
.card .lead { font-weight: 500; margin: 8px 0 10px; }
.card p:last-of-type { color: var(--muted); font-weight: 300; font-size: 15px; }

.ico { width: 104px; height: 104px; margin-top: 28px; overflow: visible; }
.ico * { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.ico circle[r="1.5"] { fill: var(--ink); stroke: none; }

/* 001: bloques que se reacomodan */
.ico-layout .a { animation: lay-a 7s ease-in-out infinite; }
.ico-layout .c { animation: lay-c 7s ease-in-out infinite; }
.ico-layout .b { animation: lay-b 7s ease-in-out infinite; }
@keyframes lay-a { 0%,15%{transform:translate(0,0)} 30%,45%{transform:translate(0,32px)} 60%,75%{transform:translate(35px,32px)} 90%,100%{transform:translate(0,0)} }
@keyframes lay-c { 0%,15%{transform:translate(0,0)} 30%,45%{transform:translate(0,-32px)} 60%,75%{transform:translate(35px,-32px)} 90%,100%{transform:translate(0,0)} }
@keyframes lay-b { 0%,45%{transform:translate(0,0)} 60%,75%{transform:translate(-52px,0)} 90%,100%{transform:translate(0,0)} }

/* 002: cubo que gira */
.ico-cube .outer { animation: spin 18s linear infinite; }
.ico-cube .inner { animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 003: pantalla que pasa de computadora a tablet a celular */
.ico-screen .s1 { animation: screen 8s ease-in-out infinite; }
.ico-screen .s2 { animation: screen 8s ease-in-out infinite; animation-delay: -.35s; opacity: .35; }
@keyframes screen {
  0%,18%   { transform: scale(1, .7); }
  33%,51%  { transform: scale(.62, .92); }
  66%,84%  { transform: scale(.36, 1); }
  100%     { transform: scale(1, .7); }
}

/* 004: ondas */
.ico-ripple .r { animation: ripple 4.5s ease-out infinite; opacity: 0; }
.ico-ripple .r:nth-child(2) { animation-delay: 1.5s; }
.ico-ripple .r:nth-child(3) { animation-delay: 3s; }
@keyframes ripple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* Aparición suave al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ico *, .js .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none; }
}

/* Planes */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { border: 1px solid var(--line); padding: 48px 40px; display: flex; flex-direction: column; }
.plan.featured { background: var(--soft); border-color: var(--soft); }
.plan .tag { font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.plan h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin: 10px 0 24px; }
.price { font-size: 56px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; margin: 36px 0 44px; flex: 1; }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 300; }
.plan li:first-child { border-top: 1px solid var(--line); }
.note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: s; }
.steps div { counter-increment: s; }
.steps div::before { content: "0" counter(s); display: block; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.steps h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.steps p { color: var(--muted); font-weight: 300; font-size: 15px; }

/* Espacio para imagen futura */
.img-slot {
  aspect-ratio: 16 / 7;
  background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 110px;
}

/* Contacto */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 6px; }
input, select, textarea {
  font: inherit; font-weight: 300; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; background: transparent; border-radius: 0;
  outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
select { cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--ink); }
form .btn { justify-self: start; font-size: 17px; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Celular */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 20px; z-index: 10;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 0; font-size: 18px; }
  .hero { padding: 64px 0 90px; }
  section { padding: 80px 0; }
  .sec-head, .plans, form { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { min-height: 380px; }
  .sec-head { gap: 16px; margin-bottom: 44px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plan { padding: 36px 28px; }
  .img-slot { margin-bottom: 80px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
}

/* ---------- Páginas internas ---------- */
header { position: relative; }
nav a[aria-current="page"] { text-decoration-color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; padding: 0 0 4px; border-bottom: 1px solid var(--ink); }

.page-hero { padding: 90px 0 100px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 68px); max-width: 18ch; }
.page-hero p.intro { font-size: 19px; color: var(--muted); max-width: 52ch; margin-top: 28px; font-weight: 300; }

a.card { text-decoration: none; }
.card .more { margin-top: 18px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); align-self: flex-start; padding-bottom: 3px; }

/* Lista de características en dos columnas */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; list-style: none; }
.features li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.features li b { font-weight: 500; }
.features li span { color: var(--muted); font-weight: 300; font-size: 15px; }

/* Interruptor mensual / anual */
.billing { display: inline-flex; gap: 28px; margin-bottom: 48px; font-size: 15px; align-items: baseline; }
.billing button { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 0 0 4px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.billing button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.billing .save { font-size: 13px; color: var(--muted); }

.plans.three { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plans.three .plan { border-radius: 10px; padding: 40px 32px; }
.plans.three .price { font-size: 48px; }
.plan .sub { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 22px; }
.plan .desc { color: var(--muted); font-weight: 300; font-size: 15px; margin: -12px 0 24px; }

/* Tabla de comparación */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); vertical-align: top; }
.compare th { font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.compare td { font-weight: 300; }
.compare tr.ours td { font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* Preguntas frecuentes */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-weight: 300; margin-top: 12px; max-width: 70ch; }

/* Llamado final */
.cta h2 { max-width: 20ch; margin-bottom: 36px; }
.cta .actions { display: flex; gap: 36px; flex-wrap: wrap; }

.contact-info { list-style: none; margin-top: 8px; }
.contact-info li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-info li span { display: block; font-size: 13px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .plans.three, .features, .contact-grid { grid-template-columns: 1fr; }
  .features li { grid-template-columns: 1fr; gap: 4px; }
  .page-hero { padding: 56px 0 72px; }
}
::placeholder { color: var(--dim); }

/* Tarjeta de plantilla con miniatura en vivo */
a.tpl-card { text-decoration: none; border-radius: 10px; }
.tpl-thumb { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; position: relative; pointer-events: none; }
.tpl-thumb iframe { width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; }
a.tpl-card .btn { align-self: flex-start; }

/* Fotos */
.photo { width: 100%; height: auto; display: block; object-fit: cover; border-radius: 12px; background: var(--soft); }
.photo-band { aspect-ratio: 16 / 7; margin-bottom: 110px; }
.page-hero.with-img .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.page-hero.with-img .photo { aspect-ratio: 4 / 3.4; }

@media (max-width: 820px) {
  .hero { min-height: 0; padding: 32px 0 64px; }
  .hero .wrap, .page-hero.with-img .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-img, .page-hero.with-img .photo { aspect-ratio: 4 / 3; max-height: none; }
  .photo-band { aspect-ratio: 4 / 3; margin-bottom: 80px; }
  .head-right { gap: 16px; }
}
/* Pantallas bajas (laptops pequeñas): compactar la portada para que todo quepa */
@media (max-height: 700px) and (min-width: 821px) {
  header { padding: 16px 0; }
  .hero { min-height: calc(100svh - 100px); padding: 8px 0 24px; }
  .hero p { font-size: 16px; margin: 16px 0 22px; }
  .hero .eyebrow { margin-bottom: 12px; }
}

/* Cómo funciona: 3 pasos */
.how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how li { border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px; display: flex; flex-direction: column; }
.how-n { font-size: 56px; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 28px; }
.how h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.how p { color: var(--muted); font-weight: 300; font-size: 15px; margin-bottom: 28px; flex: 1; }
.how .btn { align-self: flex-start; font-size: 15px; }
.hero h1 { font-size: clamp(32px, min(4.6vw, 7.6vh), 58px); max-width: 17ch; }
.hero p strong { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .clock { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58vw; }
  .hero { padding: 16px 0 56px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero p { margin: 18px 0 24px; }
  .hero .actions { gap: 14px 28px; }
}

/* Resumen de pagos */
.calc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.calc-form { display: grid; gap: 28px; }
.calc-intro { font-size: 17px; font-weight: 300; color: var(--muted); }
.calc-intro b { color: var(--ink); font-weight: 500; }
.total-box { border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; background: var(--soft); }
.total-box[hidden], .total-box [hidden] { display: none !important; }
.total-box .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 300; }
.total-box .row b { font-weight: 500; white-space: nowrap; }
.total-box .row.total { font-size: 18px; border-bottom: 0; padding-top: 18px; }
.total-box .row.total span { font-weight: 500; }
.total-box .row.next { border-bottom: 0; border-top: 1px solid var(--line); }
.total-box .row.next b { white-space: normal; text-align: right; }
.total-box .small { font-size: 13px; color: var(--muted); margin-top: 8px; }
.plan .sub b, .plan .plus { font-weight: 500; color: var(--ink); }
.plan .plus { font-size: 14px; margin-top: 10px; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; gap: 28px; } .total-box { padding: 18px; } }

/* Catálogo de plantillas */
.cat-hero { padding-bottom: 48px; }
.cat { border-top: 0; padding-top: 0; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 32px; margin-bottom: 20px; }
.filters input[type=search] { -webkit-appearance: none; }
.cat-count { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.tpl .tpl-thumb { display: block; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; position: relative; background: var(--soft); transition: border-color .2s, transform .2s; }
.tpl .tpl-thumb:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tpl .tpl-thumb iframe { width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.tpl-info { padding-top: 14px; }
.tpl-info .tag { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tpl-info h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 4px 0 12px; }
.tpl-info h3 span { color: var(--muted); font-weight: 300; }
.tpl-actions { display: flex; gap: 22px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.tpl-actions .btn { font-size: 15px; }
.cat-more { text-align: center; margin: 48px 0 24px; }
.cat-more .btn[hidden] { display: none; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr 1fr; } .filters { grid-template-columns: 1fr 1fr; } .filters .search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: 1fr; } }

/* Páginas legales */
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); font-weight: 300; margin-bottom: 10px; }
.legal ul { padding-left: 20px; margin-bottom: 10px; }

.ns { display: grid; gap: 6px; margin-top: -12px; margin-bottom: 8px; font-size: 16px; }
.ns b { font-weight: 500; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; user-select: all; }
