/*
 Theme Name: Hello Lucode Child
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-lucode-child
*/

/* ============================= */
/* Global Variables */
/* ============================= */
:root {
    --color-primary: #1D2D44;
    /* Azul medianoche */
    --color-secondary: #3E5060;
    /* Gris pizarra */
    --color-background: #F0F4F8;
    /* Blanco hueso */
    --color-accent: #FF6F3C;
    /* Naranja energía */
    --color-white: #FFFFFF;
}

/* ============================= */
/* Base Styles */
/* ============================= */
html {
    box-sizing: border-box;
    font-size: 16px;
    /* base para rem */
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-background);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 0;
}

/* Links */
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

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

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* ============================= */
/* Header Base */
/* ============================= */
:root {
    --header-height: 72px;
    --header-blur: 8px;
}

.site-header {
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 999;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo {
    width: 100%;
    max-width: 150px;
}

.site-header__logo img {
    max-height: 48px;
    display: block;
}

/* Menu */
.site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.site-header__menu>li>a {
    font-weight: 500;
    line-height: 1;
    padding: .25rem 0;
    transition: color .2s ease, opacity .2s ease;
}

/* ============================= */
/* Transparent State (over hero) */
/* ============================= */
.site-header--transparent {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.site-header--transparent .site-header__menu>li>a {
    color: var(--color-white);
}

.site-header--transparent .site-header__menu>li>a:hover {
    color: var(--color-accent);
}

/* ============================= */
/* Solid State (on scroll or no-hero) */
/* ============================= */
.site-header--solid,
.site-header.is-scrolled {
    position: sticky;
    /* se vuelve sticky cuando es sólido */
    top: 0;
    background-color: var(--color-white);
    backdrop-filter: blur(var(--header-blur));
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.site-header--solid .site-header__menu>li>a,
.site-header.is-scrolled .site-header__menu>li>a {
    color: var(--color-primary);
}

.site-header--solid .site-header__menu>li>a:hover,
.site-header.is-scrolled .site-header__menu>li>a:hover {
    color: var(--color-accent);
}

/* ============================= */
/* Helpers: spacing & container */
/* ============================= */
body {
    padding-top: 0;
}

/* evitamos doble espacio; sticky ya maneja el flujo */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 2rem;
}

/* ============================= */
/* Responsive tweaks */
/* ============================= */
@media (max-width: 1024px) {
    .site-header__menu {
        gap: 1.25rem;
    }

    .site-header__logo img {
        max-height: 44px;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 64px;
    }

    .site-header__menu {
        gap: 1rem;
    }
}