:root {
    --blue: #74b6e7;
    --rose: #e28d98;
    --ink: #26323d;
    --muted: #66717b;
    --cream: #f9f8f6;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #357dac;
}

.textfloat{
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-self: center;
    bottom: -10px;
    animation: pulse 4.2s infinite;
}

@keyframes pulse{
    0%{
        transform: scale(0.9);
    }

    50%{
        transform: scale(1);
    }

    100%{
        transform: scale(0.9);
    }
}

.deslizatxt{
    background: #ffffff00;
    border-radius: 44px;
    backdrop-filter: blur(10px);
    padding: 5px 15px;
    box-shadow: 2px 3px 5px #0000003d;
}

.shell {
    width: min(100% - 9vw, 1370px);
    margin-inline: auto;
}

.site-nav {
    padding: 17px 0;
    background: rgba(249, 248, 246, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(45, 60, 72, .06);
    z-index: 100;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.8px;
    white-space: nowrap;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    font-size: 22px;
    color: var(--rose);
    display: inline-block;
    vertical-align: 2px;
    margin-right: 6px;
}

.brand-dot {
    color: var(--blue);
}

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #46545f;
}

.navbar-nav .nav-link:hover {
    color: #428cbf;
}

.btn {
    border: 0;
    border-radius: 100px;
    padding: 15px 26px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .25s, box-shadow .25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn span,
.inline-link span,
.text-link span {
    margin-left: 18px;
}

.btn-rose {
    background: #f5e4e6;
    color: #a65c67;
}

.btn-rose:hover {
    background: #e28d98;
    color: white;
}

.btn-blue {
    background: var(--blue);
    color: #17394d;
    box-shadow: 0 12px 28px rgba(116, 182, 231, .28);
}

.btn-blue:hover {
    background: #5faadd;
    color: white;
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

.experience-track {
    position: relative;
    isolation: isolate;
}

.story-section {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px 0 80px;
    overflow: hidden;
}

.section-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: calc(100svh - 210px);
    z-index: 2;
    pointer-events: none;
}

.story-copy {
    max-width: 500px;
    pointer-events: auto;
}

.story-section[data-side="left"] .story-copy {
    grid-column: 2;
    justify-self: end;
}

.story-section[data-side="right"] .story-copy {
    grid-column: 1;
}

.hero {
    background:
        radial-gradient(
            circle at 79% 36%,
            #e8f2f5 0,
            transparent 36%
        ),
        #faf9f7;
}

.hero::after {
    content: "";
    position: absolute;
    width: 35vw;
    height: 35vw;
    right: -11vw;
    top: 0;
    border: 1px solid rgba(116, 182, 231, .18);
    border-radius: 50%;
}

.hero-copy {
    max-width: 570px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.8px;
    color: #81949c;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--rose);
}

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.16;
}

h1 {
    font-size: clamp(48px, 5.15vw, 85px);
    margin: 29px 0 28px;
}

h1 em,
h2 em {
    font-weight: 400;
    color: var(--rose);
}

.lead-copy,
.story-copy > p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--muted);
    max-width: 460px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 27px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.text-link,
.inline-link {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.text-link:hover,
.inline-link:hover {
    color: #438cbf;
}

.hero-note {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 72px;
    font-size: 12px;
    line-height: 1.5;
    color: #7b8790;
}

.hero-note strong {
    color: #46545f;
    font-weight: 600;
}

.note-stars {
    color: var(--rose);
    font-size: 23px;
    letter-spacing: 4px;
}

.scroll-hint {
    position: absolute;
    left: 4.5vw;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #97a5aa;
    z-index: 3;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: #aab5ba;
}

.tone-blue {
    background: #eff6f9;
}

.tone-blush {
    background: #fbf1f1;
}

.tone-sky {
    background: #f1f7f5;
}

.feature-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(116, 182, 231, .15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.section-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #609ac2;
}

.feature-section h2 {
    font-size: clamp(44px, 4.4vw, 68px);
    margin: 25px 0;
}

.feature-section p {
    margin-bottom: 32px;
}

.feature-list {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #cddce3;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid #cddce3;
    font-size: 14px;
    font-weight: 600;
}

.feature-list li span {
    font-size: 11px;
    color: var(--rose);
    margin-right: 22px;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    color: #4c9dce;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    max-width: 100%;
    padding: 18px 24px;
    margin: 35px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 50px rgba(63, 78, 90, .07);
}

.mini-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fae8eb;
    color: #d37786;
    font-size: 28px;
}

