@font-face {
    font-family: 'Catchy Mager';
    src: url('../fonts/catchy-mager/catchy-mager.regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('../fonts/Funnel_Display/FunnelDisplay-VariableFont_wght.ttf') format('truetype-variations'),
        url('../fonts/Funnel_Display/FunnelDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-primary: #00D2F3;
    --bs-secondary: #00F0FF;
    --font-headings: 'Catchy Mager', sans-serif;
    --font-body: 'Funnel Display', sans-serif;
    --bg-color: #fdfcf8;
    --bg-light: #f3f0e9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 8.611vw, 4.625rem);
    line-height: 0.986;
    letter-spacing: 0.092rem;
}

h2 {
    font-size: 3rem;
}

body,
p,
small {
    font-family: var(--font-body);
}

a {
    text-decoration: none;
    color: black;
    font-family: var(--font-body);
}

body {
    background-color: black;
    color: var(--dark);
    font-weight: 300;
    overflow-x: hidden;
    font-size: 1, 2rem;
    letter-spacing: 1.6px;
}

section {
    background: var(--bg-color);
    min-height: 100vh;
    position: relative;

}

.spacer,
.spacer-black {
    position: relative;
    height: 30vh;
    background: var(--bg-color);
}

.spacer-black {
    background: black;
}
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
/* ================THE HERO===================== */

.intro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#hero p {
    color: white;
}

.mp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--mp-nav-h) + 4rem) clamp(20px, 8.611vw, 124px) clamp(3rem, 8vw, 7rem);
    background-color: #000;
    background-image: url('../images/hero revibe2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

.text-blue {
    color: var(--bs-primary);
}

.hero-text {
    width: 50%;
}

.hero-text h5 {
    color: white;
    padding-left: 1%;
}

.btn-hero .btn-primary {
    background: #00F0FF;
    width: 280px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    -webkit-box-shadow: 3px 2px 15px 5px #289BED;
    box-shadow: 3px 2px 15px 5px #289BED;
}

.btn-hero a {
    font-size: 1.112rem;
    border-radius: 100px;
    letter-spacing: 1px;
    font-weight: 400;
    width: auto;
    white-space: nowrap;
}

.btn-hero .btn-primary:hover {
    background: white;
    color: black;
}

.btn-primary-md:hover {
    background: var(--bs-black);
    color: white;
}

.btn-primary span i,
.btn-primary-md span i {
    font-size: 2.2rem;
    color: whitesmoke;
}

.btn-primary span i:hover,
.btn-primary-md span i:hover {
    font-size: 2.2rem;
    color: var(--bs-black);
}

.btn-primary-md {
    background: #00F0FF;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    padding: 0 3%;
}
.btn-quiz {
  background: silver;
  padding: 2% 4%;
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 500;
  border: navajowhite;
}
.the-benefits .btn-hero {
    padding: 4%;
}

/* ================THE PROBLEM===================== */
.the-problem{
    padding-top: 5%;
}
.problem-texts p {
    padding-left: 45%;
    padding-top: 5%;
}

.btn-problem {
    display: flex;
    justify-content: flex-end;
}

.problem-img {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 7%;
}

.problem-img img {
    position: relative;
    z-index: 2;
}

.btn-cta {
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* ================THE SOLUTION===================== */
.solution-img img {
    width: 100%;
    height: auto;
}

.solution-texts h2 {
    position: relative;
    left: -34%;
    margin-bottom: 10%;
}

.solution-texts p {
    padding: 0 18% 0 7%;
    position: relative;
    top: -5%;
}
.solution-texts-bottom p{
  padding-right: 50%!important;
  position: relative;
}
/* ================SERVICES===================== */
.the-service {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Espacio para todo el scroll interactivo */
}

/* El texto de título principal como un bloque superior animado */
.services-bg {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 3.5rem;
    z-index: 10;
}

.services-bg span {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 5.833vw, 4rem);
    font-weight: 400;
    color: var(--dark);
}

/* Contenedor inferior donde ocurren las animaciones de las tarjetas */
.services-col-cards {
    position: relative;
    min-height: 520px;
    padding: 0;
}

.col-card {
    position: absolute !important;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 300px;
    /* Ancho ajustado y compacto */
    transform: translateX(-50%) scale(0.85);
    opacity: 0;
    z-index: 1;
}

/* Estilo para la tarjeta popular */
.card-popular .pr-card {
    border: 2px solid var(--bs-primary, #0d6efd);
}

/* ================THE PORTFOLIO===================== */
/* Estilo para convertir un slide en portada centrada */
.z-slide-cover {
    grid-template-columns: 1fr !important;
    text-align: center;
}
.the-portfolio h2 {
    padding-right: 60%;
}

.the-portfolio a.btn-primary-md {
    width: 340px;
}

.mp-portfolio {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--mp-nav-h) + 2rem) 0;
    background-color: #000;
    background-image: url('../images/portfolio2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

.mp-portfolio h2,
.mp-portfolio q,
.mp-portfolio small {
    color: white;
}

/* ================THE PORTFOLIO===================== */
/* Posicionar el título estático en la parte superior de la sección con pin */
.z-gallery-header {
    position: absolute;
    top: 12%;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 1rem;
    pointer-events: none; /* Permite hacer scroll a través de él si es necesario */
}

.z-gallery-tag {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.7;
}

/* Ajuste opcional para dar espacio al header dentro de la sección pin */
.z-track {
    padding-top: 60px; 
}
.galleryh2{
    font-family: var(--font-headings);
     font-size: clamp(2rem, 5.833vw, 4rem);
    font-weight: 400;
    color: var(--dark);
}
/* Estilos aislados para la sección Z-Gallery */
.z-gallery-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    background-color: #fbfaf9;
    /* Color inicial del mood 1 */
    transition: background-color 0.8s ease;
}

.z-atmosphere-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    filter: blur(90px);
    opacity: 0.6;
}

