/* ===== RESET Y VARIABLES ===== */
:root {
    --azul-profundo: #0F1B33;
    --azul-corporativo: #1E3A6F;
    --celeste: #4A8BC2;
    --dorado: #F5A623;
    --gris-claro: #F6F8FA;
    --blanco: #FFFFFF;
    --texto-oscuro: #1A202C;
    --gris-borde: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
    color: var(--texto-oscuro);
    background: var(--blanco);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER (blanco) ===== */
header {
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-borde);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
    /* Si el logo es oscuro, sobre fondo blanco contrasta bien */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--texto-oscuro);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--azul-corporativo);
    border-bottom-color: var(--dorado);
}

.btn-cta-nav {
    background: var(--azul-corporativo);
    color: white !important;
    padding: 0.5rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    border-bottom: none !important;
    transition: background 0.3s, transform 0.2s;
}

.btn-cta-nav:hover {
    background: var(--azul-profundo);
    transform: translateY(-2px);
    color: white !important;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--azul-profundo);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-corporativo) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    background: var(--dorado);
    color: var(--azul-profundo);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(245, 166, 35, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--azul-profundo);
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-features span {
    background: rgba(255,255,255,0.08);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

/* ===== PROBLEMA vs SOLUCIÓN ===== */
.problema-solucion {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.problema-solucion .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.problema h2,
.solucion h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.problema-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-left: 4px solid var(--dorado);
}

.problema-item .icono-problema {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.problema-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.solucion {
    background: var(--azul-profundo);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
}

.solucion h2 {
    color: var(--dorado);
}

.solucion-lista {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.solucion-lista li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
}

.solucion .btn {
    margin-top: 0.5rem;
}

/* ===== BENEFICIOS ===== */
.beneficios {
    padding: 3rem 0 4rem;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--azul-profundo);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--dorado);
    margin: 0.5rem auto 0;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-beneficio {
    background: var(--gris-claro);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid transparent;
}

.card-beneficio:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    border-color: var(--gris-borde);
}

.card-beneficio .icono {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.card-beneficio h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--azul-profundo);
}

.card-beneficio p {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SIMULADOR ===== */
.simulador {
    background: var(--azul-corporativo);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
}

.simulador h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.simulador p {
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.simulador-inputs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 650px;
    margin: 0 auto;
}

.simulador-inputs input {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: none;
    flex: 1 1 160px;
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    color: white;
    outline: none;
}

.simulador-inputs input::placeholder {
    color: rgba(255,255,255,0.5);
}

.simulador-inputs input:focus {
    background: rgba(255,255,255,0.25);
}

.simulador .btn {
    background: var(--dorado);
    color: var(--azul-profundo);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.simulador .btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

.resultado {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dorado);
    margin: 1.5rem 0 0.5rem;
}

.detalle {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== TESTIMONIOS ===== */
.testimonios {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonio {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.testimonio:hover {
    transform: translateY(-4px);
}

.testimonio p {
    font-style: italic;
    font-size: 1.05rem;
    color: #2D3748;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonio cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: var(--azul-profundo);
}

.testimonio cite::before {
    content: "— ";
    color: var(--dorado);
}

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-corporativo) 100%);
    text-align: center;
    color: white;
}

.cta-final h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.cta-final p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-final .btn-grande {
    font-size: 1.2rem;
    padding: 1rem 3.5rem;
    background: var(--dorado);
    color: var(--azul-profundo);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.35);
}

.cta-final .btn-grande:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(245, 166, 35, 0.5);
}

/* ===== FOOTER ===== */
footer {
    background: var(--azul-profundo);
    color: white;
    padding: 3rem 0 1.5rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

footer p,
footer a {
    color: #B0C4DE;
    font-size: 0.95rem;
    line-height: 1.6;
}

footer a:hover {
    color: white;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.4rem;
}

footer .copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #7A8BA8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1rem 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--gris-borde);
    }
    nav ul.open {
        display: flex;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    .btn-cta-nav {
        background: var(--azul-corporativo);
        color: white !important;
        padding: 0.6rem 0;
        border-radius: 50px;
        width: 100%;
        display: inline-block;
    }
    .problema-solucion .container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-features {
        gap: 0.8rem;
    }
    .hero-features span {
        font-size: 0.85rem;
        padding: 0.2rem 0.8rem;
    }
    .cta-final h2 {
        font-size: 1.8rem;
    }
    .simulador-inputs input {
        flex: 1 1 100%;
    }
}

/* ===== PÁGINA DE CONTACTO ===== */
.contacto-page {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-info h1 {
    font-size: 2.5rem;
    color: var(--azul-profundo);
    margin-bottom: 1rem;
}

.contacto-info p {
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contacto-detalles {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.contacto-detalles p {
    margin-bottom: 0.5rem;
}

.contacto-detalles a {
    color: var(--azul-corporativo);
    text-decoration: none;
}

.contacto-detalles a:hover {
    text-decoration: underline;
}

.contacto-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.contacto-form .form-group {
    margin-bottom: 1.2rem;
}

.contacto-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--azul-profundo);
    font-size: 0.95rem;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gris-borde);
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.2s;
    font-family: inherit;
    background: var(--gris-claro);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    border-color: var(--azul-corporativo);
    outline: none;
    background: white;
}

.contacto-form .btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1.1rem;
}

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background: #FED7D7;
    color: #C53030;
    border: 1px solid #FEB2B2;
}

/* ===== PÁGINA DE GRACIAS ===== */
.gracias-page {
    padding: 5rem 0;
    background: var(--gris-claro);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.gracias-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.gracias-icono {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.gracias-content h1 {
    font-size: 2.5rem;
    color: var(--azul-profundo);
    margin-bottom: 1rem;
}

.gracias-content p {
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.gracias-content a {
    color: var(--azul-corporativo);
    text-decoration: none;
}

.gracias-content a:hover {
    text-decoration: underline;
}

.gracias-content .btn {
    margin-top: 1.5rem;
    display: inline-block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contacto-info h1 {
        font-size: 2rem;
    }
    .gracias-content {
        padding: 2rem 1.5rem;
    }
    .gracias-content h1 {
        font-size: 2rem;
    }
}