/* === RESET Y BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2d2d2d;
    line-height: 1.6;
    background-color: #f7f9fc;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'Mattone', sans-serif;
    line-height: 1.2;
}

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

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

/* === BARRA DE PROGRESO === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0fa3b1, #f7a072);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s linear;
}

/* === ANIMACIONES SCROLL === */
.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: #f7a072;
    color: #fff;
}

.btn-primary:hover {
    background-color: #f58b52;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f4f5 0%, #f7f9fc 100%);
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
    padding: 100px 0 80px;
}

.hero-text {
    text-align: left;
}

.hero-collage {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    min-height: 480px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.collage-grande img {
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-pequenas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collage-pequenas img {
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    width: 100%;
    object-fit: contain;
}

.collage-pequenas img:last-child {
    object-fit: cover;
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background-color: #0fa3b1;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    background-color: #f7a072;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.hero .btn:hover {
    background-color: #f58b52;
}

.hero-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #0fa3b1;
    border-bottom: 2px solid #0fa3b1;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === DATOS IMPACTANTES === */
.datos {
    padding: 60px 0;
    background: linear-gradient(135deg, #0fa3b1 0%, #0c8b97 100%);
    color: #fff;
}

.datos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.dato-card {
    padding: 20px;
}

.dato-numero {
    font-family: 'Mattone', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.dato-simbolo {
    font-family: 'Mattone', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.dato-card p {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* === SPLIT SECTIONS (imagen + texto) === */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

.split-image img {
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.split-text h2 {
    font-size: 2rem;
    color: #0c8b97;
    margin-bottom: 20px;
}

.split-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 14px;
}

/* === EL PROBLEMA === */
.problema {
    padding: 80px 0;
    background-color: #fff;
}

/* === QUÉ INCLUYE === */
.incluye {
    padding: 80px 0;
    background-color: #f0f7f8;
}

.incluye > .container > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #0c8b97;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 48px;
}

.incluye-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.incluye-item {
    padding: 28px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #d4eaed;
    transition: transform 0.3s, box-shadow 0.3s;
}

.incluye-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 163, 177, 0.12);
}

.incluye-numero {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f7a072;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.incluye-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.incluye-item p {
    font-size: 0.95rem;
    color: #666;
}

/* === CÓMO FUNCIONA === */
.como-funciona {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.como-funciona h2 {
    font-size: 2rem;
    margin-bottom: 56px;
    color: #0c8b97;
}

.pasos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

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

.paso-numero {
    width: 56px;
    height: 56px;
    background-color: #0fa3b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Mattone', sans-serif;
    margin: 0 auto 20px;
}

.paso-linea {
    display: none;
}

.paso h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.paso p {
    font-size: 0.95rem;
    color: #666;
    max-width: 260px;
    margin: 0 auto;
}

/* Línea conectora entre pasos (desktop) */
@media (min-width: 769px) {
    .paso:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 28px;
        left: calc(50% + 36px);
        width: calc(100% - 72px);
        height: 2px;
        background: linear-gradient(90deg, #0fa3b1, #f7a072);
        z-index: 0;
    }
}

/* === PARA QUIÉN === */
.para-quien {
    padding: 80px 0;
    background-color: #f0f7f8;
}

.para-quien-lista {
    margin-top: 8px;
}

.para-quien-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background-color: #0fa3b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.para-quien-item p {
    font-size: 1rem;
    color: #444;
}

/* === TESTIMONIOS === */
.testimonios {
    padding: 80px 0;
    background-color: #fff;
}

.testimonios h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: #0c8b97;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonio-card {
    background-color: #f7f9fc;
    border: 1px solid #d4eaed;
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s;
}

.testimonio-card:hover {
    transform: translateY(-4px);
}

.testimonio-estrellas {
    color: #f7a072;
    font-size: 1.2rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonio-texto {
    font-size: 0.95rem;
    color: #444;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonio-avatar {
    width: 40px;
    height: 40px;
    background-color: #0fa3b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonio-autor strong {
    display: block;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.testimonio-autor span {
    font-size: 0.8rem;
    color: #999;
}

/* === CTA INTERMEDIO === */
.cta-intermedio {
    padding: 80px 0;
    background: linear-gradient(135deg, #0fa3b1 0%, #0c8b97 100%);
    text-align: center;
    color: #fff;
}

.cta-intermedio h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-intermedio p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-intermedio .btn-primary {
    background-color: #f7a072;
    color: #fff;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.cta-intermedio .btn-primary:hover {
    background-color: #f58b52;
}

/* === FORMULARIO === */
.formulario {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f4f5 0%, #f7f9fc 100%);
}

.formulario-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.form-image img {
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}

.form-wrapper {
    background-color: #fff;
    padding: 44px 36px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #0c8b97;
}

.form-subtitle {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d4eaed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #0fa3b1;
    box-shadow: 0 0 0 3px rgba(15, 163, 177, 0.15);
}

.form-legal {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #aaa;
}

.form-legal a {
    text-decoration: underline;
    color: #0fa3b1;
}

/* === FOOTER === */
.footer {
    padding: 40px 0;
    background-color: #1a2a2c;
    color: #bbb;
    text-align: center;
}

.footer-aviso {
    font-size: 0.85rem;
    max-width: 500px;
    margin: 0 auto 20px;
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #0fa3b1;
}

.footer-copy {
    font-size: 0.8rem;
    color: #777;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 80px 0 60px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-collage {
        grid-template-columns: 1fr 1fr;
    }

    .collage-grande {
        grid-column: 1 / -1;
    }

    .collage-grande img {
        aspect-ratio: 16/9;
    }

    .collage-pequenas {
        flex-direction: row;
        grid-column: 1 / -1;
    }

    .collage-pequenas img {
        aspect-ratio: 16/9;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .datos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dato-numero {
        font-size: 2.8rem;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split-reverse {
        direction: ltr;
    }

    .incluye-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pasos {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .formulario-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-image {
        order: -1;
    }

    .form-image img {
        aspect-ratio: 16/9;
    }

    .form-wrapper {
        padding: 32px 24px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-botones {
        justify-content: center;
    }
}

/* === CHECKBOX FORMULARIO === */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    text-align: left;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0fa3b1;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.form-checkbox label a {
    color: #0fa3b1;
    text-decoration: underline;
}

/* === BANNER DE COOKIES === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a2a2c;
    color: #ddd;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.oculto {
    display: none;
}

.cookie-texto p {
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

.cookie-link {
    font-size: 0.8rem;
    color: #0fa3b1;
    text-decoration: underline;
}

.cookie-botones {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: opacity 0.2s;
}

.btn-cookie:hover {
    opacity: 0.85;
}

.btn-cookie-aceptar {
    background-color: #0fa3b1;
    color: #fff;
}

.btn-cookie-rechazar {
    background-color: transparent;
    color: #bbb;
    border: 1px solid #555;
}

/* === PÁGINAS LEGALES === */
.legal-page {
    padding: 60px 0 80px;
    background-color: #f7f9fc;
}

.legal-page .container {
    max-width: 760px;
}

.legal-volver {
    display: inline-block;
    color: #0fa3b1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    text-decoration: none;
}

.legal-volver:hover {
    text-decoration: underline;
}

.legal-page h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.legal-fecha {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.3rem;
    color: #0c8b97;
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-page h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-page p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-page ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-page a {
    color: #0fa3b1;
    text-decoration: underline;
}

.cookie-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.cookie-tabla th {
    background-color: #0fa3b1;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.cookie-tabla td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.cookie-tabla tr:nth-child(even) td {
    background-color: #f0f7f8;
}

/* === MENSAJE DE ÉXITO DEL FORMULARIO === */
.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #8B6F5C;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h2 {
    color: #4a3728;
    margin-bottom: 12px;
    font-size: 26px;
}

.form-success p {
    color: #5c4a3a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.form-success .success-sub {
    font-size: 14px;
    color: #8B6F5C;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
