:root {
    --blue: #2b5fa4;
    --blue-dark: #1e4a8a;
    --blue-light: #e8f0fa;
    --blue-mid: #407eb5;
    --green: #82ba22;
    --green-dark: #6a9c1b;
    --white: #ffffff;
    --offwhite: #f8fafb;
    --gray: #665f6f;
    --gray-light: #f1f3f5;
    --text: #2b5fa4;
    --text-muted: #665f6f;
    --wa-green: #25D366;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(43, 95, 164, 0.10);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ─── NAVBAR ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(43, 95, 164, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 130px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    background: var(--green);
    color: white !important;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: background 0.2s, transform 0.15s !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cta:hover {
    background: var(--green-dark) !important;
    transform: scale(1.03);
}

.nav-account {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-account:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--blue);
    z-index: 99;
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #2b5fa4 0%, #1e4a8a 60%, #153a6e 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.hero-bg-circle.c1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
}

.hero-bg-circle.c2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: 10%;
}

.hero-bg-circle.c3 {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 5%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
}

.hero-text {
    background: #2b5fa4ad;
    border-radius: 24px;
    padding: 2rem;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.hero-text h1 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.hero-text p{
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--green);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--green-dark);
}

.btn-wa {
    background: var(--wa-green);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-wa:hover {
    transform: translateY(-2px) scale(1.03);
    background: #1ebe5d;
}

.btn-wa svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 8px 40px rgba(30, 74, 138, 0.15);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.hero-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.hero-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 4px 12px rgba(130, 186, 34, 0.35);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(130, 186, 34, 0.35)
    }

    50% {
        box-shadow: 0 4px 20px rgba(130, 186, 34, 0.6)
    }
}

/* ─── SECTIONS COMMON ─── */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 580px;
}

/* ─── WHY US ─── */
.why {
    background: var(--offwhite);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid rgba(43, 95, 164, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--blue);
}

.why-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── PRODUCTOS SLIDER ─── */
.products {
    background: white;
}

.slider-outer {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.product-slide {
    min-width: calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(43, 95, 164, 0.12);
    background: white;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-img.bg1 {
    background: linear-gradient(135deg, #e8f0fa, #d0e2f5);
}

.product-img.bg2 {
    background: linear-gradient(135deg, #f0f5fb, #e8f0fa);
}

.product-img.bg3 {
    background: linear-gradient(135deg, #e0f0e8, #c8e6d4);
}

.product-img.bg4 {
    background: linear-gradient(135deg, #ecf7e0, #d8f0c0);
}

.product-img.bg5 {
    background: linear-gradient(135deg, #f0f5fb, #dce8f5);
}

.product-body {
    padding: 1.25rem;
}

.product-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.product-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-tag {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid rgba(43, 95, 164, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, border-color 0.2s;
}

.slider-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.slider-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--blue);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-light);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.dot.active {
    background: var(--blue);
    width: 20px;
    border-radius: 4px;
}

/* ─── COMO FUNCIONA ─── */
.how {
    background: var(--blue);
    color: white;
}

.how .section-title {
    color: white;
}

.how .section-label {
    color: rgba(255, 255, 255, 0.7);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.88rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* ─── ANALISIS DE AGUA ─── */
.analysis {
    background: var(--offwhite);
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.pdf-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(43, 95, 164, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.pdf-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--blue);
}

.pdf-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0fa, #d0e2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.pdf-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.pdf-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pdf-down {
    margin-left: auto;
    color: var(--blue);
    flex-shrink: 0;
}

.pdf-down svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ─── NORMAS IVESS ─── */
.normas {
    background: white;
}

.normas-intro {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.normas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.norma-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(43, 95, 164, 0.1);
    transition: background 0.2s;
}

.norma-item:hover {
    background: var(--blue-light);
}

.norma-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.norma-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.norma-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ─── FAQ ─── */
.faq {
    background: var(--offwhite);
}

.faq-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(43, 95, 164, 0.1);
    overflow: hidden;
}

.faq-q {
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    transition: background 0.2s;
}

.faq-q:hover {
    background: var(--blue-light);
}

.faq-q .arrow {
    color: var(--blue);
    transition: transform 0.3s;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-q .arrow {
    transform: rotate(180deg);
}

.faq-a {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-a p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── TESTIMONIOS ─── */
.reviews {
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--offwhite);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(43, 95, 164, 0.08);
    position: relative;
}

.review-quote {
    font-size: 3rem;
    color: var(--blue-light);
    line-height: 0.8;
    margin-bottom: 0.5rem;
    font-family: serif;
}

.review-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.review-author-info strong {
    font-size: 0.9rem;
    display: block;
}

.review-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── CTA STRIP ─── */
.cta-strip {
    background: var(--blue);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-strip h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta-strip p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--blue);
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s;
}

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

/* ─── FOOTER ─── */
footer {
    background: #1a3a5c;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    animation: pulse 2.5s infinite;
    transition: transform 0.2s;
    cursor: pointer;
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .hero-content {
        padding: 3rem 1.5rem;
    }

    .steps::before {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .product-slide {
        min-width: calc((100% - 1.5rem) / 2);
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 600px) {
    section {
        padding: 3.5rem 1.2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .product-slide {
        min-width: 100%;
        width: 100%;
    }

    .product-img {
        height: 150px;
    }
}
