/* ==========================================================================
   Qarta - hoja de estilos principal
   Birditech Digital S.L.
   ========================================================================== */

/* --------------------------------------------------------------- Tipografia */
@font-face {
    font-family: 'Caviar Dreams';
    src: url('../../src/assets/fonts/CaviarDreams/CaviarDreams.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Caviar Dreams';
    src: url('../../src/assets/fonts/CaviarDreams/CaviarDreams_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../../src/assets/fonts/Montserrat/montserrat-light.woff2') format('woff2'),
         url('../../src/assets/fonts/Montserrat/montserrat-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../../src/assets/fonts/Montserrat/montserrat-regular.woff2') format('woff2'),
         url('../../src/assets/fonts/Montserrat/montserrat-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../../src/assets/fonts/Montserrat/montserrat-semibold.woff2') format('woff2'),
         url('../../src/assets/fonts/Montserrat/montserrat-semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../../src/assets/fonts/Montserrat/montserrat-bold.woff2') format('woff2'),
         url('../../src/assets/fonts/Montserrat/montserrat-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------------ Tokens */
:root {
    /* Marca */
    --ink:            #14132b;
    --purple:         #ab67fa;
    --purple-dark:    #7c3fd6;
    --purple-light:   #cea3ff;
    --lavender:       #ebdaff;
    --lime:           #c1fc6e;
    --lime-light:     #d6ff89;
    --star:           #f2b134;

    /* Superficies */
    --bg:             #ffffff;
    --bg-soft:        #f8f5ff;
    --bg-dark:        #14132b;
    --line:           #ece6f7;
    --line-dark:      rgba(255, 255, 255, .14);

    /* Texto */
    --text:           #23213d;
    --text-muted:     #625d7d;
    --text-invert:    #ffffff;
    --text-invert-mut: rgba(255, 255, 255, .72);

    /* Formas */
    --radius-sm:   10px;
    --radius:      18px;
    --radius-lg:   28px;
    --radius-pill: 999px;

    --shadow-sm:  0 2px 8px rgba(32, 18, 62, .06);
    --shadow:     0 12px 32px rgba(32, 18, 62, .10);
    --shadow-lg:  0 28px 64px rgba(32, 18, 62, .18);

    --gradient:   linear-gradient(120deg, var(--purple) 0%, var(--purple-light) 45%, var(--lime) 100%);

    /* Metrica */
    --container:  1180px;
    --header-h:   76px;
    --section-y:  clamp(4rem, 9vw, 7.5rem);

    --font-display: 'Caviar Dreams', 'Trebuchet MS', sans-serif;
    --font-body:    'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0 0 .6em;
    color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------- Utilidades */
.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--text-invert-mut); }
.section--dark h2, .section--dark h3 { color: var(--text-invert); }

.section-head {
    max-width: 46rem;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}
.section-head p { color: var(--text-muted); font-size: 1.06rem; }
.section--dark .section-head p { color: var(--text-invert-mut); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--purple-dark);
    background: var(--lavender);
    border-radius: var(--radius-pill);
    padding: .4rem 1rem;
    margin-bottom: 1.2rem;
}
.section--dark .eyebrow {
    color: var(--lime);
    background: rgba(193, 252, 110, .12);
}

.grad-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    padding: .95rem 1.7rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--purple-dark); box-shadow: var(--shadow); }

.btn--accent {
    background: var(--lime);
    color: var(--ink);
}
.btn--accent:hover { background: var(--lime-light); box-shadow: 0 12px 28px rgba(193, 252, 110, .35); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--purple); color: var(--purple-dark); }

