:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-primary-navy: #001d3d;
    --color-primary-green: #006d4e;
    --color-accent-blue: #00a8e8;
    --color-text-main: #2d2d2d;
    --color-text-dim: #64748b;
    --color-white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0, 29, 61, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    /* Aumentado a 1.2rem */
    line-height: 1.75;
    /* Mejorado */
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
    color: var(--color-primary-navy);
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 4.2rem;
    /* Mas grande */
    letter-spacing: -2px;
}

h2 {
    font-size: 3.2rem;
    /* Mas grande */
    letter-spacing: -1px;
}

h3 {
    font-size: 2.2rem;
    /* Mas grande */
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utils */
.text-highlight {
    color: var(--color-primary-green);
    position: relative;
}


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

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

.bg-light {
    background-color: var(--color-bg-alt);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(0, 109, 78, 0.39);
}

.btn--primary:hover {
    transform: translateY(-2px);
    background-color: #00563e;
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-primary-navy);
    border: 1px solid #e2e8f0;
}

.btn--secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary-navy);
}

.btn--small {
    padding: 0.5rem 1.2rem;
    background-color: var(--color-primary-navy);
    color: var(--color-white);
}

.btn--block {
    display: block;
    width: 100%;
}

/* Header & Nav */
.header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--color-text-main);
    font-weight: 500;
}

.nav__link:hover {
    color: var(--color-primary-green);
}

.logo-img {
    height: 22px;
    /* Un pelín más pequeño */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .f-pro {
    color: var(--color-primary-green);
}

.logo-text .f-pac {
    color: var(--color-primary-navy);
}

/* Menú hamburguesa móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-navy);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-navy);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 220px 0 140px;
    background: #fff;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 2;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 3;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

.hero__visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--color-white);
}

.hero__img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
}

/* Trust Info Adjusted */
.trust-info {
    padding: 100px 0;
    background-color: var(--color-primary-navy);
    color: var(--color-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.trust-title {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.trust-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.trust-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Services */
.services {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-box {
    background-color: var(--color-white);
    padding: 3.5rem 2.8rem;
    border-radius: 30px;
    border: 1px solid #f1f5f9;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 29, 61, 0.03);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary-green);
}

.service-box h3 {
    font-size: 1.5rem;
    /* Ajustado a un poco más pequeño */
    margin-bottom: 1.2rem;
    color: var(--color-primary-navy);
    font-weight: 700;
    padding-left: 2rem;
    /* Alineado con el texto de la lista */
}

.service-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-dim);
    padding-left: 2rem;
    /* Alineado con el texto de la lista */
}

.service-list {
    margin: 2.5rem 0;
    flex-grow: 1;
}

.service-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.5;
}

.service-list li strong {
    color: var(--color-text-main);
}

.list-divider {
    border-top: 1px solid #f1f5f9;
    margin-top: 1.2rem !important;
    padding-top: 1.2rem !important;
    padding-left: 0 !important;
}

.list-divider::before {
    display: none;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-green);
    font-weight: 700;
}



.services-disclaimer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    font-style: italic;
    opacity: 0.8;
}

/* Methodology */
.methodology {
    padding: 140px 0;
    background-color: var(--color-bg-alt);
}

.methodology__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.m-step {
    padding: 1rem 0;
}

.m-step__card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.m-step__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary-green);
}

.m-step__icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-navy);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 29, 61, 0.2);
}

.m-step__card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary-navy);
}

.m-step__card p {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* Guarantee Section */
.guarantee-section {
    padding: 100px 0;
}

.guarantee-card {
    background: var(--color-white);
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 29, 61, 0.05);
    border: 1px solid #f1f5f9;
}

.guarantee-phrase {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    font-weight: 800;
    /* text-transform: uppercase; Eliminado para ponerlo en minúscula según petición */
    letter-spacing: -0.5px;
}

