/* ==========================================
   LANDING — MARKETING DIGITAL
   REPREMARCA
========================================== */


/* ==========================================
   HERO
========================================== */

.marketing-hero {
    position: relative;

    min-height: 760px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #f7f7f4;

    padding: 120px 0;
}


/* BLOQUES GEOMÉTRICOS */

.marketing-hero::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -120px;
    top: 90px;

    background: #E53935;

    transform: rotate(45deg);

    opacity: 0.08;
}


.marketing-hero::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: 150px;
    bottom: -80px;

    background: #0057D9;

    transform: rotate(45deg);

    opacity: 0.10;
}


.marketing-hero .container {
    position: relative;

    z-index: 2;
}


.marketing-hero-content {
    max-width: 1050px;
}


/* ==========================================
   ETIQUETA
========================================== */

.marketing-hero .section-label,
.marketing-section-header .section-label,
.marketing-process-header .section-label,
.marketing-cta .section-label {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    font-family: "Sora", sans-serif;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.02em;

    color: #0057D9;
}


.marketing-hero .section-label > span,
.marketing-section-header .section-label > span,
.marketing-process-header .section-label > span,
.marketing-cta .section-label > span {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #E53935;
}


/* ==========================================
   TÍTULO HERO
========================================== */

.marketing-hero h1 {
    max-width: 1000px;

    margin: 0 0 28px;

    font-family: "Sora", sans-serif;

    font-size: clamp(64px, 8vw, 120px);

    line-height: 0.92;

    letter-spacing: -0.07em;

    font-weight: 700;

    color: #1D1D1D;
}


.marketing-hero h1 span {
    display: block;

    color: #E53935;
}


/* ==========================================
   SUBTÍTULO HERO
========================================== */

.marketing-hero h2 {
    max-width: 760px;

    margin: 0 0 24px;

    font-family: "Sora", sans-serif;

    font-size: clamp(25px, 3vw, 40px);

    line-height: 1.2;

    letter-spacing: -0.03em;

    font-weight: 600;

    color: #1D1D1D;
}


/* ==========================================
   DESCRIPCIÓN HERO
========================================== */

.marketing-hero-description {
    max-width: 760px;

    margin: 0 0 38px;

    font-family: "Inter", sans-serif;

    font-size: 18px;

    line-height: 1.7;

    color: #555;
}


/* ==========================================
   BOTÓN HERO
========================================== */

.marketing-hero .button,
.marketing-cta .button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    min-height: 54px;

    padding: 0 28px;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    border-radius: 50px;
}


.marketing-hero .button span,
.marketing-cta .button span {
    font-size: 20px;

    line-height: 1;
}


/* ==========================================
   SECCIÓN SOLUCIONES
========================================== */

.marketing-solutions {
    padding: 120px 0;

    background: #ffffff;
}


.marketing-section-header {
    max-width: 850px;

    margin-bottom: 60px;
}


.marketing-section-header h2 {
    margin: 0;

    font-family: "Sora", sans-serif;

    font-size: clamp(44px, 5vw, 74px);

    line-height: 1;

    letter-spacing: -0.06em;

    font-weight: 700;

    color: #1D1D1D;
}


.marketing-section-header h2 span {
    display: block;

    color: #E53935;
}


/* ==========================================
   GRID SOLUCIONES
========================================== */

.marketing-solutions-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;

    max-width: 1100px;
}


/* ==========================================
   EFECTO HOVER — TARJETAS MARKETING
========================================== */

.marketing-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* DIAGONAL REPREMARCA */

.marketing-card::before {
    content: "";

    position: absolute;

    width: 150%;
    height: 150%;

    right: -110%;
    bottom: -110%;

    z-index: 0;

    background: linear-gradient(
        135deg,
        #0057D9 0%,
        #F4C300 25%,
        #F4C300 58%,
        #E53935 100%
    );

    transform: rotate(-45deg);

    transition:
        right 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}


/* CONTENIDO */

.marketing-card > * {
    position: relative;
    z-index: 2;

    transition:
        color 0.35s ease;
}


/* HOVER */

.marketing-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 45px rgba(0, 87, 217, 0.16);
}


/* ENTRA EL DEGRADADO */

.marketing-card:hover::before {
    right: -15%;
    bottom: -15%;
}


/* TEXTO */

.marketing-card:hover h3,
.marketing-card:hover p {
    color: #000000;
}


/* NÚMERO */

.marketing-card:hover .marketing-card-number {
    color: #FFFFFF;
}


/* ==========================================
   NÚMERO TARJETA
========================================== */

