/* Reset y Estilos Base */
:root {
    --primary-color: #0052cc; /* Azul corporativo */
    --secondary-color: #f4f5f7; /* Gris claro para fondos */
    --text-color: #172b4d; /* Azul oscuro para texto */
    --text-color-light: #505f79;
    --accent-color: #0065ff; /* Un azul un poco más brillante para acentos */
    --success-color: #00875a;
    --error-color: #de350b;
    --white-color: #ffffff;
    --border-color: #dfe1e6;

    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color); /* Fondo blanco para limpieza */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1em;
    color: var(--text-color-light);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* Header y Navegación */
header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px; /* Adjust based on your logo's aspect ratio */
    width: auto;
    display: block;
}

.language-selector select {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none; /* Para quitar el estilo por defecto del navegador */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 2.5em; /* Espacio para el icono de flecha */
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}


/* Hero Section */
#hero {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Fondo suave para la sección hero */
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 30px;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.newsletter-form h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5em;
    text-align: left;
}

.newsletter-form p {
    font-size: 0.9rem;
    margin-bottom: 1.5em;
    text-align: left;
}

#subscribe-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#subscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

#subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

#subscribe-form button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#subscribe-form button:hover {
    background-color: var(--accent-color);
}

.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: left;
}

.form-message.success {
    color: var(--success-color);
}

.form-message.error {
    color: var(--error-color);
}


/* Features Section */
#features {
    padding: 60px 20px;
}

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

.feature-item {
    background-color: var(--white-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */ /* Sombra más sutil */
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Empuja el footer al final de la página */
}

footer p {
    margin-bottom: 0.5em;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

footer a {
    color: var(--white-color);
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    #subscribe-form {
        flex-direction: column;
        align-items: stretch;
    }

    #subscribe-form input[type="email"],
    #subscribe-form button {
        width: 100%;
    }

    header nav {
        flex-direction: column;
        gap: 10px;
    }
    .logo a {
        font-size: 1.6rem;
    }
    .language-selector select {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .newsletter-form {
        padding: 20px;
    }

    #subscribe-form input[type="email"],
    #subscribe-form button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack features on small screens */
    }
}
