/* --- Variables de Color y Fuentes --- */
:root {
    --primary-bg: #181F3D;
    --secondary-bg: #1E2547;
    --text-color: #EAEAEA;
    --accent-color: #FFD700;
    --success-color: #32a852;
    --error-color: #d94545;
    --main-font: 'Poppins', sans-serif;
}

/* --- Clase de Utilidad --- */
.hidden {
    display: none;
}

/* --- Estilos Generales --- */
body {
    font-family: var(--main-font);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

h1, h2 {
    font-weight: 600;
}

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

/* --- Header y Hero Section --- */
.hero {
    background: linear-gradient(rgba(24, 31, 61, 0.8), rgba(24, 31, 61, 1)), url('https://www.transparenttextures.com/patterns/cubes.png');
    padding: 1rem 5%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

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

.logo {
    width: 150px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}
.cta-button:hover {
    transform: scale(1.05);
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* --- Secciones --- */
main section {
    padding: 4rem 10%;
    text-align: center;
}

main section:nth-child(odd) {
    background-color: var(--secondary-bg);
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}
.feature-card {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

/* --- Tecnologías --- */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.icon {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem;
}

/* --- Formulario de Registro --- */
form {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #4A5588;
    background-color: var(--primary-bg);
    color: var(--text-color);
    border-radius: 5px;
    font-family: var(--main-font);
    box-sizing: border-box;
}

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

.form-grid > * {
    grid-column: span 2;
}

@media (min-width: 600px) {
    .form-grid > *:nth-child(1),
    .form-grid > *:nth-child(2),
    .form-grid > *:nth-child(3),
    .form-grid > *:nth-child(4) {
        grid-column: span 1;
    }
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

button[type="submit"] {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
button[type="submit"]:hover {
    background-color: #ffd000;
}

#formMessage {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}
#formMessage.success {
    background-color: var(--success-color);
    color: white;
}
#formMessage.error {
    background-color: var(--error-color);
    color: white;
}

/* --- Estilos de la Ventana Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--secondary-bg);
    padding: 2rem 3rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--accent-color);
    margin-top: 0;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}
.close-modal:hover {
    color: var(--text-color);
}

.close-modal-btn {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.close-modal-btn:hover {
    background-color: #ffd000;
}

/* --- Estilos para el Footer --- */
footer {
    background-color: var(--primary-bg); 
    color: #ecf0f1; /* Un blanco suave */
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Para que se adapte en móviles */
    max-width: 1000px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #3498db; /* Línea azul de acento */
    padding-bottom: 10px;
    display: inline-block;
}

.footer-section a {
    color: #3498db; /* Azul brillante para el enlace */
    text-decoration: none;
    font-weight: 600;
}

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

.footer-bottom {
    border-top: 1px solid #34495e; /* Línea divisoria sutil */
    padding-top: 20px;
    font-size: 0.9rem;
    color: #95a5a6; /* Un gris más claro */
}