.marketing-card-number {
    display: block;

    margin-bottom: 65px;

    font-family: "Sora", sans-serif;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.05em;

    color: #0057D9;
}


/* ==========================================
   TÍTULO TARJETA
========================================== */

.marketing-card h3 {
    position: relative;

    z-index: 2;

    max-width: 480px;

    margin: 0 0 18px;

    font-family: "Sora", sans-serif;

    font-size: 27px;

    line-height: 1.15;

    letter-spacing: -0.03em;

    font-weight: 700;

    color: #1D1D1D;
}


/* ==========================================
   TEXTO TARJETA
========================================== */

.marketing-card p {
    position: relative;

    z-index: 2;

    max-width: 500px;

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 15px;

    line-height: 1.65;

    color: #555;
}


/* ==========================================
   PROCESO
========================================== */

.marketing-process {
    padding: 120px 0;

    background: #1D1D1D;

    overflow: hidden;
}


.marketing-process-header {
    max-width: 850px;

    margin-bottom: 65px;
}


.marketing-process-header .section-label {
    color: #F4C300;
}


.marketing-process-header h2 {
    margin: 0;

    font-family: "Sora", sans-serif;

    font-size: clamp(44px, 5vw, 72px);

    line-height: 1;

    letter-spacing: -0.06em;

    font-weight: 700;

    color: #ffffff;
}


.marketing-process-header h2 span {
    display: block;

    color: #F4C300;
}


/* ==========================================
   GRID PROCESO
========================================== */

.marketing-process-grid {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 1px;

    max-width: 1200px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


/* ==========================================
   ITEM PROCESO
========================================== */

.marketing-process-item {
    min-height: 300px;

    padding: 32px 24px;

    border-right: 1px solid rgba(255, 255, 255, 0.15);
}


.marketing-process-item:last-child {
    border-right: none;
}


/* ==========================================
   NÚMERO PROCESO
========================================== */

.marketing-process-number {
    display: block;

    margin-bottom: 80px;

    font-family: "Sora", sans-serif;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.05em;

    color: #E53935;
}


/* ==========================================
   TÍTULO PROCESO
========================================== */

.marketing-process-item h3 {
    margin: 0 0 16px;

    font-family: "Sora", sans-serif;

    font-size: 23px;

    line-height: 1.2;

    letter-spacing: -0.03em;

    font-weight: 700;

    color: #ffffff;
}


/* ==========================================
   TEXTO PROCESO
========================================== */

.marketing-process-item p {
    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    line-height: 1.65;

    color: #cccccc;
}


/* ==========================================
   CTA FINAL
========================================== */

.marketing-cta {
    position: relative;

    overflow: hidden;

    padding: 130px 0;

    background: #f7f7f4;
}


.marketing-cta::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -100px;

    background: #0057D9;

    transform: rotate(45deg);

    opacity: 0.10;
}


.marketing-cta::after {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    right: 190px;
    bottom: -80px;

    background: #E53935;

    transform: rotate(45deg);

    opacity: 0.10;
}


.marketing-cta .container {
    position: relative;

    z-index: 2;
}


.marketing-cta-content {
    max-width: 900px;
}


.marketing-cta h2 {
    max-width: 900px;

    margin: 0 0 28px;

    font-family: "Sora", sans-serif;

    font-size: clamp(46px, 6vw, 84px);

    line-height: 0.98;

    letter-spacing: -0.06em;

    font-weight: 700;

    color: #1D1D1D;
}


.marketing-cta h2 span {
    display: block;

    color: #0057D9;
}


.marketing-cta p {
    max-width: 650px;

    margin: 0 0 36px;

    font-family: "Inter", sans-serif;

    font-size: 18px;

    line-height: 1.65;

    color: #555;
}


/* ==========================================
   BOTÓN CTA
========================================== */

.marketing-cta .button-primary {
    color: #ffffff;

    background: #C62828;

    box-shadow: 0 10px 25px rgba(237, 46, 46, 0.20);
}


/* ==========================================
   FOOTER
========================================== */

.site-footer {
    padding: 25px 0;

    text-align: center;
}


.site-footer p {
    margin: 0;

    text-align: center;
}


/* ==========================================
   RESPONSIVE — TABLET
========================================== */

