/**
 * Estilos de la página pública de registro demo (/demo).
 * Editar aquí; la vista solo enlaza este archivo.
 */

:root {
    --est-green: #0ea54e;
    --est-green-dark: #0a7c3d;
    --est-green-deep: #064e2f;
    --est-ink: #0f172a;
    --est-muted: #475569;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    position: relative;
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font-body);
    color: var(--est-ink);
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 72% 60% at 0% -15%, rgba(14, 165, 78, 0.14), transparent 52%),
        radial-gradient(ellipse 46% 36% at 100% 0%, rgba(16, 185, 129, 0.09), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.46;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1800'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-240 170c170 0 210 170 390 170s220-170 410-170 230 170 420 170 210-170 400-170 240 170 430 170' stroke='%2386efac' stroke-width='3.8'/%3E%3Cpath d='M-210 520c180 0 190 135 390 135s230-135 420-135 220 135 410 135 215-135 410-135 220 135 420 135' stroke='%236ee7b7' stroke-width='3.1'/%3E%3Cpath d='M-250 900c170 0 210 165 390 165s230-165 420-165 225 165 420 165 210-165 400-165 230 165 430 165' stroke='%23a7f3d0' stroke-width='3.5'/%3E%3Cpath d='M-200 1250c180 0 200 140 390 140s225-140 410-140 225 140 420 140 215-140 405-140 225 140 420 140' stroke='%236ee7b7' stroke-width='3'/%3E%3Cpath d='M-230 1600c180 0 200 145 395 145s225-145 415-145 220 145 415 145 215-145 410-145 220 145 420 145' stroke='%2386efac' stroke-width='3.3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center top;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.34;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(16, 185, 129, 0.2) 0 34px, transparent 35px),
        radial-gradient(circle at 14% 18%, rgba(14, 165, 78, 0.16) 0 14px, transparent 15px),
        radial-gradient(circle at 85% 16%, rgba(52, 211, 153, 0.18) 0 38px, transparent 39px),
        radial-gradient(circle at 79% 23%, rgba(14, 165, 78, 0.14) 0 12px, transparent 13px),
        radial-gradient(circle at 9% 72%, rgba(52, 211, 153, 0.16) 0 42px, transparent 43px),
        radial-gradient(circle at 15% 78%, rgba(14, 165, 78, 0.13) 0 15px, transparent 16px),
        radial-gradient(circle at 90% 76%, rgba(16, 185, 129, 0.18) 0 36px, transparent 37px),
        radial-gradient(circle at 84% 83%, rgba(14, 165, 78, 0.14) 0 13px, transparent 14px);
    background-repeat: no-repeat;
}

.demo-page {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.6rem 1rem 2rem;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.demo-header img {
    width: 158px;
    height: auto;
}

.demo-header a {
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 78, 0.24);
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
}
.demo-header a:hover {
    background: rgba(14, 165, 78, 0.08);
}

.demo-hero {
    position: relative;
    display: grid;
    gap: 1.1rem;
    align-items: start;
}

@media (min-width: 1020px) {
    .demo-hero {
        grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
        gap: 1.35rem;
    }
}

.demo-story {
    position: relative;
    padding: 1.35rem 1.15rem;
}

.demo-story::before {
    content: none;
}

.demo-hero > * { position: relative; z-index: 1; }

.demo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.66rem;
    border-radius: 999px;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #065f46;
    border: 1px solid rgba(14, 165, 78, 0.26);
    background: rgba(236, 253, 245, 0.9);
}

.demo-kicker::before {
    content: "";
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
    background: var(--est-green);
    box-shadow: 0 0 0 4px rgba(14, 165, 78, 0.15);
}

.demo-story h1 {
    margin: 0.72rem 0 0.58rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0f172a;
    max-width: 14ch;
}

.demo-story p {
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.58;
    max-width: 46ch;
}

.demo-benefits {
    list-style: none;
    margin: 0.95rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.44rem;
}