.z-blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    transition: background-color 0.8s ease, transform 0.8s ease;
}

.z-blob-1 {
    top: -15%;
    left: -10%;
    background-color: var(--bg-color);
}

.z-blob-2 {
    bottom: -15%;
    right: -10%;
    background-color: var(--bg-light);
}

.z-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 2;
}

.z-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.z-slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6vw;
    width: 85%;
    max-width: 1300px;
}

.z-slide.z-is-right .z-slide-grid {
    grid-template-areas: "text image";
}

.z-slide.z-is-left .z-slide-grid {
    grid-template-areas: "image text";
}

.z-slide-image-container {
    grid-area: image;
    width: 100%;
    height: 36vh;
    border-radius: 14px;
    overflow: hidden;
    /*box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);*/
    background: transparent;
}

.z-slide-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.z-slide-text-container {
    grid-area: text;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.z-slide-number {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.z-slide-text-container h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: var(--font-body);
}

.z-slide-text-container p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.85;
    font-family: var(--font-body);
}

/* Responsivo para móviles CHEQUEAR*/
@media (max-width: 810px) {

    .z-slide-grid,
    .z-slide.z-is-right .z-slide-grid,
    .z-slide.z-is-left .z-slide-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: 1.5rem;
        width: 90%;
    }

    .z-slide-image-container {
        height: auto;
    }
}

/* ================THE BENEFITS===================== */
.the-benefits {
    height: auto !important;
    padding: 5% 0;
    background: var(--bg-color);
}

.benefit-title-one,
.benefit-title-two {
    font-size: 5rem;
    line-height: 1;
    font-family: var(--font-headings);
}

.benefit-title-two {
    padding-bottom: 5%;
}

.benefits-texts p {
    padding-left: 35%;
}

/*.benefit-img{
    padding-bottom: 45%;
}*/
.benefit-img img {
    object-fit: cover;
    width: 100%;
}

.benefits-list {
    margin-top: -54vh;
    position: relative;
    z-index: 2;
}

.benefits-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5%;
}

.benefits-list h5 {
    font-weight: bold;
}

.text-cta-benefits {
    padding-top: 3%;
    padding-left: 55%;
}

.the-benefits .pin-spacer {}

/* ================THE TESTIMONIALS===================== */
.row-testimonial {
    display: flex;
    flex-direction: column;
    width: 45%;
    max-width: 520px;
    margin-left: auto;
    /* Ubicado en el centro del lado derecho */
    margin-right: 3%;
    position: relative;
    z-index: 10;
}

.mp-portfolio h2.testimonial-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.15;
}

.testimonials-slider-container {
    position: relative;
    width: 100%;
}

