﻿/* =========================================================
   RESET & BASE
========================================================= */

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background:transparent;
}

:root {
    --primary: #01B1C0;
    --primary-dark: #00695C;
    --bg-soft: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --radius: 1.5rem;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   GLOBAL SECTIONS & CARDS
========================================================= */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

h1,
h2,
h3 {
    letter-spacing: -0.5px;
}

p {
    line-height: 1.7;
}

.bloque,
.rendiciones-boxes,
.confian-box,
.stats-container,
.clients-section {
    background: transparent;
    border: none;
    margin: auto;
}

.bloque,
.rendiciones-boxes,
.confian-box,
.stats-container {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 clamp(2rem, 5vw, 10rem);
    min-height: clamp(90px, 6vw, 140px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.nav-left {
    display: flex;
    flex-direction: row;
    gap: 65px;
}

/* Constrain content on ultra wide screens */
.navbar-inner {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   LOGO
========================= */

.logo-img {
    height: clamp(60px, 4vw, 130px);
    width: auto;
    display: block;
    margin-bottom: 10px;
}

/* =========================
   NAV LINKS
========================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2vw, 3.5rem);
}

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: clamp(1rem, 1.1vw, 1.4rem);
        white-space: nowrap;
        transition: color 0.3s ease;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

/* ===== MODERN VISUAL UPGRADE (SAFE) ===== */

/* =========================================================
   NAVBAR – UNIVERSAL PERFECT SCALE
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-inner {
    width: 100%;
    max-width: clamp(1200px, 85vw, 2000px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 🔥 izquierda */

    gap: clamp(2rem, 4vw, 6rem);
    padding: 0 clamp(2rem, 6vw, 8rem);
    min-height: clamp(90px, 6vw, 150px);
}

/* ================= LOGO ================= */

.logo-img {
    height: clamp(70px, 4.5vw, 140px);
    width: auto;
    transition: transform 0.3s ease;
}

    .logo-img:hover {
        transform: scale(1.05);
    }

/* ================= LINKS ================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2.5vw, 4rem);
}

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: clamp(1rem, 1.05vw, 1.45rem);
        letter-spacing: 0.3px;
        position: relative;
        white-space: nowrap;
        transition: color 0.25s ease;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

        /* underline */
        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            height: 2px;
            width: 0%;
            background: var(--primary);
            transition: width 0.25s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* ================= BUTTON ================= */

.btn-login {
    margin-left: auto;
    background: #3a9696 !important;
    color: #fff;
    padding: clamp(0.6rem, 0.8vw, 0.9rem) clamp(1.5rem, 1.5vw, 2.2rem);
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: clamp(1rem, 0.9vw, 1.05rem);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

    .hamburger img {
        width: 28px;
    }

.mobile-menu {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    background: white;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    .mobile-menu a {
        font-weight: 600;
        text-decoration: none;
        color: #333;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    min-height: 70vh !important;
    display: flex;
    padding: 5px;
    align-items: center;
    /* background-image: url('Img/fondo1.png'); */
    background: radial-gradient(ellipse at 70% 30%, rgba(78, 180, 180, 0.30) 0%, transparent 40%), radial-gradient(ellipse at 15% 90%, rgba(48, 134, 138, 0.35) 0%, transparent 35%), radial-gradient(ellipse at 50% 50%, rgba(58, 154, 154, 0.12) 0%, transparent 45%), radial-gradient(ellipse at 30% 60%, #1d7a80 0%, #0a4a50 55%, #062f35 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    padding: 10px;
    max-width: 1600px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    align-items: flex-start;
}

.hero-title {
    font-size: 2.7rem;
    font-weight: bold;
    line-height: 1.1;
    color: #ffffff;
}

.hero-subtitle,
.hero-description {
    color: #ffffff;
}

.hero-images {
    flex: 1;
    position: relative;
    height: clamp(500px, 40vw, 1000px);
}

/* Tablet arriba derecha */

.hero-tablet {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 70%;
    max-width: 900px;
    max-height: 700px;
}

/* Phone abajo derecha */

.hero-phone-wrapper {
    position: absolute;
    bottom: 6%;
    right: 6%;
    width: clamp(260px, 18vw, 450px);
    z-index: 2;
}

.hero-phone {
    width: 100%;
    display: block;
    margin-bottom: -50px;
}

.hero-overlay {
    position: absolute;
    width: 90%;
    will-change: transform;
}

.gasto1 {
    top: 30%;
    left: 12%;
    width: 25rem;
}

.gasto2 {
    top: 55%;
    right: 12%;
    width: 25rem;
}

.gasto3 {
    top: 80%;
    left: 12%;
    width: 25rem;
}

/* =========================================================
   FEATURES SECTION
========================================================= */

.features-section {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 6%;
    overflow: hidden;
    z-index: 0;
    background: radial-gradient(circle at 20% 30%, rgba(84, 201, 214, 0.3), transparent 50%), radial-gradient(circle at 80% 70%, rgba(1, 177, 192, 0.25), transparent 55%), linear-gradient(135deg, #eef9fb, #ffffff);
}

.features-glass {
    position: absolute;
    inset: 5%;
    border-radius: 30px;
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.features-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 2;
}

.features-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.feature-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6%;
}

.feature-img {
    width: 100%;
    max-width: 50%;
    height: auto;
    filter: drop-shadow(8px 12px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.35));
}

.rendiciones4 {
    max-width: clamp(220px, 24vw, 1060px);
}

.carga2 {
    max-width: clamp(220px, 31vw, 1080px);
    width: 100%;
    height: auto;
}

.img-comolohacemos {
    width: 21dvh;
    height: auto;
    margin-bottom: 1rem;
}

.feature-text {
    max-width: clamp(400px, 30vw, 800px);
}

.feature-title {
    font-size: clamp(1.8rem, 2.5vw, 3.4rem);
    line-height: 1.2;
    font-weight: 700;
    color: #3A9696;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    line-height: 1.6;
    color: #555;
}

.features-dots {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

    .features-dots .dot {
        width: 14px;
        height: 14px;
        background: #ccc;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease;
    }

        .features-dots .dot.active {
            background: #3A9696;
            transform: scale(1.2);
        }

/* =========================================================
   CONTROL SECTION
========================================================= */

.control-section {
    padding: 8% clamp(60px, 8vw, 100px);
    background-color: #f4f6f8;
    font-family: 'Inter', sans-serif;
    margin-top: -60px;
}

@media (max-width: 1024px) {
    .control-section {
        margin-top: 0;
    }
}

.control-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 70px);
}

    .control-header h1 {
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        color: #3A9696;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .control-header h3 {
        font-size: clamp(1rem, 1.4vw, 1.2rem);
        font-weight: 400;
        color: #535353;
        max-width: 700px;
        margin: 0 auto;
    }

.control-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 50px);
    /* más aire entre cards */
    max-width: 1400px;
    /* antes 1200 */
    margin: 0 auto;
}

.control-box {
    background: #ffffff;
    padding: clamp(35px, 4vw, 50px);
    /* más grande */
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    /* altura consistente */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

    .control-box:hover {
        transform: translateY(-5px);
    }

    .control-box h2 {
        font-size: clamp(1.4rem, 1.8vw, 1.6rem);
        /* más grande */
        margin-bottom: 15px;
        color: #1f2d3d;
    }

    .control-box p {
        font-size: clamp(1rem, 1.2vw, 1.1rem);
        color: #6b7c93;
        line-height: 1.6;
        margin-bottom: 25px;
    }

.box-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .box-image img {
        width: 100%;
        max-width: 260px;
        /* antes 220 */
        height: auto;
        object-fit: contain;
    }


.rendiciones-text {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rendiciones-section img {
    transition: transform 0.3s ease;
    margin: 0 auto;
}

    .rendiciones-section img:hover {
        transform: scale(1.05);
    }

.rendiciones-section h2,
.rendiciones-section > div > div:last-child > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rendiciones-section p {
    color: #4b5563;
    line-height: 1.6;
}

.rendiciones-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.rendiciones-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .rendiciones-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    }

.rendiciones-box-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rendiciones-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rendiciones-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.rendiciones-box p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* =========================================================
   PHONE MOCKUP
========================================================= */


.lottie-phone {
    height: clamp(500px, 50vw, 1000px);
    max-width: 600px;
}

.phone-mockup {
    height: clamp(450px, 52vw, 950px);
    width: auto;
    object-fit: contain;
    aspect-ratio: 9 / 19;
    filter: drop-shadow(8px 12px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

    .phone-mockup:hover {
        transform: scale(1.02);
    }

/* =========================================================
   CONFÍAN SECTION
========================================================= */

.confian-section {
    background: #fff;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6rem) 1.5rem;
}


.confian-title {
    font-size: clamp(1.8rem, 3vw, 3.3rem);
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}

.confian-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #4b5563;
    text-align: center;
}

.confian-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

/* LEFT SIDE */
.confian-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== BOX ===== */

.confian-box {
    background: #f9fafb;
    border-radius: 1.2rem;
    padding: clamp(1.2rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .confian-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

/* ===== VARIANTS ===== */

/* antes tenía width fija → eliminado */
.confian-wide {
    width: 100%;
}

.confian-tall {
    background-color: #3A9696 !important;
    color: white;
    height: auto;
    min-height: unset;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .confian-tall .confian-text {
        max-width: 90%;
        display: flex;
        flex-direction: column;
    }

    .confian-tall .confian-text {
        font-size: clamp(0.95rem, 1vw, 1.1rem);
        line-height: 1.5;
    }

/* ===== FOOTER ===== */

.confian-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.confian-person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.confian-name {
    font-weight: 600;
    color: #111827;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
}

.confian-role {
    font-weight: 400;
    color: #9ca3af;
    font-size: clamp(0.85rem, 1vw, 1rem);
    margin-top: 0.2rem;
}

.confian-tall .confian-name,
.confian-tall .confian-role {
    color: white;
}

/* ===== LOGOS ===== */

.confian-logo {
    height: clamp(30px, 3vw, 50px);
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

    .confian-logo.riogas {
        height: clamp(45px, 4vw, 70px);
        mix-blend-mode: multiply;
    }

    .confian-logo.cbse {
        filter: brightness(0) invert(1);
    }

    .confian-logo:hover {
        filter: grayscale(0%);
        transform: scale(1.05);
    }

/* TABLET (≥768px)*/

@media (min-width: 768px) {

    .confian-grid {
        grid-template-columns: 1fr;
    }
}

/* DESKTOP (≥1024px) */

@media (min-width: 1024px) {

    .confian-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* LARGE DESKTOP (≥1400px) */

@media (min-width: 1400px) {

    .confian-grid {
        max-width: 1400px;
        gap: 3rem;
    }
}

/* SECCION CLIENTES SLIDER */

.clients-section {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    max-width: 70%;
    margin: 8rem auto;
    padding: 1rem 2rem;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-align: center;
}

    .clients-section::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(84, 201, 214, 0.15) 0%, transparent 70%);
        top: -200px;
        left: -200px;
        z-index: 0;
    }

    .clients-section > * {
        position: relative;
        z-index: 1;
    }

.clients-title {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 auto 1.2rem auto;
    max-width: 700px;
    line-height: 1.3;
}

.clients-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 auto 3rem auto;
    max-width: 600px;
    line-height: 1.6;
}

.clients-divider {
    width: 80px;
    height: 4px;
    background: #3A9696;
    margin: 0 auto 4rem auto;
    border-radius: 10px;
}

.clients-slider {
    overflow: hidden;
    width: 100%;
    padding-bottom: 10px;
}


.clients-track {
    display: flex;
    gap: 3rem;
    margin-bottom: 15px;
    width: max-content;
    will-change: transform;
    animation: scroll 90s linear infinite;
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.slider-2 .clients-track {
    animation: scroll-reverse 90s linear infinite;
}

.client-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .client-logo img {
        height: 50px;
        max-width: 110px;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.8;
    }


/* MOBILE */
@media (max-width: 768px) {

    .clients-track {
        gap: 0.5rem;
        display: flex;
        margin-bottom: 15px;
        width: max-content;
    }

    .client-logo img {
        height: 35px;
        max-width: 80px;
    }
}

img[alt="river"] {
    transform: scale(0.55);
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.cards-section {
    padding: 6rem 1.5rem;
    background: #f9fafb;
}

/* ===== HEADER ===== */

.slider-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

    .slider-header h2 {
        font-size: clamp(1.6rem, 5vw, 2.8rem);
        font-weight: 500;
        line-height: 1.15;
        color: #3A9696;
        max-width: 1000px;
        margin: 0 auto;
        text-wrap: balance;
        word-break: break-word;
    }

        .slider-header h2 strong {
            font-weight: 800;
        }

.cards-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    align-items: stretch;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .card:hover {
        transform: scale(1.12);
        z-index: 5;
        box-shadow: 0 35px 100px rgba(0, 0, 0, 0.18);
    }




    .card img {
        height: 140px;
        object-fit: contain;
        margin: auto;
    }

    .card img {
        height: 140px;
    }

    .card h3 {
        min-height: 2.5rem;
        font-size: 1.4rem;
        margin-top: 1rem;
        margin-left: 1rem;
        color: #111827;
    }

    .card p {
        font-size: 1.1rem;
        color: #6b7280;
        max-width: 260px;
        margin-left: 1rem;
        min-height: 5rem;
    }

/* =========================================================
   DEMO FORM
========================================================= */
.demo-info {
    max-width: 640px;
    margin-bottom: 2rem;
}

/* ===== TITLE ===== */

.demo-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #3A9696;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* ===== DESCRIPTION ===== */

.demo-text {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 540px;
    font-weight: 500;
}

/* ===== BENEFITS CONTAINER ===== */

.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

/* ===== SINGLE BENEFIT ===== */

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

    .benefit-item img {
        width: clamp(18px, 1.2vw, 22px);
        height: auto;
    }

    .benefit-item span {
        font-size: clamp(0.95rem, 1vw, 1.05rem);
        color: rgb(83, 83, 83);
        font-weight: 500;
    }

/* =========================================================
   MOBILE EXTRA POLISH
========================================================= */

@media (max-width: 480px) {

    .demo-title {
        line-height: 1.2;
    }

    .demo-text {
        font-size: 1rem;
    }
}

/* =========================================================
   ================= MEDIA QUERIES =========================
========================================================= */

/* NAVBAR */
@media (max-width: 992px) {

    .nav-links,
    .btn-login,
    .btn-contact {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar-inner {
        justify-content: space-between;
    }
}

/* HERO */
@media (max-width: 992px) {
    .hero-images {
        height: auto;
        margin-top: 2rem;
    }

    .hero-tablet {
        display: none;
    }

    .hero-phone-wrapper {
        position: relative;
        right: auto;
        bottom: auto;
        width: 300px;
        margin: 0 auto;
    }

    .hero-overlay {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 2.1rem 1.5rem;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 0rem;
    }

    .hero-text {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-images {
        position: relative;
        height: auto;
    }

    .hero-tablet {
        display: none;
    }

    .hero-phone-wrapper {
        position: relative;
        width: 75%;
        max-width: 320px;
        right: auto;
        bottom: auto;
        margin: 0 auto;
    }

    .hero-phone {
        width: 100%;
    }
}

@media (min-width: 376px) and (max-width: 425px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-phone-wrapper {
        width: 260px;
    }

    .hero-container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .hero-text {
        margin-top: 25px;
    }
}

/* FEATURES */
@media (min-width: 968px) {
    .feature-item {
        flex-direction: row;
        text-align: left;
    }

        .feature-item:nth-child(even) {
            flex-direction: row-reverse;
        }

    .feature-img {
        flex: 1;
    }

    .feature-text {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .feature-item {
        position: relative;
        opacity: 1 !important;
        transform: none !important;
        flex-direction: column;
        text-align: center;
        margin-bottom: 3rem;
    }

    .feature-img {
        margin-bottom: 1.5rem;
    }

    .feature-text {
        max-width: 100%;
    }

    .features-dots {
        display: none;
    }
}

/* RENDICIONES */
@media (min-width: 640px) {
    .rendiciones-boxes {
        grid-template-columns: 1fr 1fr;
    }
}

/* PHONE */
@media (min-width: 1024px) {
    .phone-mockup {
        height: clamp(650px, 45vw, 1100px);
    }

    .hero-phone {
        margin-bottom: -85px;
    }

    .hero-tablet {
        width: 90%;
        right: 0px;
    }

    .gasto1 {
        top: 38%;
        left: 15%;
        width: 25rem;
    }

    .gasto2 {
        top: 68%;
        right: 2%;
        width: 25rem;
    }

    .gasto3 {
        top: 95%;
        left: 15%;
        width: 25rem;
    }
}

@media (min-width: 1440px) and (max-width: 2560) {

    .hero-phone {
        width: 90%;
        display: block;
        margin-left: 50px;
    }

    .gasto1 {
        top: 30%;
        left: 27%;
        width: 25rem;
    }

    .gasto2 {
        top: 55%;
        right: 2%;
        width: 25rem;
    }

    .gasto3 {
        top: 80%;
        left: 27%;
        width: 25rem;
    }

    .hero-title {
        font-size: clamp(5rem, 2vw, 3.2rem);
        line-height: 1.15;
        width: 850px;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.8rem;
        width: 650px;
    }

    .hero-tablet {
        width: 900px;
    }
}

@media (max-width: 1023px) {
    .features-section {
        display: none !important;
    }
}

@media (min-width: 1440px) {
    .phone-mockup {
        height: clamp(750px, 40vw, 1200px);
    }
}


/* CLIENTS */
@media (max-width: 768px) {
    .clients-section {
        padding: 2rem 2rem;
        border-radius: 20px;
    }

    .client-logo {
        width: 120px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .client-logo img {
            width: auto;
            height: auto;
            object-fit: contain;
        }
}

/* CARDS */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

        .cards-grid .card {
            grid-column: auto !important;
        }
}

/* SLIDER MOBILE */
@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }

    .slider-card {
        flex: 0 0 85%;
    }
}

/* Tablets */
@media (min-width: 768px) {
    .logo-img {
        height: clamp(80px, 6vw, 110px);
    }
}


/* Desktop grande */
@media (min-width: 1440px) {
    .logo-img {
        height: 130px;
        margin-bottom: 10px;
    }

    .nav-left {
        gap: 75px;
    }

    .hero-container {
        max-width: 1800px;
        margin-left: 0;
        padding-left: clamp(4rem, 8vw, 12rem);
    }
}


@media (max-width: 640px) {

    .control-container {
        grid-template-columns: 1fr;
    }

    .control-box {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* SECCION RENDICIONES EFICIENTES */

/* TABLET */
@media (min-width: 640px) {
    .rendiciones-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .rendiciones-box {
        align-items: center;
        /* centra todo el contenido */
        text-align: center;
    }

    .rendiciones-box-header {
        align-items: center;
        /* centra icono verticalmente */
        justify-content: center;
    }

    .rendiciones-icon {
        margin-top: 0;
        /* quitamos el micro ajuste desktop */
    }

    .rendiciones-section {
        padding-top: 0rem;
    }
}

/* SECCION nunca fue tan facil */

@media (max-width: 1024px) {

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .card:hover {
        transform: scale(1.08);
    }

    .control-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .cards-section {
        padding: 4rem 1.2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .card {
        align-items: center;
        /* centra contenido */
        text-align: center;
    }

        .card p {
            max-width: 100%;
            /* evita corte raro */
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
        }
}

@media (max-width: 480px) {

    .cards-grid {
        max-width: 100%;
    }

    .card {
        padding: 1.8rem 1.2rem;
    }

        .card img {
            height: 110px;
        }

        .card h3 {
            font-size: 1.05rem;
        }

        .card p {
            font-size: 0.92rem;
        }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {

    .slider-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .card {
        border-radius: 20px;
        padding: 1.8rem 1.4rem;
    }

        .card h3 {
            font-size: 1.1rem;
        }

        .card p {
            font-size: 0.95rem;
            line-height: 1.6;
        }
}

/* =========================
   SECCION PREGUNTAS
========================= */

.faq-section {
    padding: clamp(4rem, 8vw, 8rem) 6%;
    background: #fff;
    max-height: 850px;
}

/* CONTENEDOR PRINCIPAL (usa tu .faq1) */
.faq1 {
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: flex-start;
}

/* ===== LEFT SIDE ===== */

.faq-section h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 1.2rem;
    text-align: left;
}

.faq-section p {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--text-muted);
    max-width: 420px;
    text-align: left;
    margin: 0;
}

/* ===== FAQ ITEMS ===== */

.faq-container {
    width: 80%;
}

.faq-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
}

    .faq-question span span {
        line-height: 1.4;
    }

.faq-toggle {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-answer {
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.6;
    margin-top: 0.6rem;
    color: #555;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .faq-section .max-w-7xl {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq1 {
        max-width: 1300px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .faq1 {
            grid-template-columns: 1fr;
        }
    }

    .faq-section h2 {
        text-align: center;
    }

    .faq-section p {
        margin: auto;
        text-align: center;
        padding-bottom: 15px;
    }

    .faq-container {
        max-width: 700px;
        margin: 0 auto;
        text-align: left;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .faq-question {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.8rem;
    }

        .faq-question > span:first-child {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex: 1;
            min-width: 0;
        }

        .faq-question span span {
            flex: 1;
            min-width: 0;
            word-break: break-word;
        }

    /* Icono + */
    .faq-toggle {
        flex-shrink: 0;
        width: 28px;
        text-align: right;
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {

    .faq-section {
        padding: 4rem 1.5rem;
    }

        .faq-section h2 {
            font-size: 1.6rem;
            text-align: center;
        }

        .faq-section p {
            text-align: center;
        }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

/* =========================================================
   FAQ MOBILE FIX (<768px)
========================================================= */

@media (max-width: 768px) {

    .faq-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .faq-item {
        text-align: center;
        padding: 5px;
    }

    .faq-question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
    }

        .faq-question > span:first-child {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex: 1;
        }

    .faq-toggle {
        flex-shrink: 0;
        font-size: 1.5rem;
    }

    .faq-answer {
        text-align: center;
    }
}

/* =========================================================
   FAQ INTERACTIVE ANIMATION
========================================================= */

.faq-question {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .faq-question:hover {
        opacity: 0.85;
    }

.faq-toggle {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg) scale(1.15);
}

.faq-toggle:active {
    transform: scale(0.9);
}

/* seccion formulario */


.contact-section {
    display: flex;
    justify-content: center;
}

#crmWebToEntityForm {
    width: 100%;
    max-width: 560px;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease;
}

    #crmWebToEntityForm:hover {
        transform: translateY(-4px);
    }

/* ===== TITLE ===== */

.zcwf_title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-subtitle {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ===== ROWS ===== */

.zcwf_row {
    margin: clamp(0.8rem, 1.5vw, 1.2rem) 0;
}

/* ===== LABELS ===== */

.zcwf_col_lab {
    display: block;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: #6b7280;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* ===== INPUTS ===== */

input[type="text"],
textarea {
    width: 100%;
    padding: clamp(0.75rem, 1vw, 0.95rem) 1rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    font-size: clamp(0.9rem, 1vw, 1rem);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

    input[type="text"]:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(1, 177, 192, 0.15);
    }

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== CAPTCHA ===== */

.captcha {
    border-radius: 12px;
    margin-top: 0.5rem;
    max-width: 100%;
}

.zcwf_row a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.4rem;
}

    .zcwf_row a:hover {
        text-decoration: underline;
    }

/* ===== BUTTON ===== */

input[type="submit"] {
    width: 100%;
    padding: clamp(0.9rem, 1.2vw, 1.1rem);
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

    input[type="submit"]:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(1, 177, 192, 0.35);
    }

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    #crmWebToEntityForm {
        max-width: 500px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .contact-section {
        padding: 4rem 1.5rem;
    }

    #crmWebToEntityForm {
        max-width: 100%;
        border-radius: 22px;
    }
}

/* =========================================================
   SMALL MOBILE (375px ↓)
========================================================= */

@media (max-width: 480px) {

    #crmWebToEntityForm {
        padding: 1.8rem 1.4rem;
    }

    .zcwf_title {
        font-size: 1.5rem;
    }

    input[type="text"],
    textarea {
        font-size: 0.9rem;
    }

    input[type="submit"] {
        font-size: 0.95rem;
    }
}

/* Desktop grande */
@media (min-width: 1600px) {

    html {
        font-size: 17px;
        /* antes ~16px */
    }

    .cards-grid,
    .control-container {
        max-width: 1500px;
    }

    .clients-section {
        max-width: 80%;
        height: 570px;
        align-items: center;
    }

    .feature-title {
        font-size: 3rem;
    }

    .feature-description {
        font-size: 1.5rem;
    }
}


@media (min-width: 1920px) {

    html {
        font-size: 19px;
    }

    .section-container {
        max-width: 1700px;
    }

    .navbar-inner {
        max-width: 2000px;
    }

    .cards-grid,
    .control-container {
        max-width: 1700px;
    }

    .rendiciones-container {
        max-width: 2000px;
    }

    .rendiciones-box {
        width: 400px;
    }

        .rendiciones-box h3 {
            font-size: 1.6rem;
        }

        .rendiciones-box p {
            font-size: 1.1rem;
        }

    .lottie-phone {
        max-width: 800px;
    }

    .hero-phone {
        width: 100%;
        display: block;
        margin-bottom: -65px;
        margin-left: 155px;
    }

    .hero-overlay {
        position: absolute;
        width: 90%;
        will-change: transform;
    }

    .gasto1 {
        top: 35%;
        left: 52%;
        width: 25rem;
    }

    .gasto2 {
        top: 63%;
        left: 37%;
        width: 25rem;
    }

    .gasto3 {
        top: 89%;
        left: 52%;
        width: 25rem;
    }


    .card img {
        height: 265px;
    }

    .clients-section img {
        height: 85px;
    }

    .hero-container {
        gap: 6rem;
    }


    .hero-title {
        font-size: clamp(3rem, 2vw, 3.2rem);
        line-height: 1.15;
        width: 750px;
    }

    .hero-subtitle {
        font-size: clamp(0.2rem, 2vw, 1.3rem);
    }

    .hero-description {
        font-size: clamp(0.2rem, 2vw, 1.1rem);
    }
}

@media (min-width: 2560px) {

    html {
        font-size: 20px;
    }

    .section-container {
        max-width: 2000px;
    }

    .hero-container {
        max-width: 2300px;
    }

    .clients-section {
        max-width: 90%;
        height: 800px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 599px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/*RENDICIONES*/

@media (min-width: 1400px) {

    .rendiciones-container {
        max-width: 1500px;
    }

    .rendiciones-box {
        padding: 1.3rem 2.2rem;
        border-radius: 24px;
    }

        .rendiciones-box h3 {
            font-size: 1.4rem;
        }

        .rendiciones-box p {
            font-size: 1.05rem;
        }

    .rendiciones-gif {
        max-width: 600px;
    }
}

.faq-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
}

    .faq-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 12px;
    }

/* Mobile tweaks */
@media (max-width: 768px) {
    .faq-container {
        aspect-ratio: 1 / 1.6;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
    }

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: white;
}