.demo-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.52rem;
    color: #1e293b;
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 600;
}

.demo-benefits li::before {
    content: "✓";
    width: 1.02rem;
    height: 1.02rem;
    margin-top: 0.08rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--est-green), #18b85c);
}

.demo-story-visual {
    margin-top: 0.95rem;
    border-radius: 0.9rem;
    overflow: hidden;
    max-width: 380px;
    background: transparent;
}
.demo-story-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-card {
    align-self: start;
    border-radius: 1.08rem;
    border: 1px solid rgba(14, 165, 78, 0.14);
    background: #fff;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.1);
    padding: 1.2rem 0.95rem;
    height: fit-content;
}

.demo-card h2 {
    margin: 0 0 0.3rem;
    font-size: 1.18rem;
    font-weight: 800;
}

.demo-card p.lead {
    margin: 0 0 0.85rem;
    color: var(--est-muted);
    font-size: 0.81rem;
    line-height: 1.52;
}

.demo-form-grid {
    display: grid;
    gap: 0.72rem;
}
@media (min-width: 680px) {
    .demo-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .demo-span-2 { grid-column: span 2; }
}

.demo-field label {
    display: block;
    margin-bottom: 0.32rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.015em;
}

.demo-field input,
.demo-field select {
    width: 100%;
    height: 2.36rem;
    padding: 0.5rem 0.64rem;
    border-radius: 0.56rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 0.83rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.demo-field input:focus,
.demo-field select:focus {
    outline: none;
    border-color: rgba(14, 165, 78, 0.75);
    box-shadow: 0 0 0 3px rgba(14, 165, 78, 0.14);
}
.demo-field select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}
.demo-field small {
    display: block;
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.65rem;
    line-height: 1.4;
}

.demo-alert {
    margin-bottom: 0.72rem;
    padding: 0.64rem 0.76rem;
    border-radius: 0.6rem;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.79rem;
    line-height: 1.45;
}

.demo-alert ul.demo-alert-list {
    margin: 0;
    padding-left: 1.1rem;
}

.demo-actions {
    margin-top: 0.86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.58rem;
    align-items: center;
}
.demo-actions button {
    width: 100%;
    border: none;
    border-radius: 0.58rem;
    padding: 0.68rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--est-green), #19b95d);
    box-shadow: 0 10px 22px rgba(14, 165, 78, 0.3);
}
.demo-actions button:hover { filter: brightness(1.03); }
.demo-actions a.quiet {
    color: #475569;
    font-size: 0.81rem;
    text-decoration: underline;
}

.bot-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.demo-extra {
    margin-top: 1.4rem;
    display: grid;
    gap: 1.1rem;
}

.demo-band {
    border-radius: 1rem;
    border: 1px solid rgba(14, 165, 78, 0.12);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    padding: 0.95rem;
}

/* Solo esta franja se extiende al ancho completo */
.demo-band--full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-color: rgba(14, 165, 78, 0.18);
    background:
        linear-gradient(180deg, rgba(240, 253, 244, 0.96) 0%, rgba(220, 252, 231, 0.9) 100%);
    box-shadow: none;
    padding: 1.1rem 0;
}

.demo-showcase-inner {
    width: 100%;
    margin: 0;
    padding: 0 1rem 0 1.25rem;
    display: grid;
    gap: 0.88rem;
}
@media (min-width: 900px) {
    .demo-showcase-inner {
        grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
        align-items: center;
        padding-left: clamp(1.5rem, 8vw, 6.75rem);
        padding-right: 0;
    }

    .demo-showcase-inner > :first-child {
        width: min(100%, 52ch);
        margin-left: auto;
        margin-right: auto;
    }
}

.demo-band h3 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.demo-band p {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.55;
}

.demo-band-header {
    max-width: 760px;
    margin-bottom: 0.75rem;
}

.demo-band .demo-cards {
    margin-top: 0.75rem;
}

.demo-band .demo-testimonials-layout {
    margin-top: 0.72rem;
}

