:root {
  --primario: #4f46e5;
  --primario-oscuro: #3730a3;
  --acento: #06b6d4;
  --texto: #0f172a;
  --texto-suave: #475569;
  --fondo: #ffffff;
  --fondo-alt: #f1f5f9;
  --borde: #e2e8f0;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--texto); background: var(--fondo); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.contenedor { width: min(1120px, 92%); margin: 0 auto; }
.contenedor-estrecho { width: min(760px, 92%); }
.centro { text-align: center; justify-content: center; }

/* Botones */
.boton { display: inline-block; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.boton:hover { transform: translateY(-2px); }
.boton-primario { background: var(--primario); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.boton-primario:hover { background: var(--primario-oscuro); }
.boton-claro { color: var(--primario); }
.boton-claro:hover { background: #eef2ff; }
.boton-borde { border-color: var(--primario); color: var(--primario); }
.boton-borde:hover { background: #eef2ff; }
.boton-blanco { background: #fff; color: var(--primario); }
.boton-borde-blanco { border-color: #fff; color: #fff; }
.boton-borde-blanco:hover { background: rgba(255, 255, 255, .15); }
.boton-grande { padding: .9rem 1.8rem; font-size: 1.05rem; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: #fefefe96; border-bottom: 1px solid var(--borde); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-interno { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1120px, calc(100% - 32px)); height: 60px; }
.marca { display: flex; align-items: center; gap: .5rem; color: #172033; font-weight: 400; font-size: 1rem; text-decoration: none; }
.marca-logo { display: none; align-items: center; justify-content: center; height: 40px; width: auto; max-width: 67px; overflow: hidden; }
.marca-logo.con-imagen { display: inline-flex; background: none; width: auto; height: 40px; border-radius: 0; overflow: hidden; }
.marca-logo img { height: 100%; width: auto; max-width: 67px; object-fit: contain; display: block; }
.pie .marca-logo.con-imagen { height: 46px; }
.marca-texto { font-family: "Pacifico", cursive; font-weight: 400; font-size: 1.5rem; line-height: 1; }
.nombre-marca { font-family: "Pacifico", cursive; font-weight: 400; }
.nav-enlaces { display: flex; gap: 1.4rem; color: #475569; font-size: .9rem; font-weight: 500; }
.nav-enlaces a { text-decoration: none; }
.nav-enlaces a:hover { color: #4f46e5; }
.nav-acciones { display: flex; gap: .5rem; align-items: center; }
.nav-acciones .boton { display: inline-block; padding: .45rem 1rem; border: 2px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 600; line-height: normal; text-decoration: none; transition: transform .15s, background .15s; }
.nav-acciones .boton:hover { transform: translateY(-2px); }
.nav-acciones .boton-primario { background: #4f46e5; color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.nav-acciones .boton-primario:hover { background: #3730a3; }
.nav-acciones .boton-claro { color: #4f46e5; }
.nav-acciones .boton-claro:hover { background: rgba(79, 70, 229, .12); }
.nav-acciones .boton-primario span + span { margin-left: .22em; }
.nav-toggle { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d1e1ef; border-radius: .65rem; background: #fff; cursor: pointer; color: #172033; }
.nav-toggle .ico { width: 22px; height: 22px; }
.menu-movil-acciones { display: none; }

/* Hero */
.hero { padding: 5rem 0 4rem; background: radial-gradient(circle at 80% 10%, #e0e7ff 0, transparent 45%), radial-gradient(circle at 0 90%, #cffafe 0, transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.etiqueta { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: #eef2ff; color: var(--primario); font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
.resaltado { background: linear-gradient(90deg, var(--primario), var(--acento)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--texto-suave); max-width: 560px; }
.hero-botones { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.hero-puntos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--texto-suave); font-size: .95rem; }
.hero-puntos li, .lista-check li { display: flex; align-items: center; gap: .4rem; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; stroke-width: 2.6; color: var(--primario); flex: 0 0 18px; }
.icono .ico { color: var(--primario); }

.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
.dev-grid > * { min-width: 0; }
.dev-grid h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.dev-texto { color: var(--texto-suave); }
.lista-check { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; color: var(--texto-suave); }
.lista-check li { align-items: flex-start; }
.lista-check .ico-sm { margin-top: 3px; }
.codigo { width: 100%; max-width: 100%; min-width: 0; background: #0f172a; color: #e2e8f0; border-radius: var(--radio); box-shadow: 0 20px 45px rgba(15, 23, 42, .25); overflow: hidden; }
.codigo-barra { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: #1e293b; color: #94a3b8; font-size: .85rem; }
.codigo-barra .ico-sm { color: var(--acento); }
.codigo pre { max-width: 100%; min-width: 0; margin: 0; padding: 1.2rem; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.7; }
.codigo pre code { display: block; width: max-content; min-width: 100%; }
.c-k { color: #f472b6; font-weight: 700; }
.c-p { color: #7dd3fc; }
.c-s { color: #86efac; }
.api-notas { display: grid; gap: .65rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--texto-suave); font-size: .9rem; line-height: 1.55; }
.api-notas li { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: start; gap: .65rem; }
.api-nota-punto { width: 9px; height: 9px; margin-top: .42rem; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 3px rgba(255, 95, 87, .14); }
.api-notas li:nth-child(3n + 2) .api-nota-punto { background: #febc2e; box-shadow: 0 0 0 3px rgba(254, 188, 46, .16); }
.api-notas li:nth-child(3n) .api-nota-punto { background: #28c840; box-shadow: 0 0 0 3px rgba(40, 200, 64, .14); }
.api-notas code { color: var(--texto); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }

.mock { background: #fff; border-radius: var(--radio); box-shadow: 0 25px 60px rgba(79, 70, 229, .25); border: 1px solid var(--borde); overflow: hidden; transform: rotate(-2deg); }
.mock-barra { display: flex; justify-content: flex-end; gap: 6px; padding: .7rem 1rem; background: var(--fondo-alt); }
.mock-barra i { width: 10px; height: 10px; border-radius: 50%; }
.mock-barra i:nth-child(1) { background: #ff5f57; }
.mock-barra i:nth-child(2) { background: #febc2e; }
.mock-barra i:nth-child(3) { background: #28c840; }
.mock-cuerpo { display: grid; grid-template-columns: 130px 1fr; min-height: 260px; }
.mock-lateral { display: flex; flex-direction: column; gap: .3rem; padding: 1rem .6rem; border-right: 1px solid var(--borde); font-size: .85rem; color: var(--texto-suave); }
.mock-lateral span { padding: .4rem .6rem; border-radius: 8px; }
.mock-lateral .activo { background: #eef2ff; color: var(--primario); font-weight: 600; }
.mock-lista { padding: .5rem; }
.mock-fila { padding: .7rem; border-bottom: 1px solid var(--borde); font-size: .85rem; }
.mock-fila b { display: block; }
.mock-fila em { font-style: normal; color: var(--texto-suave); }

/* Secciones */
.seccion { padding: 5rem 0; }
.seccion-alt { background: var(--fondo-alt); }
.titulo { text-align: center; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.subtitulo { text-align: center; color: var(--texto-suave); max-width: 620px; margin: 0 auto 2.5rem; }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.tarjeta h3 { font-size: 1.1rem; }
.tarjeta p { margin: 0; color: var(--texto-suave); }
.icono { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem; background: #eef2ff; border-radius: 14px; margin-bottom: 1rem; }

.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.paso { text-align: center; padding: 1.5rem; }
.paso p { color: var(--texto-suave); margin: 0; }
.paso-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primario), var(--acento)); color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 2rem 1.6rem; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.plan.destacado { border: 2px solid var(--primario); box-shadow: 0 20px 45px rgba(79, 70, 229, .2); }
.plan-insignia { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primario); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .9rem; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; text-align: center; margin-bottom: .2rem; }
.plan-precio { text-align: center; margin: 0; color: var(--texto-suave); font-size: .95rem; }
.plan-precio strong { font-size: 2rem; color: var(--texto); }
.plan-precio:not(:has(strong)) { font-size: 1.6rem; font-weight: 700; color: var(--texto); }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; flex: 1; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--borde); color: var(--texto-suave); font-size: .95rem; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--primario); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .boton { text-align: center; }
.cargando { grid-column: 1 / -1; text-align: center; color: var(--texto-suave); }

/* FAQ */
details { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .8rem 0 0; color: var(--texto-suave); }

/* CTA y pie */
.cta { padding: 4.5rem 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--primario), #7c3aed 60%, var(--acento)); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta p { opacity: .9; }
.marca-oficial { display: flex; align-items: center; gap: 1.25rem; max-width: 760px; margin: 2rem auto 0; padding: 1.5rem 1rem 0; border-top: 1px solid rgba(255, 255, 255, .3); text-align: left; }
.marca-oficial-tarjeta { display: flex; align-items: center; gap: 1.25rem; width: 100%; padding: 1rem 1.25rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: rgba(255, 255, 255, .1); }
.marca-oficial-icono { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff; }
.marca-oficial-icono .ico { width: 28px; height: 28px; }
.marca-oficial-texto { flex: 1; min-width: 0; }
.marca-oficial-etiqueta { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .78); font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.marca-oficial h2 { margin: 0 0 6px; color: #fff; font-family: inherit; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.marca-oficial p { margin: 0; color: rgba(255, 255, 255, .9); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.55; }
.marca-oficial-enlace { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 2px solid #fff; border-radius: 999px; background: #fff; color: var(--primario); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.marca-oficial-enlace:hover { transform: translateY(-2px); background: #eef2ff; box-shadow: 0 8px 20px rgba(15, 23, 42, .2); }
.marca-oficial-enlace:focus-visible { outline: 3px solid rgba(165, 243, 252, .75); outline-offset: 3px; }
.marca-oficial-enlace svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-flotante { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: #25d366; color: #fff; font-size: .95rem; font-weight: 700; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.whatsapp-flotante:hover { transform: translateY(-3px); background: #1ebe5d; box-shadow: 0 12px 28px rgba(15, 23, 42, .3); }
.whatsapp-flotante:focus-visible { outline: 3px solid #128c7e; outline-offset: 3px; }
.whatsapp-flotante svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-flotante svg path + path { fill: currentColor; stroke: none; }
.pie { padding: 1.5rem 0; background: #0f172a; color: #cbd5e1; font-size: .9rem; }
.pie-interno { display: flex; flex-direction: column; justify-content: center; flex-wrap: wrap; gap: .5rem; align-items: center; text-align: center; }
.pie-texto { white-space: pre-line; overflow-wrap: anywhere; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .dev-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-interno { width: min(1120px, calc(100% - 32px)); }
  .nav-toggle { display: grid; }
  .nav-enlaces { display: none; position: absolute; top: calc(100% + 8px); right: max(4%, calc((100% - 1120px) / 2)); left: auto; width: min(340px, 92vw); max-height: calc(100vh - 80px); overflow-y: auto; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid #d1e1ef; border-radius: 16px; background: #fcfeff; box-shadow: 0 16px 40px rgba(15, 23, 42, .2); }
  .nav-enlaces.abierto { display: flex; }
  .nav-enlaces > a { padding: 11px 12px; border-radius: 9.6px; font-size: .92rem; font-weight: 600; }
  .nav-enlaces > a:hover, .nav-enlaces > a:focus-visible { background: #e4f0fa; color: #4f46e5; outline: none; }
  .nav-acciones { display: none; }
  .menu-movil-acciones { display: grid; gap: .5rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid #d1e1ef; }
  .menu-movil-acciones .boton { display: block; padding: .75rem 1rem; text-align: center; font-size: .88rem; }
  .menu-movil-acciones .boton-claro { border-color: var(--primario); }
}
@media (max-width: 520px) {
  .nav-interno { height: 56px; gap: .5rem; }
  .marca-logo, .marca-logo.con-imagen { height: 34px; }
  .marca-texto { font-size: 1.25rem; }
  .seccion { padding: 3.5rem 0; }
  .codigo pre { padding: 1rem; font-size: .78rem; }
  .marca-oficial { align-items: stretch; flex-direction: column; gap: 0; margin-top: 1.5rem; padding: 1.25rem 0 0; text-align: center; }
  .marca-oficial-tarjeta { align-items: center; flex-direction: column; gap: 14px; padding: 20px; text-align: center; }
  .marca-oficial-icono { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
  .marca-oficial-icono .ico { width: 24px; height: 24px; }
  .marca-oficial h2 { font-size: 22px; }
  .marca-oficial p { font-size: 15px; }
  .marca-oficial-enlace { width: 100%; }
  .whatsapp-flotante { right: 16px; bottom: 16px; min-height: 50px; padding: 0 15px; font-size: .9rem; }
}
