/* =========================================================
   REDISEÑO WEB — HERO
========================================================= */

.rw-hero {
    position: relative;

    min-height: 100svh;

    overflow: hidden;

    background: #080a0d;
    color: #fff;
}

.rw-hero__background {
    position: absolute;
    inset: 0;

    pointer-events: auto;
}

.rw-hero__grid {
    position: absolute;
    inset: 0;

    opacity: .2;

    background-image:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

    background-size: 80px 80px;
}

.rw-hero__glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(120px);
}

.rw-hero__glow--orange {
    width: 650px;
    height: 650px;

    right: 7%;
    top: 5%;

    background:
        rgba(255,101,0,.15);
}

.rw-hero__glow--green {
    width: 450px;
    height: 450px;

    right: 35%;
    bottom: -15%;

    background:
        rgba(21,148,71,.10);
}


/* CONTENEDOR */

.rw-hero__inner {
    position: relative;
    z-index: 2;

    width:
        min(
            calc(100% - 64px),
            1500px
        );

    min-height: 100svh;

    margin: auto;

    padding:
        clamp(130px, 14vh, 170px)
        0
        50px;

    display: flex;
    flex-direction: column;
}


/* TOP */

.rw-hero__top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.rw-hero__eyebrow {
    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .14em;
    text-transform: uppercase;

    color:
        rgba(255,255,255,.72);
}

