/* ✅ Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to bottom, #010305 300%, #1a1a1a); /* ✅ Gradient extended to 40% */
    color: #f5f5f5; /* ✅ Brighter text */
    text-align: center;
    padding-top: 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ✅ También aseguramos que el contenedor principal crezca si es necesario */
.container {
    max-width: 600px; /* ✅ Establecemos un ancho máximo */
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
    color: #333;
}

/* ✅ Header con logo y menú */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #010305; /* ✅ Color de fondo corregido */
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    width: 40px;
    height: 40px;
}

/* ✅ Ajuste del logo en el header */
.logo img {
    width: 50px; /* Ajusta el tamaño del logo */
    height: auto;
    display: block;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #f5f5f5; /* ✅ Color claro para mejor visibilidad */
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #4CAF50;
}

/* ✅ Contenedor principal */
.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-top: 100px;
    animation: fadeIn 1s ease-in-out;
}

/* ✅ Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Títulos mejorados */
h1 {
    font-size: 28px;
    font-weight: 600;
}

.highlight {
    color: #4CAF50;
}

/* ✅ Subtítulos */
.subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    margin-top: 30px; /* ✅ Separa el botón de los elementos superiores */
}

.button:hover {
    background: #388E3C;
    transform: scale(1.05);
}

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

.feature {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-info p {
    font-size: 1.1em;
    margin: 10px 0;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

nav ul {
    list-style: none; /* ✅ Elimina los bullet points */
    display: flex; /* ✅ Hace que los elementos estén en una fila */
    gap: 20px; /* ✅ Espaciado entre los elementos */
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline; /* ✅ Asegura que los ítems estén en línea */
}

/* ✅ Ajustar dropdown para que se muestre correctamente debajo de "Legal" */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #010305;
    padding: 10px;
    border-radius: 8px;
    top: 100%; /* ✅ Ahora aparece justo debajo de "Legal" */
    left: 0;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
    text-align: left;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #dcdcdc;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #2e2e2e;
    color: #4CAF50;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ✅ Footer con color más claro y siempre al final */
footer {
    width: 100%;
    background: #262626; /* 15% más claro que antes */
    color: #f5f5f5;
    text-align: center;
    padding: 15px 0;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* ✅ Asegura que el cuerpo ocupe toda la pantalla y el footer se quede abajo */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ✅ Para que el contenido crezca y el footer quede abajo */
.main-content {
    flex-grow: 1; /* ✅ Esto empuja el footer sin modificar .container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* ✅ Ocultar elementos */
.hidden {
    display: none;
}

/* ✅ Estilo para mensajes de éxito y error */
.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

/* ✅ Spinner de carga */
.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ Estilos para los inputs */
.input-field {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}