.testimonials-track {
    position: relative;
    width: 100%;
    min-height: 230px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.testinomial-quotes {
    display: flex;
    flex-direction: column;
}

.testinomial-quotes .quote-icon {
    display: block;
    margin-bottom: 0.75rem;
}

.testinomial-quotes .quote-icon svg {
    width: 34px;
    height: 34px;
    opacity: 0.9;
    fill: #ffffff;
}

.testinomial-quotes q.quote-text {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 1.25rem;
    display: block;
}

.quote-author .author-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.quote-author .author-role {
    display: block;
    font-size: 0.85rem;
    color: var(--bs-primary, #ff3b5c);
    font-weight: 500;
}

/* Controls: Arrows and Dots */
.testimonials-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.testimonial-arrow {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.testimonial-arrow:hover {
    background: var(--bs-primary, #ff3b5c);
    border-color: var(--bs-primary, #ff3b5c);
    transform: scale(1.08);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.testimonials-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dots .dot.active {
    background: var(--bs-primary, #ff3b5c);
    width: 24px;
    border-radius: 6px;
}

/* ================THE CONTACTS===================== */
.the-contacts {
  background: #f6f1e8;
  display: flex;
  align-items: center;
  height: auto!important;
  padding: 5% 0;
}

.the-contacts p {
    padding-right: 25%;
}

.form-container {
    background: var(--bg-color);
    padding: 3%;
    border-radius: 10px;
}

.the-contacts h2 span,
.the-process .process-title {
    font-size: 5rem;
    line-height: 1;
    font-family: var(--font-headings);
}


.text-muted {
    color: white !important;
}
 .btn-primary-md {
    background: silver;
    padding: 4%;
    border-radius: 29px;
  }


/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-float 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 480px) {
     .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 10%;
        right: 12%;
        font-size: 25px;
      }
}

/* ================MEDIA QUERIES===================== */
@media (max-height: 900px) {
    .mp-nav__inner{
        height: 10vh!important;
    }
    h1{
        font-size: 3.6rem;
    }
     .mp-hero{
      padding-bottom: 9%;
    }
    .problem-texts p{
        padding-left: 24%;
    }
    .problem-img img{
        width: 75%;
    }
    .solution-img{
      display: flex;
    }
    .services{
        overflow-y: visible;
    }
    .services-bg{
        margin-bottom: 0!important;
    }
    .benefits-list {
        padding-bottom: 5%!important;
    }
    .pr-card{
        --bs-card-spacer-y: 8%!important;
    }
    .benefit-title-two {
        padding-bottom: 1%;
    }
}


/* `sm` applies to x-small devices (portrait phones, less than 576px) */
@media (max-width: 810px) {
    html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    }
    .pin-spacer{
        overflow-x: hidden!important;
    }
    .mp-nav__inner {
        padding-right: 15%;
    }

    h1 {
        font-size: 2.7rem;
        font-weight: bold;
    }
    .solution-texts h2 {
        font-size: 2.5rem!important;
        line-height: 1.1!important;
    }
    .spacer,
    .spacer-black {
        height: 15vh;
    }

    .hero-text {
        width: 100% !important;
    }

    .mp-hero {
        background-image: url('../images/hero-sm.png');
        background-position: top;
        /*background-size: 100%;*/
        overflow: hidden;
    }

    .btn-hero {
        justify-content: center !important;
    }

    .btn-hero .btn-primary {
        width: 246px;
        height: 54px;
        justify-content: center !important;
    }

    .btn-primary-md {
        padding: 0 6%;
    }

    .spacer-black {
        display: none;
    }
    .the-problem{
        padding-bottom: 10%;
    }
    .problem-texts {
        order: 2;
        padding: 5% 0;
    }

    .problem-img {
        order: 1;
    }
    .problem-img img {
      width: 80% !important;
      height: auto;
      object-fit: cover;
    }
    .problem-texts p {
        padding: 2% 11% !important;
    }

    .the-problem .row {
        display: flex;
        align-items: center;
        padding-top: 10%;
    }

    .the-problem h2 {
        margin-left: 4%;
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        padding: 0 5%;
    }

    .the-problem .btn-hero {
        margin-right: 5%;
        padding: 0 16%;
    }

    .solution-texts{
        padding: 4% 0%;
    }
    .solution-texts h2 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        position: relative;
        top: 0%;
        left: 5%;
        letter-spacing: 0.55px;
        padding:1% 5% 3% 5%;
      }
      
    .solution-texts h5{
      padding: 1% 6%;
    }
    
    .solution-texts p {
        padding: 0 10%;
    }
    .solution-texts-bottom p {
      position: relative;
      padding: 0 8%!important;
    }
        .solution-img{
        padding: 0 9%;
    }
    .the-service {
        overflow: visible !important;
        /* Evita que el contenedor corte las tarjetas */
        min-height: 100vh;
    }

    .services-bg {
        margin-bottom: 2.5rem;
    }

    .services-col-cards {
        position: relative;
        min-height: 480px;
        padding: 0;
    }

    .col-card {
        position: absolute !important;
        top: 0;
        left: 50%;
        width: 100%;
        max-width: 280px;
        transform: translateX(-50%) scale(0.85);
        opacity: 0;
        z-index: 1;
    }

    /*=================THE BENEFITS=====================*/
    .benefit-title-one,
    .benefit-title-two {
        font-size: 3rem;
        line-height: 1;
    }

    .the-benefits {
        padding: 20% 0 !important;
    }

    .benefits-texts p {
        padding: 0 5%;
    }

    .benefits-titles {
        padding-left: 7%;
    }

    .section-list,
    .benefits-list {
        margin-top: -65vh !important;
        /* Absorbe el espacio sobrante del pin de GSAP en pantallas pequeñas */
        position: relative !important;
        padding-bottom: 15%;
        background-color: var(--bg-color);
        z-index: 2;
    }

    .benefits-list-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        padding: 0 5% !important;
        margin-bottom: 10% !important;
        width: 100% !important;
        position: relative !important;
    }

    .benefits-list .benefit {
        position: relative !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .text-cta-benefits {
        position: relative !important;
        display: block !important;
        padding: 0 5% !important;
        margin-top: 2.5rem !important;
        width: 100% !important;
    }



    /*=================THE TESTIMONIALS=====================*/
    /* Testimonials Mobile (debajo de la imagen y con portfolio-sm.png) */
    .mp-portfolio {
        background-image: url('../images/portfolio1-sm.png') !important;
        background-position: top center !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
        background-color: #000 !important;
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: flex-end;
        padding: 50vh 0 3.5rem 0 !important;
    }

    .mp-portfolio .container {
        width: 100%;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .row-testimonial {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto !important;
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        padding: 0 0.5rem;
        text-align: center;
    }

    .mp-portfolio h2.testimonial-title {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .testimonials-track {
        min-height: 250px;
    }

    .testinomial-quotes .quote-icon {
        display: flex;
        justify-content: center;
    }

    .testinomial-quotes q.quote-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .testimonials-controls {
        justify-content: center;
        margin-top: 1.2rem;
    }

    /*Contacts*/
    .the-contacts h2 {
        padding-left: 9% !important;
        padding-top: 10% !important;
    }

    .the-contacts h2 span {
        font-size: 3.3rem !important;
    }

    .the-contacts p {
        padding: 0 10%;
    }

    .contacts-rss {
        display: flex;
        justify-content: flex-end !important;
        padding-right: 10% !important;
        padding-bottom: 5%;
    }

    .form-container {
        padding: 11% !important;
    }
    .disclamer{
      height: 35vh !important;
      padding: 4%!important;
    
    }
}

/* Cubre teléfonos verticales gigantes, pantallas de dispositivos plegables (Fold) y tablets muy pequeñas en vertical. */
@media (max-width: 767px) {
    /* Útil si necesitas cambios drásticos antes de que la pantalla se convierta en una tablet estándar */
}

/* El corte definitivo. El iPad estándar y el 90% de las tablets comerciales en vertical miden entre 768px y 820px. Los celulares modernos acostados también entran aquí. */
@media (max-width: 1024px) {
    /* Aquí es donde normalmente destruyes el menú de escritorio y activas el menú de hamburguesa */
}

/* 4. LAPTOPS Y PANTALLAS PEQUEÑAS DE ESCRITORIO */
/* Cubre laptops de 11" a 13" (como MacBooks portátiles) y pantallas de escritorio medianas. */
@media (max-width: 1366px) {
    /* Ideal para ajustar contenedores muy anchos que se desbordan en laptops comunes */
}