@media (max-width: 1000px) {

    .marketing-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .marketing-process-item:nth-child(3) {
        border-right: none;
    }


    .marketing-process-item:nth-child(4),
    .marketing-process-item:nth-child(5) {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

}


/* ==========================================
   RESPONSIVE — TABLET PEQUEÑA
========================================== */

@media (max-width: 900px) {

    .marketing-hero {
        min-height: 680px;

        padding: 100px 0;
    }


    .marketing-hero h1 {
        font-size: clamp(56px, 9vw, 90px);
    }


    .marketing-hero h2 {
        font-size: 29px;
    }


    .marketing-hero-description {
        font-size: 17px;
    }


    .marketing-solutions {
        padding: 90px 0;
    }


    .marketing-section-header {
        margin-bottom: 45px;
    }


    .marketing-solutions-grid {
        gap: 18px;
    }


    .marketing-card {
        min-height: 310px;

        padding: 30px;
    }


    .marketing-card-number {
        margin-bottom: 55px;
    }


    .marketing-card h3 {
        font-size: 24px;
    }


    .marketing-process {
        padding: 90px 0;
    }


    .marketing-process-header {
        margin-bottom: 50px;
    }


    .marketing-cta {
        padding: 100px 0;
    }

}


/* ==========================================
   RESPONSIVE — MÓVIL
========================================== */

@media (max-width: 650px) {

    /* HERO */

    .marketing-hero {
        min-height: auto;

        padding: 90px 0 80px;
    }


    .marketing-hero::before {
        width: 190px;
        height: 190px;

        right: -95px;
        top: 80px;
    }


    .marketing-hero::after {
        width: 110px;
        height: 110px;

        right: 30px;
        bottom: -50px;
    }


    .marketing-hero h1 {
        margin-bottom: 24px;

        font-size: clamp(48px, 15vw, 70px);

        letter-spacing: -0.06em;
    }


    .marketing-hero h2 {
        margin-bottom: 22px;

        font-size: 23px;

        line-height: 1.25;
    }


    .marketing-hero-description {
        margin-bottom: 30px;

        font-size: 16px;

        line-height: 1.65;
    }


    .marketing-hero .button {
        width: 100%;
    }


    /* SOLUCIONES */

    .marketing-solutions {
        padding: 75px 0;
    }


    .marketing-section-header {
        margin-bottom: 38px;
    }


    .marketing-section-header h2 {
        font-size: clamp(40px, 11vw, 58px);
    }


    .marketing-solutions-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .marketing-card {
        min-height: auto;

        padding: 30px;
    }


    .marketing-card-number {
        margin-bottom: 55px;
    }


    .marketing-card h3 {
        font-size: 23px;
    }


    .marketing-card p {
        font-size: 15px;
    }


    /* PROCESO */

    .marketing-process {
        padding: 75px 0;
    }


    .marketing-process-header {
        margin-bottom: 40px;
    }


    .marketing-process-header h2 {
        font-size: clamp(40px, 11vw, 58px);
    }


    .marketing-process-grid {
        grid-template-columns: 1fr;

        border-top: 1px solid rgba(255, 255, 255, 0.15);

        border-bottom: none;
    }


    .marketing-process-item {
        min-height: auto;

        padding: 30px 0;

        border-right: none;

        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }


    .marketing-process-item:nth-child(4),
    .marketing-process-item:nth-child(5) {
        border-top: none;
    }


    .marketing-process-number {
        margin-bottom: 35px;
    }


    /* CTA */

    .marketing-cta {
        padding: 80px 0;
    }


    .marketing-cta::before {
        width: 180px;
        height: 180px;

        right: -90px;
        top: -60px;
    }


    .marketing-cta::after {
        width: 110px;
        height: 110px;

        right: 40px;
        bottom: -55px;
    }


    .marketing-cta h2 {
        font-size: clamp(42px, 12vw, 62px);
    }


    .marketing-cta p {
        font-size: 16px;
    }


    .marketing-cta .button {
        width: 100%;
    }


    /* FOOTER */

    .site-footer {
        padding: 25px 15px;

        text-align: center;
    }


    .site-footer p {
        text-align: center;
    }

}


/* ==========================================
   ACCESIBILIDAD — REDUCIR MOVIMIENTO
========================================== */

@media (prefers-reduced-motion: reduce) {

    .marketing-card {
        transition: none;
    }


    .marketing-card:hover {
        transform: none;
    }

}

/* ==========================================
   BOTÓN — PROYECTO
========================================== */

.software-project-content .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 24px;

    border: 1px solid var(--black);
    border-radius: 50px;

    background: transparent;
    color: var(--black);

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.software-project-content .button-secondary:hover {
    background: var(--black);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.software-project-content .button-secondary span {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.software-project-content .button-secondary:hover span {
    transform: translateX(4px);
}

.software-project-content .button-secondary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

/* ==========================================
   REPREMARCA — PAGE LOADER
========================================== */

#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}


/* Cuando termina de cargar */

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* Contenedor del loader */

.my-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================
   CUBO
========================================== */

.rubiks-cube {
    width: 90px;
    height: 90px;

    position: relative;

    transform-style: preserve-3d;

    transform: rotateX(-25deg) rotateY(-35deg);

    animation: rubiks-rotate 4s infinite linear;
}


/* Caras */

.rubiks-cube .face {
    position: absolute;

    width: 90px;
    height: 90px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);

    gap: 3px;

    padding: 3px;

    box-sizing: border-box;

    background: #111;
}


/* Cubitos */

.rubiks-cube .cube {
    width: 100%;
    height: 100%;

    border-radius: 3px;

    box-sizing: border-box;

    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.12);
}


/* ==========================================
   POSICIÓN DE LAS CARAS
========================================== */

.rubiks-cube .front {
    transform: translateZ(45px);
}

.rubiks-cube .back {
    transform: rotateY(180deg) translateZ(45px);
}

.rubiks-cube .right {
    transform: rotateY(90deg) translateZ(45px);
}

.rubiks-cube .left {
    transform: rotateY(-90deg) translateZ(45px);
}

.rubiks-cube .top {
    transform: rotateX(90deg) translateZ(45px);
}

.rubiks-cube .bottom {
    transform: rotateX(-90deg) translateZ(45px);
}


/* ==========================================
   ANIMACIÓN
========================================== */

@keyframes rubiks-rotate {

    0% {
        transform:
            rotateX(-25deg)
            rotateY(-35deg);
    }

    25% {
        transform:
            rotateX(-25deg)
            rotateY(55deg);
    }

    50% {
        transform:
            rotateX(25deg)
            rotateY(145deg);
    }

    75% {
        transform:
            rotateX(25deg)
            rotateY(235deg);
    }

    100% {
        transform:
            rotateX(-25deg)
            rotateY(325deg);
    }

}


/* ==========================================
   EVITAR SCROLL MIENTRAS CARGA
========================================== */

body.loader-active {
    overflow: hidden;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .rubiks-cube {
        width: 65px;
        height: 65px;
    }

    .rubiks-cube .face {
        width: 65px;
        height: 65px;
    }

    .rubiks-cube .front {
        transform: translateZ(32.5px);
    }

    .rubiks-cube .back {
        transform: rotateY(180deg) translateZ(32.5px);
    }

    .rubiks-cube .right {
        transform: rotateY(90deg) translateZ(32.5px);
    }

    .rubiks-cube .left {
        transform: rotateY(-90deg) translateZ(32.5px);
    }

    .rubiks-cube .top {
        transform: rotateX(90deg) translateZ(32.5px);
    }

    .rubiks-cube .bottom {
        transform: rotateX(-90deg) translateZ(32.5px);
    }

}

/* ==========================================
   AJUSTES RESPONSIVE — MARKETING DIGITAL
   REPREMARCA
========================================== */

@media (max-width: 900px) {
    .marketing-hero .container,
    .marketing-solutions .container,
    .marketing-process .container,
    .marketing-cta .container {
        min-width: 0;
        width: 100%;
    }

    .marketing-solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-card {
        min-width: 0;
    }
}

/* CELULARES */
@media (max-width: 650px) {
    .marketing-hero {
        min-height: auto;
        padding: 72px 0 58px;
    }

    .marketing-hero h1 {
        font-size: clamp(35px, 10.5vw, 52px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .marketing-hero h2 {
        font-size: clamp(20px, 5.5vw, 25px);
    }

    .marketing-hero-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .marketing-hero .button,
    .marketing-cta .button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .marketing-solutions,
    .marketing-process,
    .marketing-cta {
        padding: 58px 0;
    }

    .marketing-solutions-grid,
    .marketing-process-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .marketing-card {
        min-width: 0;
        min-height: auto;
        padding: 24px;
    }

    .marketing-card-number {
        margin-bottom: 28px;
    }

    .marketing-section-header,
    .marketing-process-header {
        margin-bottom: 28px;
    }

    .marketing-process-item {
        border-right: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .marketing-process-item:first-child {
        border-top: 0;
    }

    .marketing-cta h2 {
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    /* Evitar desbordamientos horizontales */
    .marketing-hero,
    .marketing-solutions,
    .marketing-process,
    .marketing-cta {
        max-width: 100%;
        box-sizing: border-box;
    }

    .marketing-hero img,
    .marketing-solutions img,
    .marketing-process img {
        max-width: 100%;
        height: auto;
    }
}