.demo-cards {
    display: grid;
    gap: 0.7rem;
}
@media (min-width: 760px) {
    .demo-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.demo-mini-card {
    border-radius: 0.85rem;
    border: 1px solid rgba(14, 165, 78, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.78rem 0.72rem;
}

/* Imagen superior de cada mini tarjeta: solo sustituye el archivo en /public/assets/fotos_demo_page/ */
.demo-media-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 0.65rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(14, 165, 78, 0.12);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.demo-media-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.demo-mini-card h4 {
    margin: 0 0 0.3rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.demo-mini-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.45;
}

.demo-showcase { display: block; }

.demo-showcase-media {
    width: 100%;
    min-height: 300px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: transparent;
    position: relative;
}
.demo-showcase-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}
.demo-showcase-media.demo-showcase-scrub img {
    width: 132%;
    max-width: none;
    height: 100%;
    min-height: 0;
    transform: translate3d(34%, 0, 0);
    transform-origin: 100% 50%;
    will-change: transform;
    object-fit: contain;
    object-position: right center;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
@media (min-width: 900px) {
    .demo-showcase-media,
    .demo-showcase-media img {
        min-height: 340px;
        max-height: 480px;
    }
}
@media (max-width: 900px) {
    .demo-showcase-media.demo-showcase-scrub img {
        width: 148%;
    }
}

.demo-points {
    margin: 0.72rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.42rem;
}

.demo-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #1e293b;
}

.demo-points li::before {
    content: "✓";
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-top: 0.08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--est-green), #19b95d);
}

.demo-testimonials {
    display: grid;
    gap: 0.85rem;
}
@media (min-width: 760px) {
    .demo-testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.demo-testimonials-layout {
    display: grid;
    gap: 0.8rem;
}
@media (min-width: 960px) {
    .demo-testimonials-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: stretch;
    }
}

.demo-collage-wrap {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 78, 0.12);
    aspect-ratio: 5 / 4;
    min-height: 180px;
    max-height: 320px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.demo-collage-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.demo-logo-strip {
    margin-top: 0.72rem;
    border-top: 1px solid rgba(14, 165, 78, 0.14);
    padding-top: 0.72rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}
.demo-logo-imgwrap {
    height: 40px;
    border-radius: 0.5rem;
    border: 1px solid rgba(14, 165, 78, 0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
}
.demo-logo-imgwrap img {
    max-width: 100%;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.demo-quote {
    position: relative;
    margin: 0;
    border-radius: 1rem;
    border: 1px solid rgba(14, 165, 78, 0.16);
    background: linear-gradient(155deg, #ffffff 0%, #f8fafc 45%, #ecfdf5 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 36px rgba(15, 23, 42, 0.07);
    padding: 1.05rem 1rem 1rem 1.28rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.demo-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 1rem 0 0 1rem;
    background: linear-gradient(180deg, var(--est-green), #19b95d);
}

.demo-quote::after {
    content: "\201C";
    position: absolute;
    top: 0.4rem;
    right: 0.85rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(14, 165, 78, 0.11);
    pointer-events: none;
}

@media (hover: hover) {
    .demo-quote:hover {
        border-color: rgba(14, 165, 78, 0.28);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.9) inset,
            0 18px 44px rgba(14, 165, 78, 0.12);
        transform: translateY(-2px);
    }
}

.demo-quote__text {
    margin: 0 0 0.58rem;
    padding-right: 1.75rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.58;
}

.demo-quote__meta {
    margin: 0;
}

.demo-quote__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #047857;
}

.demo-quote__meta span::before {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--est-green), #19b95d);
    box-shadow: 0 0 0 3px rgba(14, 165, 78, 0.12);
}

@media (min-width: 980px) {
    .demo-story { padding: 1.5rem 1.45rem; }
    .demo-card { padding: 1.35rem 1.2rem; }
}
@media (max-width: 1019px) {
    .demo-story h1 { max-width: none; }
    .demo-story-visual { max-width: 100%; }
}
