:root {
    --primary: #ff0033;
    --secondary: #292c3e;
    --accent: #3b82f6;
    --marca: #003466;
    --bg: #ffffff;
    --section-alt: #f8fafc;
    --text-main: #475569;
    --text-dark: #0f172a;
}

/* --- BASE & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid #f1f5f9;
}

.center {
    text-align: center;
}

/* --- NAVEGACIÓN BRANDING DEFINITIVO --- */
header {
    background: var(--marca);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

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


.logo-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-brand-block:hover {
    transform: scale(1.02);
}


.logo-brand-block img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    display: block;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-text-wrapper .brand-name {
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.brand-text-wrapper .brand-motto {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}
/* --- HERO --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #fff0f2, #ffffff);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 320px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
}

.hero-img {
    flex: 1;
    min-width: 320px;
    text-align: center;
    position: relative;
}

.hero-img img {
    width: 135%;
    border-radius: 35px;
    transform: translateX(10%);
}

.btn-main {
    background: var(--primary);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px -5px rgba(255, 0, 51, 0.4);
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(255, 0, 51, 0.6);
}

/* Contenedor Principal (Fondo oscuro) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Se activa con la clase .is-visible en JS */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.is-visible {
    display: flex;
}

/* Caja del Modal */
.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden; /* Para que el azul respete las esquinas redondeadas */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.3s ease-out;
}

/* Cabecera Azul */
.modal-header-blue {
    background: #003466; /* Tu azul corporativo */
    padding: 30px 20px;
    text-align: center;
    position: relative;
    color: white;
}

.modal-header-blue img {
    width: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.modal-header-blue h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

/* Botón X de cerrar */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

/* Cuerpo y Formulario */
.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.input-group {
    position: relative;
    margin-bottom: 15px;    
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #ff0037;
}

.btn-submit-modal {
    width: 100%;
    background: #ff0037;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit-modal:hover {
    transform: translateY(-2px);
    background: #e60032;
}

.label-email {
    display: block;
    text-align: center;
    text-transform: lowercase;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.label-email i {
    margin-right: 5px;
    color: #003466;
}

.link-black {
    color: #000000 !important;
    text-decoration: underline;
    font-weight: 600;
}

.link-black:hover {
    color: #ff0037;
}

.input-group input {
    text-align: center;
    border: 2px solid #e1e1e1;
}

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

/* --- PAIN POINTS --- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pain-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: 0.4s;
}

.pain-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.pain-card i {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.solution-intro {
    background: var(--section-alt);
    padding: 60px;
    border-radius: 30px;
    margin-top: 60px;
    border: 1px dashed #cbd5e1;
}

/* --- SHOWCASE --- */
.app-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.app-img-box {
    flex: 1;
    min-width: 300px;
}

.app-img-box img {
    width: 100%;
    max-width: 510px;
    border-radius: 20px
}

.app-text {
    flex: 1;
    min-width: 300px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.feature-list li:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- FTR & MISIÓN --- */
.ftr-box {
    background: var(--secondary);
    color: white;
    padding: 20px 50px;
    border-radius: 16px;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 8px;
    margin: 30px auto;
    display: inline-block;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ftr-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border-top: 5px solid var(--primary);
}

.mission-box {
    background: var(--secondary);
    color: white;
    padding: 60px 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.mission-box h2 {
    color: white;
}

/* --- ZONAS MADRID --- */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.zone-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--primary);
}

.zone-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.zone-info i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* --- PASOS --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.step-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--section-alt);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    font-weight: 800;
    border: 2px solid #f1f5f9;
    transition: 0.3s;
}

.step-card:hover .step-icon-circle {
    background: var(--primary);
    color: white;
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- TABLA & FAQ --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 40px;
}

table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: var(--secondary);
    color: white;
}

.cross {
    color: #ef4444;
    font-weight: bold;
}

.check {
    color: #10b981;
    font-weight: bold;
}

.faq-grid {
    max-width: 900px;
    margin: 40px auto 0;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- MOBILE ADJUSTMENTS --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

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

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--marca);
        padding: 20px;
        gap: 20px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero-container,
    .app-showcase {
        flex-direction: column;
        text-align: center;
    }

    .hero-img img {
        width: 100%;
        transform: none;
        max-width: 350px;
    }

    .hero-img {
        order: -1;
    }

    section {
        padding: 60px 0;
    }

    .ftr-box {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
}

/* --- FOOTER --- */
footer {
background: var(--marca);
padding: 60px 0 30px 0;
color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px;
}

.footer-column h3, .footer-column h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-legal-container a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-legal-container a:hover {
    color: white;
}

.legal-sep {
    margin: 0 10px;
    opacity: 0.3;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}