.rw-hero__eyebrow > span {
    width: 35px;
    height: 2px;

    background:
        var(--td-orange, #ff6500);
}

.rw-hero__chapter {
    font-size: 9px;

    font-weight: 600;

    letter-spacing: .13em;

    text-transform: uppercase;

    color:
        rgba(255,255,255,.45);
}


/* CONTENT */

.rw-hero__content {
    flex: 1;

    display: grid;

    grid-template-columns:
        minmax(0,.85fr)
        minmax(620px,1.15fr);

    align-items: center;

    gap:
        clamp(
            60px,
            7vw,
            120px
        );
}


/* COPY */

.rw-hero__label {
    display: block;

    margin-bottom: 23px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;

    color:
        var(--td-green, #159447);
}

.rw-hero__copy h1 {
    margin: 0;

    max-width: 850px;

    font-size:
        clamp(
            54px,
            6vw,
            102px
        );

    font-weight: 700;

    line-height: .88;

    letter-spacing: -.062em;
}

.rw-hero__copy h1 span,
.rw-hero__copy h1 strong {
    display: block;
}

.rw-hero__copy h1 span {
    color:
        rgba(255,255,255,.48);
}

.rw-hero__copy h1 strong {
    margin-top: 13px;

    color:
        var(--td-orange, #ff6500);
}

.rw-hero__copy p {
    max-width: 610px;

    margin:
        38px
        0
        0;

    font-size: 15px;

    line-height: 1.8;

    color:
        rgba(255,255,255,.74);
}


/* BUTTONS */

.rw-hero__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 38px;
}

.rw-button {
    min-height: 58px;

    padding:
        0
        25px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 23px;

    border-radius: 100px;

    font-size: 12px;

    font-weight: 600;

    transition:
        transform .4s ease,
        background .4s ease,
        border-color .4s ease;
}

.rw-button--primary {
    background:
        var(--td-orange, #ff6500);

    color: #fff;
}

.rw-button--primary:hover {
    transform:
        translateY(-3px);

    background: #ed5e00;
}

.rw-button--ghost {
    border:
        1px solid
        rgba(255,255,255,.18);

    color:
        rgba(255,255,255,.82);
}

.rw-button--ghost:hover {
    border-color:
        var(--td-green, #159447);

    background:
        rgba(21,148,71,.08);

    transform:
        translateY(-3px);
}


/* TAGS */

.rw-hero__tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 34px;
}

.rw-hero__tags span {
    padding:
        7px
        11px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 100px;

    font-size: 9px;

    color:
        rgba(255,255,255,.60);
}


/* =========================================================
   BEFORE / AFTER
========================================================= */

.rw-compare {
    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.rw-compare__frame {
    position: relative;

    width: min(100%, 760px);

    aspect-ratio: 16 / 10;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 18px;

    background: #111317;

    box-shadow:
        0 50px 110px
        rgba(0,0,0,.45);
}


/* BROWSER */

.rw-compare__browser-bar {
    position: absolute;

    z-index: 10;

    top: 0;
    left: 0;
    right: 0;

    height: 50px;

    padding:
        0
        18px;

    display: grid;

    grid-template-columns:
        90px
        1fr
        90px;

    align-items: center;

    background: #16181c;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);
}

.rw-compare__browser-bar > div {
    display: flex;
    gap: 6px;
}

.rw-compare__browser-bar > div span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.18);
}

.rw-compare__browser-bar > div span:first-child {
    background:
        var(--td-orange, #ff6500);
}

.rw-compare__browser-bar small {
    justify-self: center;

    color:
        rgba(255,255,255,.35);
}


/* BEFORE / AFTER */

.rw-compare__before,
.rw-compare__after {
    position: absolute;

    inset:
        50px
        0
        0;
}


/* ANTES */

.rw-compare__before {
    background: #ddd;
}

.rw-oldsite {
    min-height: 100%;

    padding: 22px;

    background: #e5e5e5;

    color: #444;

    font-family: Arial, sans-serif;
}

.rw-oldsite__header {
    padding: 15px;

    display: flex;

    justify-content: space-between;

    border:
        1px solid #bbb;

    background: #fff;

    font-size: 11px;
}

.rw-oldsite__header span {
    color: #777;
}

.rw-oldsite__hero {
    padding:
        55px
        30px;

    margin-top: 15px;

    border:
        1px solid #bbb;

    background: #ccc;

    text-align: center;
}

.rw-oldsite__hero strong {
    display: block;

    margin-bottom: 12px;

    font-size: 25px;
}

.rw-oldsite__hero p {
    font-size: 12px;
}

.rw-oldsite__columns {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 12px;

    margin-top: 15px;
}

.rw-oldsite__columns span {
    height: 100px;

    background: #bbb;
}


/* DESPUÉS */

.rw-compare__after {
    width: 100%;

    overflow: hidden;

    background:
        #0b0d10;
}

.rw-newsite {
    width: 100%;

    min-height: 100%;

    padding: 25px;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(21,148,71,.15),
            transparent 30%
        ),
        #0b0d10;
}

.rw-newsite__nav {
    display: flex;

    justify-content: space-between;

    font-size: 10px;

    color:
        rgba(255,255,255,.65);
}

.rw-newsite__hero {
    max-width: 520px;

    padding:
        75px
        25px
        50px;
}

.rw-newsite__hero small {
    color:
        var(--td-green, #159447);
}

.rw-newsite__hero strong {
    display: block;

    margin:
        17px
        0
        25px;

    font-size: 43px;

    line-height: .95;

    letter-spacing: -.05em;

    color: #fff;
}

.rw-newsite__hero span {
    font-size: 9px;

    color:
        var(--td-orange, #ff6500);
}

.rw-newsite__cards {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;
}

.rw-newsite__cards span {
    height: 95px;

    border:
        1px solid
        rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.035);
}


/* DIVISOR */

.rw-compare__divider {
    position: absolute;

    z-index: 12;

    top: 50px;
    bottom: 0;
    left: 50%;

    width: 2px;

    background: #fff;

    transform:
        translateX(-50%);

    pointer-events: none;
}

.rw-compare__divider span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translate(-50%,-50%);

    border-radius: 50%;

    background:
        var(--td-orange, #ff6500);

    color: #fff;

    font-size: 17px;
}


/* LABELS */

.rw-compare__label {
    position: absolute;

    z-index: 20;

    top: 55px;

    padding:
        8px
        12px;

    border-radius: 100px;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .13em;
}

.rw-compare__label--before {
    left: 15px;

    background: #fff;
    color: #222;
}

.rw-compare__label--after {
    right: 15px;

    background:
        var(--td-green, #159447);

    color: #fff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .rw-hero__content {
        grid-template-columns: 1fr;

        padding:
            70px
            0;
    }

}

@media (max-width: 700px) {

    .rw-hero__inner {
        width:
            calc(100% - 36px);

        padding:
            115px
            0
            45px;
    }

    .rw-hero__chapter {
        display: none;
    }

    .rw-hero__copy h1 {
        font-size:
            clamp(
                46px,
                13vw,
                68px
            );
    }

    .rw-hero__actions {
        flex-direction: column;
    }

    .rw-button {
        width: 100%;
    }

    .rw-compare {
        min-height: 430px;
    }

}
/* =========================================================
   DIAGNÓSTICO
========================================================= */

.rw-diagnosis {
    padding: clamp(110px, 10vw, 180px) 0;

    background: #f3f2ee;
    color: #111317;
}

.rw-diagnosis__inner {
    width: min(calc(100% - 64px), 1400px);
    margin: auto;
}

.rw-diagnosis__header {
    margin-bottom: clamp(70px, 8vw, 120px);
}

.rw-section-label {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 30px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .13em;
    text-transform: uppercase;

    color: #4d5356;
}

.rw-section-label span {
    width: 35px;
    height: 2px;

    background: var(--td-orange, #ff6500);
}

.rw-diagnosis__heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, .8fr);

    gap: clamp(50px, 8vw, 130px);

    align-items: end;
}

.rw-diagnosis__heading h2 {
    margin: 0;

    font-size: clamp(50px, 5.5vw, 86px);

    font-weight: 700;
    line-height: .94;

    letter-spacing: -.055em;
}

.rw-diagnosis__heading h2 strong {
    display: block;

    font-weight: inherit;

    color: var(--td-green, #159447);
}

.rw-diagnosis__heading p {
    max-width: 520px;

    margin: 0;

    font-size: 15px;
    line-height: 1.8;

    color: #484d51;
}


/* GRID */

.rw-diagnosis__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    border-top: 1px solid rgba(17,19,23,.18);
}

.rw-signal {
    position: relative;

    min-height: 230px;

    display: grid;

    grid-template-columns:
        45px
        1fr
        40px;

    gap: 25px;

    align-items: start;

    padding: 42px 35px;

    border-bottom: 1px solid rgba(17,19,23,.18);

    transition:
        background .5s ease,
        transform .5s cubic-bezier(.22,1,.36,1);
}

.rw-signal:nth-child(odd) {
    border-right: 1px solid rgba(17,19,23,.18);
}

.rw-signal:hover {
    background: #fff;
}

.rw-signal__number {
    padding-top: 7px;

    font-size: 9px;
    font-weight: 700;

    color: var(--td-orange, #ff6500);
}

.rw-signal h3 {
    margin: 0 0 14px;

    font-size: clamp(23px, 2vw, 31px);

    font-weight: 600;
    line-height: 1.05;

    letter-spacing: -.035em;
}

.rw-signal p {
    max-width: 460px;

    margin: 0;

    font-size: 13px;
    line-height: 1.75;

    color: #575c60;
}

.rw-signal__mark {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17,19,23,.15);
    border-radius: 50%;

    transition:
        background .4s ease,
        color .4s ease,
        transform .4s ease;
}

.rw-signal:hover .rw-signal__mark {
    background: var(--td-orange, #ff6500);
    border-color: var(--td-orange, #ff6500);

    color: #fff;

    transform: rotate(12deg);
}
/* =========================================================
   REDISEÑO — POR QUÉ TICODESIGN
========================================================= */

.rw-why {
    padding:
        clamp(120px, 11vw, 190px)
        0;

    background: #f3f2ee;

    color: #111317;
}

.rw-why__inner {
    width:
        min(
            calc(100% - 64px),
            1400px
        );

    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.rw-why__header {
    margin-bottom:
        clamp(75px, 8vw, 120px);
}

.rw-why__heading {
    display: grid;

    grid-template-columns:
        minmax(0,1.2fr)
        minmax(300px,.8fr);

    gap:
        clamp(50px,8vw,130px);

    align-items: end;
}

.rw-why__heading h2 {
    margin: 0;

    font-size:
        clamp(
            48px,
            5.5vw,
            86px
        );

    font-weight: 700;

    line-height: .94;

    letter-spacing: -.055em;
}

.rw-why__heading h2 strong {
    display: block;

    color:
        var(--td-orange, #ff6500);

    font-weight: inherit;
}

.rw-why__heading p {
    max-width: 520px;

    margin: 0;

    font-size: 15px;

    line-height: 1.8;

    color: #494e52;
}


/* =========================================================
   GRID
========================================================= */

.rw-why__grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    border-top:
        1px solid
        rgba(17,19,23,.16);

    border-left:
        1px solid
        rgba(17,19,23,.16);
}


/* =========================================================
   CARD
========================================================= */

.rw-why-card {
    position: relative;

    min-height: 480px;

    padding:
        clamp(32px,4vw,55px);

    display: flex;

    flex-direction: column;

    border-right:
        1px solid
        rgba(17,19,23,.16);

    border-bottom:
        1px solid
        rgba(17,19,23,.16);

    background:
        rgba(255,255,255,.18);

    transition:
        transform .6s
        cubic-bezier(.22,1,.36,1),
        background .5s ease,
        color .5s ease;
}

.rw-why-card:hover {
    transform:
        translateY(-6px);

    background: #fff;
}


/* =========================================================
   NUMBER
========================================================= */

.rw-why-card__number {
    position: absolute;

    top: 28px;
    right: 30px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .12em;

    color:
        rgba(17,19,23,.35);
}


/* =========================================================
   ICON
========================================================= */

.rw-why-card__icon {
    width: 72px;
    height: 72px;

    margin-bottom: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(17,19,23,.14);

    border-radius: 50%;

    font-size: 17px;

    font-weight: 700;

    color:
        var(--td-orange, #ff6500);

    transition:
        background .45s ease,
        color .45s ease,
        border-color .45s ease,
        transform .55s
        cubic-bezier(.22,1,.36,1);
}

.rw-why-card:hover
.rw-why-card__icon {
    background:
        var(--td-orange, #ff6500);

    border-color:
        var(--td-orange, #ff6500);

    color: #fff;

    transform:
        rotate(8deg);
}


/* =========================================================
   TEXT
========================================================= */

.rw-why-card__eyebrow {
    display: block;

    margin-bottom: 13px;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .14em;

    color:
        var(--td-green, #159447);
}

.rw-why-card h3 {
    margin:
        0
        0
        22px;

    font-size:
        clamp(
            28px,
            2.8vw,
            43px
        );

    font-weight: 600;

    line-height: .98;

    letter-spacing: -.045em;
}

.rw-why-card h3 strong {
    display: block;

    font-weight: inherit;

    color:
        var(--td-orange, #ff6500);
}

.rw-why-card p {
    margin: 0;

    font-size: 13px;

    line-height: 1.8;

    color: #53585b;
}


/* =========================================================
   CARD OSCURA
========================================================= */

.rw-why-card--dark {
    background: #111317;

    color: #fff;
}

.rw-why-card--dark
.rw-why-card__number {
    color:
        rgba(255,255,255,.28);
}

.rw-why-card--dark
.rw-why-card__icon {
    border-color:
        rgba(255,255,255,.13);
}

.rw-why-card--dark p {
    color:
        rgba(255,255,255,.68);
}

.rw-why-card--dark:hover {
    background: #090a0c;
}


/* =========================================================
   CARD VERDE
========================================================= */

.rw-why-card--green {
    background:
        var(--td-green, #159447);

    color: #fff;
}

.rw-why-card--green
.rw-why-card__number {
    color:
        rgba(255,255,255,.45);
}

.rw-why-card--green
.rw-why-card__eyebrow {
    color:
        rgba(255,255,255,.78);
}

.rw-why-card--green
.rw-why-card__icon {
    border-color:
        rgba(255,255,255,.35);

    color: #fff;
}

.rw-why-card--green h3 strong {
    color: #111317;
}

.rw-why-card--green p {
    color:
        rgba(255,255,255,.85);
}

.rw-why-card--green:hover {
    background:
        var(--td-green, #159447);
}


/* =========================================================
   CTA CARD
========================================================= */

.rw-why-card--cta {
    background:
        var(--td-orange, #ff6500);

    color: #fff;

    justify-content: flex-end;
}

.rw-why-card--cta
.rw-why-card__number {
    color:
        rgba(255,255,255,.48);
}

.rw-why-card--cta
.rw-why-card__eyebrow {
    color:
        rgba(255,255,255,.78);
}

.rw-why-card--cta h3 strong {
    color: #111317;
}

.rw-why-card--cta p {
    color:
        rgba(255,255,255,.88);
}

.rw-why-card--cta a {
    margin-top: 35px;

    display: inline-flex;

    align-items: center;

    gap: 16px;

    font-size: 11px;

    font-weight: 700;

    color: #111317;
}

.rw-why-card--cta a span {
    transition:
        transform .35s ease;
}

.rw-why-card--cta a:hover span {
    transform:
        translateX(5px);
}

.rw-why-card--cta:hover {
    background:
        var(--td-orange, #ff6500);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .rw-why__heading {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .rw-why__grid {
        grid-template-columns:
            repeat(2,1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .rw-why__inner {
        width:
            calc(100% - 36px);
    }

    .rw-why__grid {
        grid-template-columns: 1fr;
    }

    .rw-why-card {
        min-height: 410px;
    }

}

/* =========================================================
   BEFORE / AFTER — VERSION ESTABLE
========================================================= */

.rw-compare__frame {
    position: relative;
    cursor: ew-resize;

    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-y;
}

.rw-compare__before,
.rw-compare__after {
    position: absolute;

    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
}

.rw-compare__before {
    z-index: 1;
}

.rw-compare__after {
    z-index: 2;

    width: 100% !important;

    overflow: hidden;

    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);

    will-change: clip-path;
}

.rw-newsite {
    width: 100% !important;
    height: 100%;
}

.rw-compare__divider {
    position: absolute;

    z-index: 12;

    top: 50px;
    bottom: 0;
    left: 50%;

    width: 2px;

    transform: translateX(-50%);

    background: #ffffff;

    pointer-events: none;
}

.rw-compare__divider span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: var(--td-orange, #ff6500);
    color: #ffffff;

    font-size: 17px;

    box-shadow:
        0 0 0 8px rgba(255,101,0,.10),
        0 12px 35px rgba(0,0,0,.30);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.rw-compare__frame.is-dragging
.rw-compare__divider span {
    transform:
        translate(-50%, -50%)
        scale(1.08);

    box-shadow:
        0 0 0 12px rgba(255,101,0,.14),
        0 16px 42px rgba(0,0,0,.38);
}

/* Una capa transparente captura mouse/touch sin afectar el contenido */
.rw-compare__hitarea {
    position: absolute;

    z-index: 25;

    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;

    cursor: ew-resize;

    touch-action: pan-y;
}

@media (max-width: 700px) {

    .rw-compare__divider span {
        width: 46px;
        height: 46px;

        font-size: 15px;
    }

}