.mini-card strong,
.mini-card small {
    display: block;
}

.mini-card strong {
    font-size: 13px;
}

.mini-card small {
    font-size: 12px;
    color: #8a969d;
    margin-top: 5px;
}

.quote-line {
    max-width: 360px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: #7a8d91;
    margin: 36px 0;
}

.quote-line span {
    font-size: 56px;
    color: var(--rose);
    line-height: 0;
    vertical-align: -20px;
    margin-right: 6px;
}

/*
 * El escenario viaja dentro de #recorrido.
 * Las tarjetas de contenido siempre tienen prioridad visual.
 */

.device-stage {
    position: fixed;
    z-index: 1;
    left: var(--stage-x, 74%);
    top: var(--stage-y, 40%);
    width: var(--stage-w, min(58vw, 800px));
    height: var(--stage-h, 470px);
    transform:
        translate(-50%, -50%)
        rotate(var(--stage-rotation, 0deg));
    pointer-events: none;
    opacity: 0;
    transition:
        opacity .35s,
        left .65s cubic-bezier(.22, 1, .36, 1),
        top .65s cubic-bezier(.22, 1, .36, 1),
        width .65s,
        height .65s,
        transform .65s;
    will-change: transform, left;
}

.device-stage.is-visible {
    opacity: 1;
}

.device-glow {
    position: absolute;
    inset: 5% 0;
    background:
        radial-gradient(
            ellipse,
            #cae5f3 0,
            rgba(226, 141, 152, .17) 40%,
            transparent 72%
        );
    filter: blur(24px);
    transform: scale(1.18);
}

.device {
    position: absolute;
    filter: drop-shadow(0 28px 25px rgba(33, 47, 56, .16));
    transition:
        opacity .5s,
        transform .65s,
        left .65s,
        top .65s,
        width .65s;
    transform-style: preserve-3d;
}

.device-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.device-screen {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    background: #fff;
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s, transform .6s;
}

.device-screen img.changing {
    opacity: 0;
    transform: scale(1.05);
}

.device-laptop {
    width: 100%;
    left: -20px;
    top: 19%;
    transform:
        perspective(1100px)
        rotateY(-5deg)
        rotateX(3deg);
}

.device-laptop .device-screen {
    left: 9.82%;
    top: 6.28%;
    width: 80.15%;
    height: 68.45%;
}

.device-tablet {
    width: 34%;
    left: 1%;
    top: 50%;
    z-index: 3;
    transform:
        perspective(900px)
        rotateY(8deg)
        rotateZ(-3deg);
}

.device-tablet .device-screen {
    left: 4.46%;
    top: 2.97%;
    width: 90.26%;
    height: 93.5%;
    border-radius: 3%;
}

.device-phone {
    width: 17%;
    left: 32%;
    top: 71%;
    z-index: 4;
    transform:
        perspective(900px)
        rotateY(-10deg)
        rotateZ(4deg);
}

.device-phone .device-screen {
    left: 5.9%;
    top: 2.38%;
    width: 88.18%;
    height: 94.9%;
    border-radius: 11%;
}

.device-stage.is-single {
    --stage-w: min(47vw, 690px);
    --stage-h: 430px;
}

.is-single .device-laptop {
    top: 22%;
    transform:
        perspective(1100px)
        rotateY(-7deg)
        rotateX(4deg);
}

.is-single .device-tablet,
.is-single .device-phone {
    opacity: 0;
    transform: translateY(-80px) scale(.72);
    visibility: hidden;
    transition:
        opacity .45s,
        transform .65s,
        visibility 0s .6s;
}

.contact-section {
    position: relative;
    z-index: 5;
    background: #eaf3f7;
    min-height: 660px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 110px 20px;
}

.contact-inner {
    position: relative;
    max-width: 780px;
}

.contact-decoration {
    font-size: 54px;
    color: var(--rose);
    margin-bottom: 10px;
}

.centered {
    justify-content: center;
}

.contact-section h2 {
    font-size: clamp(46px, 5.3vw, 74px);
    margin: 25px 0;
}

.contact-section p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 525px;
    margin: 0 auto 30px;
}

.btn-dark-custom {
    background: var(--ink);
    color: #fff;
}

.btn-dark-custom:hover {
    background: #465b6b;
    color: #fff;
}

.contact-section small {
    display: block;
    font-size: 10px;
    color: #8c9ba4;
    margin-top: 20px;
}