.section--dark .btn--ghost,
.hero .btn--ghost {
    color: #fff;
    border-color: var(--line-dark);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--block { width: 100%; }

/* ------------------------------------------------------------------ Cabecera */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand { display: flex; align-items: center; }
.brand img { width: 94px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* El CTA del nav solo se muestra dentro del menú desplegable en móvil */
.nav .btn { display: none; }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-cta .btn { padding: .75rem 1.4rem; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    position: relative;
    width: 20px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-invert-mut);
    padding-block: clamp(3.5rem, 8vw, 6rem) 0;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
}
.hero::before {
    width: 42rem; height: 42rem;
    top: -18rem; left: -12rem;
    background: radial-gradient(circle, rgba(171, 103, 250, .85), transparent 70%);
}
.hero::after {
    width: 34rem; height: 34rem;
    bottom: -16rem; right: -10rem;
    background: radial-gradient(circle, rgba(193, 252, 110, .45), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

.hero-copy { max-width: 46rem; margin-inline: auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero-lead {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--text-invert-mut);
    max-width: 40rem;
    margin-inline: auto;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
    margin-top: 2.2rem;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.6rem;
    margin-top: 2.4rem;
    font-size: .88rem;
    color: var(--text-invert-mut);
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges svg { width: 1.05rem; height: 1.05rem; color: var(--lime); flex: none; }

.hero-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: clamp(.5rem, 3vw, 2.5rem);
    max-width: 60rem;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    padding-inline: 1rem;
}
.hero-visual img {
    width: 100%;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
    transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.hero-visual img:hover { transform: translateY(-14px); }
.hero-visual .phone--side { transform: translateY(2.5rem) scale(.9); }
.hero-visual .phone--side:hover { transform: translateY(1.6rem) scale(.92); }

/* -------------------------------------------------------------- Franja valor */
.value-strip {
    background: var(--lavender);
    padding-block: 1.6rem;
}
.value-strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem 3rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
}
.value-strip li { display: flex; align-items: center; gap: .55rem; }
.value-strip svg { width: 1.15rem; height: 1.15rem; color: var(--purple-dark); flex: none; }

/* --------------------------------------------------------------- Como funciona */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.6rem 1.8rem;
    box-shadow: var(--shadow-sm);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -1.1rem; left: 1.6rem;
    width: 2.4rem; height: 2.4rem;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    background: var(--lime);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .96rem; }

/* -------------------------------------------------------------- Caracteristicas */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--purple-light);
}
.feature-icon {
    width: 3.2rem; height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--lavender);
    color: var(--purple-dark);
    margin-bottom: 1.2rem;
}
.feature-icon svg { width: 1.6rem; height: 1.6rem; }
.feature:nth-child(3n+2) .feature-icon { background: #eefbdc; color: #55832a; }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--text-muted); font-size: .96rem; }

/* ---------------------------------------------------------------- Demo */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}
.demo-copy ul {
    display: grid;
    gap: .85rem;
    margin-top: 1.8rem;
}
.demo-copy li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .98rem;
}
.demo-copy li svg {
    width: 1.25rem; height: 1.25rem;
    color: var(--lime);
    flex: none;
    margin-top: .18rem;
}

.phone-frame {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9 / 18.5;
    padding: 14px;
    background: linear-gradient(160deg, #3a3a55, #16162c);
    border-radius: 46px;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, .08) inset;
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 22px; left: 50%;
    transform: translateX(-50%);
    width: 32%; height: 22px;
    background: #16162c;
    border-radius: var(--radius-pill);
    z-index: 2;
}
.phone-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 34px;
    background: #000;
}

/* --------------------------------------------------------------- Planes */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gradient) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}
.plan-tag {
    position: absolute;
    top: -.85rem; right: 1.6rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--lime);
    border-radius: var(--radius-pill);
    padding: .35rem .9rem;
}
.plan h3 { margin-bottom: .35rem; font-size: 1.5rem; }
.plan-desc { color: var(--text-muted); font-size: .94rem; }
.plan-price {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--purple-dark);
    padding: .9rem 0 1.1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.3rem;
}
.plan ul { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.plan li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .94rem;
}
.plan li svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .2rem; }
.plan li.on  { color: var(--text); }
.plan li.on svg  { color: #62a832; }
.plan li.off { color: #a5a1b8; }
.plan li.off svg { color: #cfcbdd; }
.plan .btn { margin-top: auto; }

.plans-note {
    text-align: center;
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* -------------------------------------------------------------- Reseñas */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}
.review {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.review:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--purple-light);
}
.review::before {
    content: 'C';
    position: absolute;
    top: .1rem; right: 1.2rem;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--lavender);
    pointer-events: none;
}

.review-stars {
    display: flex;
    gap: .18rem;
    margin-bottom: 1rem;
}
.review-stars svg {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--star);
    fill: var(--star);
    flex: none;
}

.review blockquote {
    margin: 0 0 1.6rem;
    font-size: .98rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}
.review-avatar {
    width: 2.7rem; height: 2.7rem;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
}
.review-author strong {
    display: block;
    font-size: .94rem;
    color: var(--ink);
    line-height: 1.3;
}
.review-author span {
    display: block;
    font-size: .84rem;
    color: var(--text-muted);
}

/* Marca visual mientras las reseñas sean texto de ejemplo. Al poner las
   reseñas reales, quita el atributo data-ejemplo del HTML. */
.review[data-ejemplo] {
    border-style: dashed;
    border-color: var(--purple-light);
}
.review[data-ejemplo] blockquote { color: var(--text-muted); }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 50rem; margin-inline: auto; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .9rem;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--purple-light); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    width: .6rem; height: .6rem;
    border-right: 2px solid var(--purple);
    border-bottom: 2px solid var(--purple);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex: none;
    margin-right: .3rem;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body {
    padding: 0 1.5rem 1.35rem;
    color: var(--text-muted);
    font-size: .97rem;
}
.faq .faq-body strong { color: var(--text); }

