/* Reset básico y fuentes */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap'); /* Fuente limpia */

:root {
    --primary-color: #005f73; /* Azul oscuro profesional */
    --secondary-color: #0a9396; /* Verde azulado */
    --accent-color: #94d2bd; /* Verde pálido */
    --light-color: #ffffff;
    --dark-color: #212529; /* Gris oscuro para texto */
    --grey-bg-color: #f8f9fa; /* Fondo gris muy claro */
    --hero-overlay-color: rgba(0, 44, 53, 0.6); /* Overlay oscuro para texto legible en Hero */
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: background-color 0.3s ease; /* Suave transición para cambios */
}

/* Utilidad para ocultar/mostrar contenido de idioma */
.lang-es { display: none; }
.lang-en { display: block; }

body.show-es .lang-es { display: block; }
body.show-es .lang-en { display: none; }

body.show-en .lang-en { display: block; }
body.show-en .lang-es { display: none; }


h1, h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2rem; }

p {
    margin-bottom: 1rem;
    font-weight: 300; /* Más ligero para texto principal */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky; /* O fixed si prefieres que siempre esté visible */
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contenedor del Logo y Nombre */
.logo {
    display: flex;       /* Usa flexbox para alinear imagen y texto */
    align-items: center; /* Centra verticalmente */
    gap: 0.8rem;         /* Espacio entre logo y texto */
}

/* Estilo de la Imagen del Logo */
.logo img {
    height: 50px; /* Altura del logo (ajusta si es necesario) */
    width: auto;
    display: block;
}

/* Estilo del Nombre del Sitio */
.site-name {
    font-size: 1.6rem; /* Tamaño del texto */
    font-weight: 700; /* Negrita */
    color: var(--primary-color); /* Color principal */
    line-height: 1; /* Ajuste de altura de línea */
}

.language-switcher .lang-button {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.language-switcher .lang-button:hover,
.language-switcher .lang-button.active {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* Hero Section */
.hero {
    min-height: 70vh; /* Altura considerable */
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.hero::before { /* Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color);
}

.hero-content {
    position: relative; /* Para estar sobre el overlay */
    z-index: 1;
    max-width: 800px; /* Limita el ancho del texto */
}

.hero h1 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300; /* Texto de apoyo más ligero */
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Focus Section */
.focus {
    padding: 4rem 0;
    background-color: var(--grey-bg-color);
}

.focus-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.focus-text {
    flex: 1;
}

.focus-image {
    flex: 1;
    max-width: 450px; /* Controla tamaño de imagen */
}

.focus-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Why CORSIA Section */
.why-corsia {
    padding: 3rem 0;
    background-color: var(--light-color);
    text-align: center;
}
.why-corsia .container {
     max-width: 800px;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--primary-color); /* Fondo oscuro para destacar */
    color: var(--light-color);
    text-align: center;
}

.contact h2 {
    color: var(--light-color);
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all; /* Evita desbordamiento en móviles */
}

.contact-email:hover {
    color: var(--light-color);
}

.contact-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

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

    .hero { min-height: 50vh; }
    .hero p { font-size: 1rem; }

    .focus-container {
        flex-direction: column;
        text-align: center;
    }

    .focus-image {
        margin-top: 2rem;
        max-width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem; /* Aumentar un poco el espacio en móvil */
    }
    .logo {
        /* Centrar logo y nombre en móvil */
        justify-content: center;
        width: 100%; /* Ocupar todo el ancho para centrar bien */
    }
    .language-switcher {
        margin-top: 0.5rem;
    }
    .site-name {
        font-size: 1.4rem; /* Reducir un poco el tamaño en móvil */
    }
}