.site-footer {
    background: #f8f7f5;
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #8b959c;
}


/* =========================================
   TABLET / DESKTOP PEQUEÑO
   ========================================= */

@media (max-width: 991px) {

    .site-nav {
        padding: 10px 0;
    }

    .navbar-collapse {
        padding: 18px 0;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .nav-cta {
        margin-top: 12px;
    }

    .story-section {
        padding-top: 100px;
    }

    .device-stage {
        --stage-w: 51vw;
        --stage-h: 490px;
    }

    .device-stage.is-single {
        --stage-w: min(44vw, 410px);
        --stage-h: 490px;
    }

    .device-stage.is-single .device-laptop,
    .device-stage.is-single .device-phone {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50px) scale(.72);
    }

    .device-stage.is-single .device-tablet {
        opacity: 1;
        visibility: visible;
        width: 78%;
        left: 11%;
        top: 0;
        transform:
            perspective(900px)
            rotateY(-5deg);
        transition:
            opacity .45s,
            transform .65s,
            left .65s,
            top .65s,
            width .65s;
    }

    .hero-copy {
        max-width: 430px;
    }

    h1 {
        font-size: clamp(46px, 6vw, 65px);
    }

    .feature-section h2 {
        font-size: clamp(40px, 5vw, 56px);
    }
}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 767px) {

    .shell {
        width: min(100% - 40px, 560px);
    }

    .story-section {
        min-height: 900px;
        min-height: 110svh;
        align-items: flex-end;
        padding: 0px 0 55px;
    }

    .section-grid {
        display: block;
        min-height: 0;
        width: 100%;
    }

    .story-copy,
    .hero-copy {
        position: relative;
        z-index: 3;
        max-width: 100%;
        padding: 25px 22px;
        background: #ffffff00;
        backdrop-filter: blur(18px);
        border-radius: 22px;
        /* box-shadow: 0 15px 45px rgba(58, 74, 87, .07); */
    }

    .hero {
        min-height: 850px;
        min-height: 105svh;
    }

    .hero-copy {
        /* background: rgba(250, 249, 247, .95); */
        padding: 20px 8px 20px;
    }

    .hero .section-grid {
        align-self: flex-start;
        padding-top: 20px;
    }

    .hero h1 {
        font-size: clamp(43px, 10.5vw, 65px);
        margin: 18px 0;
    }

    .lead-copy,
    .story-copy > p {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        margin-top: 20px;
        gap: 15px;
        justify-content: center;
    }

    .hero-note {
        display: none;
    }

    .scroll-hint {
        display: none;
    }

    .feature-section h2 {
        font-size: clamp(39px, 9vw, 55px);
        margin: 15px 0;
    }

    .feature-list li {
        padding: 11px 0;
    }

    .feature-section p {
        margin-bottom: 18px;
    }

    .device-stage {
        --stage-w: min(90vw, 380px);
        --stage-h: 280px;
        --stage-y: 69%;
        left: var(--stage-x, 72%);
    }

    .device-stage.is-single {
        --stage-w: min(42vw, 210px);
        --stage-h: 43svh;
        --stage-y: 34%;
    }

    .device-stage.is-single .device-laptop,
    .device-stage.is-single .device-tablet {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50px) scale(.7);
    }

    .device-stage.is-single .device-phone {
        opacity: 1;
        visibility: visible;
        width: 100%;
        left: 0;
        top: -80px;
        transform:
            perspective(850px)
            rotateY(-7deg);
        transition:
            opacity .45s,
            transform .65s,
            left .65s,
            top .65s,
            width .65s;
    }

    .device-stage:not(.is-single) .device-laptop {
        top: 15%;
    }

    .device-stage:not(.is-single) .device-tablet {
        width: 39%;
        left: 0;
    }

    .device-stage:not(.is-single) .device-phone {
        width: 23%;
        left: 35%;
        top: 67%;
    }

    .contact-section {
        min-height: 540px;
    }

    .footer-inner {
        flex-wrap: wrap;
    }

    .footer-inner span:nth-child(2) {
        display: none;
    }
}


/* =========================================
   MÓVILES PEQUEÑOS
   ========================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 41px;
    }

    .hero-actions .btn {
        padding: 13px 18px;
    }

    .device-stage {
        --stage-w: 55vw;
    }

    .device-stage.is-single {
        --stage-w: 40vw;
    }
}


/* =========================================
   REDUCIR ANIMACIONES
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}