/* ---------------------------------------------------------------- Contacto */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: start;
}
.contact-info h2 { color: #fff; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg {
    width: 1.25rem; height: 1.25rem;
    color: var(--lime);
    flex: none;
    margin-top: .25rem;
}
.contact-list a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--lime); }
.contact-list span {
    display: block;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow-lg);
}
.contact-card h3 { margin-bottom: 1.4rem; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--text);
}
.field input,
.field textarea {
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .8rem .95rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder,
.field textarea::placeholder { color: #a9a4bd; }
.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(171, 103, 250, .16);
}

.field-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .86rem;
    color: var(--text-muted);
}
.field-consent input {
    width: 1.1rem; height: 1.1rem;
    margin-top: .2rem;
    accent-color: var(--purple);
    flex: none;
}

.form-message { grid-column: 1 / -1; }
.form-message:empty { display: none; }
.alert {
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    font-size: .9rem;
}
.alert--ok    { background: #eefbdc; color: #3f6b1c; border: 1px solid #cdeda6; }
.alert--error { background: #fdeceb; color: #963029; border: 1px solid #f6c9c5; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
    background: #0e0d20;
    color: var(--text-invert-mut);
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.site-footer h4 {
    color: #fff;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.site-footer a { color: var(--text-invert-mut); }
.site-footer a:hover { color: var(--lime); text-decoration: none; }
.site-footer ul { display: grid; gap: .6rem; }
.footer-brand img { width: 78px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .9rem; max-width: 26rem; }
.footer-legal-data { font-size: .82rem; color: rgba(255, 255, 255, .5); margin-top: 1.1rem; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-dark);
    font-size: .84rem;
    color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------- Flotante y cookies */
.whatsapp-float {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 90;
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .38);
    transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); background: #1ebe5d; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

.cookie-banner {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 120;
    width: min(100% - 2.4rem, 27rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem 1.5rem;
    transform: translateY(140%);
    transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.cookie-banner p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cookie-actions .btn { padding: .7rem 1.2rem; font-size: .88rem; }
.cookie-actions a.cookie-link { font-size: .84rem; }

/* ------------------------------------------------------------ Animaciones */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 992px) {
    .demo-layout,
    .contact-layout { grid-template-columns: 1fr; }
    .phone-frame { max-width: 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .header-cta .btn--primary { display: none; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: .5rem 1.25rem 1.5rem;
        transform: translateY(-130%);
        transition: transform .35s cubic-bezier(.2, .8, .3, 1);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { transform: translateY(0); }
    .nav a {
        padding: .95rem .25rem;
        border-bottom: 1px solid var(--line);
        font-size: 1.02rem;
    }
    .nav a::after { display: none; }
    .nav .btn {
        display: inline-flex;
        margin-top: 1.1rem;
        border-bottom: 0;
        padding: .95rem 1.7rem;
    }

    .hero-visual { grid-template-columns: 1fr; max-width: 260px; }
    .hero-visual .phone--side { display: none; }

    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .cookie-banner { left: .8rem; bottom: .8rem; width: calc(100% - 1.6rem); }
    .whatsapp-float { right: .9rem; bottom: 5.5rem; }
    .hero-actions .btn { width: 100%; }
}

/* ============================================================ Páginas legales */
.legal-hero {
    background: var(--bg-dark);
    color: var(--text-invert-mut);
    padding-block: clamp(3rem, 7vw, 4.5rem);
    text-align: center;
}
.legal-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: .3em;
}
.legal-hero p { font-size: .95rem; color: var(--text-invert-mut); }

.legal {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.legal .container { width: min(100% - 2.5rem, 52rem); }
.legal section + section { margin-top: 2.6rem; }
.legal h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    padding-left: .9rem;
    border-left: 4px solid var(--purple-light);
    margin-bottom: .8rem;
}
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.legal h4 {
    font-size: .98rem;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.4rem;
    margin-bottom: .4rem;
}
.legal blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.3rem;
    background: var(--bg-soft);
    border-left: 4px solid var(--lime);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}
.legal em { color: var(--text-muted); }
.legal p, .legal li { font-size: .97rem; color: var(--text-muted); }
.legal ul, .legal ol { margin: 0 0 1.1rem 1.2rem; display: grid; gap: .5rem; }
.legal ul li { list-style: none; position: relative; padding-left: 1rem; }
.legal ul li::before {
    content: '';
    position: absolute;
    left: 0; top: .62em;
    width: .38rem; height: .38rem;
    background: var(--purple);
    border-radius: 50%;
}
.legal ol { list-style: decimal; }
.legal ol li { list-style: decimal; }
.legal strong { color: var(--text); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: .92rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.legal th, .legal td { padding: .75rem 1rem; text-align: left; }
.legal th {
    background: var(--lavender);
    color: var(--ink);
    font-weight: 600;
}
.legal tbody tr + tr td { border-top: 1px solid var(--line); }

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 3rem;
    font-weight: 600;
    font-size: .92rem;
}

@media (max-width: 640px) {
    .legal table, .legal thead, .legal tbody, .legal th, .legal td, .legal tr { display: block; width: 100%; }
    .legal thead { display: none; }
    .legal tbody tr {
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        margin-bottom: 1rem;
        padding: .4rem 0;
    }
    .legal tbody tr + tr td { border-top: 0; }
    .legal td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--ink);
        font-size: .8rem;
    }
}

/* ==================================================== Conmutador de ciclo
   Mensual / anual en la sección de planes. */
.ciclo {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.ciclo-caja {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

.ciclo-opcion {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.4rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ciclo-opcion:hover { color: var(--ink); }
.ciclo-opcion.activa {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.ciclo-ahorro {
    padding: .1rem .5rem;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.ciclo-opcion.activa .ciclo-ahorro { background: var(--lime); color: var(--ink); }

.ciclo-nota { font-size: .9rem; color: var(--text-muted); text-align: center; }
.ciclo-nota strong { color: var(--ink); }

/* --------------------------------------------------------- Precio del plan */
.plan-precio {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    margin: .4rem 0 .2rem;
}
.plan-precio .importe {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    /* Evita el salto de la tarjeta al cambiar de ciclo */
    transition: opacity .18s ease;
}
.plan-precio.cambiando .importe { opacity: 0; }
.plan-precio .por { font-size: .95rem; color: var(--text-muted); font-weight: 600; }

.plan-detalle {
    min-height: 2.6em;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
    color: var(--text-muted);
}

.plan-extra {
    margin: -.6rem 0 1.2rem;
    font-size: .84rem;
    color: var(--text-muted);
}


/* =============================================================== Alta
   La pantalla de crear cuenta. Una sola columna centrada: aquí no hay nada
   que mirar aparte del formulario, y cualquier cosa de más es una excusa
   para no terminarlo. */
.alta {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.25rem 4rem;
    background: var(--bg-soft);
}
.alta-caja {
    width: 100%;
    max-width: 480px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 20px);
    padding: 2.25rem;
}
.alta-marca { display: inline-block; margin-bottom: 1.5rem; }
.alta-marca img { height: 30px; }

.alta h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
.alta-ayuda { color: var(--text-muted); margin: 0 0 1.5rem; font-size: .95rem; }

.alta-error {
    background: #fdecec;
    color: #8f1d1d;
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.alta-form { display: flex; flex-direction: column; gap: 1rem; }

.alta-campo { display: flex; flex-direction: column; gap: .35rem; }
.alta-campo > span { font-size: .85rem; font-weight: 600; }
.alta-campo small { color: var(--text-muted); font-size: .78rem; line-height: 1.4; }

.alta-campo input[type="text"],
.alta-campo input[type="email"],
.alta-campo input[type="password"] {
    font: inherit;
    font-size: .95rem;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    width: 100%;
}
.alta-campo input:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 1px;
    border-color: var(--purple);
}

/* La dirección se enseña con su prefijo delante: así se ve que lo que
   escribe es lo que va a llevar el QR, y no un nombre suelto. */
.alta-slug {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.alta-slug > span {
    padding: .7rem .2rem .7rem .85rem;
    color: var(--text-muted);
    font-size: .95rem;
    white-space: nowrap;
}
.alta-slug input { border: 0 !important; border-radius: 0 !important; padding-left: 0 !important; }

.alta-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.alta-nota { color: var(--text-muted); font-size: .78rem; margin: -.6rem 0 0; }

.alta-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    margin-top: .5rem;
}
.alta-plan strong { display: block; font-size: .95rem; }
.alta-plan span { font-size: .8rem; color: var(--text-muted); }
.alta-precio { text-align: right; }
.alta-precio strong { font-size: 1.35rem; }

.alta-cambiar { font-size: .82rem; align-self: flex-start; margin-top: -.5rem; }

.alta-acepto { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; }
.alta-acepto input { margin-top: .2rem; flex: none; }

.alta-boton {
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: .95rem 1.5rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--text-invert);
    cursor: pointer;
}
.alta-boton:hover { background: var(--purple-dark); }

.alta-pie { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* La trampa para robots: fuera de la pantalla, no `display:none`, que algunos
   la detectan. Y sin tabulación, para que nadie llegue a ella con el teclado. */
.alta-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .alta { padding: 1.5rem .9rem 3rem; }
    .alta-caja { padding: 1.5rem; border: 0; }
    .alta-dos { grid-template-columns: minmax(0, 1fr); }
}
