:root {
    --color-primary-blue: #0047AB;
    --color-text-light: #ffffff;
    --color-background-hero-overlay: rgba(0, 0, 0, 0.6);
    --color-whatsapp: #25D366;
    --color-instagram: #E1306C;
    --color-facebook: #1877F2;
    --color-email-icon: #f8f9fa;
    --font-family-base: 'Inter', sans-serif;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #2a3a4a; /* Color de fondo de respaldo */
    position: relative; /* Necesario para el truco del pseudo-elemento */
}

/* ======================================================= */
/* TRUCO DEL FONDO FIJO (EFECTO PARALLAX)                  */
/* ======================================================= */
body::before {
    content: '';
    position: fixed; /* ¡La clave! Fija esta capa al viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ocupa siempre el 100% de la pantalla */
    z-index: -1; /* Lo enviamos detrás de todo el contenido */

    /* Aplicamos la imagen de fondo a esta capa fija */
    background-image: linear-gradient(var(--color-background-hero-overlay), var(--color-background-hero-overlay)), url('images/hero-background.png');
    background-size: cover;
    background-position: center;
}

/* Hacemos que todo el contenido principal sea transparente para ver el fondo */
.main-header, .content-wrap, .main-footer {
    background-color: transparent;
}
/* ======================================================= */


/* Contenedor principal que se estira para empujar el footer */
main.content-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* La cabecera y el footer son bloques normales */
.main-header, .main-footer {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Estilos de la Cabecera (con fondo azul sólido) */
.main-header {
    padding: 0.5em 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-primary-blue); /* La cabecera sí tiene su propio color */
}

.logo, .header-spacer { flex-basis: 250px; flex-shrink: 0; }
.logo img { height: 130px; width: auto; display: block; padding-left: 2em; }
.header-text-container { text-align: center; }
.header-title { color: var(--color-text-light); font-weight: 600; letter-spacing: 5px; text-transform: uppercase; margin: 0; font-size: clamp(1.5em, 3vw, 2.5em); }
.header-subtitle { color: var(--color-text-light); font-weight: 300; margin: 0; margin-top: -5px; font-size: clamp(0.8em, 1.5vw, 1.1em); }

/* Sección Hero */
.hero-section {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2em;
    color: var(--color-text-light);
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 { font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; font-size: clamp(2.2em, 5vw, 3.2em); }
.hero-content p { font-weight: 300; margin-bottom: 2em; font-size: clamp(1em, 2vw, 1.2em); }

/* Botones */
.contact-buttons { display: flex; justify-content: center; gap: 1.5em; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 1em 2em; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 1.1em; transition: all .3s ease; border: 2px solid var(--color-text-light); color: var(--color-text-light); }
.btn i { margin-right: .8em; }
.btn-primary { background-color: var(--color-text-light); color: var(--color-primary-blue); border-color: var(--color-text-light); }
.btn-primary:hover { background-color: rgba(255,255,255,.85); transform: translateY(-3px); }
.btn-secondary { background-color: transparent; }
.btn-secondary:hover { background-color: rgba(255,255,255,.1); transform: translateY(-3px); }


/* Pie de Página (con su propia transparencia) */
.main-footer {
    padding: 2.5em 2em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* La transparencia sobre el fondo fijo */
    font-size: 0.9em;
    color: var(--color-text-light);
}

.social-links { margin-bottom: .8em; }
.social-links a { font-size: 2em; margin: 0 1.2em; transition: transform .3s ease,opacity .3s ease; display: inline-block; }
.social-links a.icon-instagram { color: var(--color-instagram); }
.social-links a.icon-whatsapp { color: var(--color-whatsapp); }
.social-links a.icon-facebook { color: var(--color-facebook); }
.social-links a.icon-email { color: var(--color-email-icon); }
.social-links a:hover { transform: scale(1.15); opacity: .8; }

/* Responsive para Móviles */
@media (max-width: 900px) {
    .main-header { flex-direction: column; padding: 1em; }
    .header-text-container { padding: 0.5em 0; }
    .logo, .header-spacer { flex-basis: auto; width: 100%; }
    .logo img { margin: 0 auto; height: 100px; padding-left: 0; }
    .header-spacer { display: none; }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}