body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.hero {
    background: linear-gradient(135deg, #6dd5ed, #2193b0); /* Gradiente moderno */
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden; /* Para efectos de fondo */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Para que el texto esté encima del fondo */
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.benefits {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
}

.benefits h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.benefit-card i {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 15px;
}

.benefit-card h3 {
    margin-top: 0;
    color: #555;
}

.login-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

.login-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    width: 100%;
}

.login-form button:hover {
    background-color: #1e7e34;
}

.login-form a {
    color: #007bff;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* Estilos para el fondo dinámico (ejemplo con gradiente animado) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientAnimation 15s infinite;
    opacity: 0.6;
    z-index: 1;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Estilos Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}




/* --- ESTILOS PARA MODALES DINÁMICOS Y CAPAS FLOTANTES --- */
.modal-legal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-legal-content {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.25s ease-out;
}

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

.modal-legal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.modal-legal-header h3 {
    margin: 0;
    color: #4834d4;
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-legal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-legal-close:hover {
    color: #ef4444;
}

.modal-legal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.modal-legal-body h4 {
    color: #0f172a;
    margin: 16px 0 6px 0;
    font-size: 0.95rem;
}

.modal-legal-body h4:first-child {
    margin-top: 0;
}

.modal-legal-body p {
    margin: 0 0 12px 0;
}

.modal-legal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

.btn-modal-aceptar {
    background: #4834d4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-aceptar:hover {
    background: #3b2ab0;
}