.guarantee-offer {
    font-size: 1.4rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

/* Contact */
.contact {
    padding: 140px 0;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 5rem 4rem;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 29, 61, 0.04);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.contact-form {
    margin-top: 3.5rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

input,
select {
    width: 100%;
    padding: 1.2rem 1.8rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-primary-navy);
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    background-color: var(--color-white);
    border-color: var(--color-primary-green);
    box-shadow: 0 0 0 4px rgba(0, 109, 78, 0.08);
    transform: translateY(-2px);
}

select {
    margin-bottom: 2rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23001d3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.2em;
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    background-color: var(--color-primary-navy);
    color: var(--color-white);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    /* Aumentado */
    font-weight: 500;
}

.footer__block a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.2rem;
}

.footer__block a:hover {
    color: var(--color-white);
}

.footer__block:last-child a {
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer__right a:hover {
    border-color: var(--color-white);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
    cursor: pointer;
    border: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    color: var(--color-primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    font-size: 24px;
    /* Unificado con el icono de WA */
    transition: var(--transition);
    opacity: 0.9;
}

.cookie-settings-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    /* Centrado perfectamente */
    width: 90%;
    max-width: 700px;
    background-color: white;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 24px;
    z-index: 2000;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-link {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.8rem;
    }

    .hero__grid {
        gap: 2rem;
    }

    .services__grid,
    .methodology__steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .hero__visual {
        display: none;
    }

    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Center horizontally */
        gap: 2rem;
        /* Spacing between links */
        transition: 0.4s ease;
        box-shadow: none;
        z-index: 2100;
        /* Over everything including cookies and WA */
    }

    .nav__list li {
        margin: 0;
    }

    .nav__link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-primary-navy);
    }

    .nav__list.active {
        right: 0;
    }

    .menu-toggle {
        z-index: 2200;
        /* Ensure toggle is always above the menu */
    }

    .hero__grid,
    .services__grid,
    .methodology__steps,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn--secondary {
        margin-left: 0;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer__block p {
        margin-bottom: 0.5rem;
    }

    .section-title,
    .trust-title {
        font-size: 1.8rem !important;
    }

    .guarantee-phrase {
        font-size: 1.6rem !important;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .guarantee-card {
        padding: 3rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cookie-banner {
        width: 95%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        padding: 2rem;
    }
}

/* Legal Pages Styling - Premium & High Spacing */
.legal-section {
    padding: 240px 0 120px;
    /* Padding extra para evitar el header */
    background-color: #f8fafc;
    min-height: 100vh;
}

.legal-card {
    background-color: var(--color-white);
    padding: 6rem 5rem;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 29, 61, 0.04);
    border: 1px solid #f1f5f9;
    max-width: 1100px;
    /* Aumentado ligeramente para acompañar al container */
    margin: 0 auto;
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--color-primary-navy);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.legal-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary-navy);
    margin: 4rem 0 2rem;
    /* Mucho más aire entre secciones */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-content h4 {
    font-size: 1.25rem;
    color: var(--color-primary-navy);
    margin: 3rem 0 1.5rem;
    font-weight: 600;
}

.legal-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    /* Interlineado muy cómodo */
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    /* Margen amplio entre párrafos */
}

.legal-content ul {
    margin: 2rem 0 3rem 2rem;
}

.legal-content li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-dim);
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
}

.legal-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary-green);
    font-weight: bold;
    font-size: 1.5rem;
}

.data-block {
    background-color: #f1f5f9;
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    border-left: 6px solid var(--color-primary-green);
}

.data-block p {
    margin-bottom: 1rem !important;
    font-weight: 600;
    color: var(--color-primary-navy);
}

.data-block p strong {
    color: var(--color-primary-green);
    margin-right: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 160px 0 80px;
    }

    .legal-card {
        padding: 4rem 2rem;
        border-radius: 30px;
    }

    .legal-section h1 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .legal-content p {
        font-size: 1.05rem;
    }
}