
/*
Theme Name: Creativa V2
Theme URI: https://agcreativa.cl/
Description: Tema hijo de Hello Elementor para Agencia Creativa V2.
Author: Agencia Creativa
Author URI: https://agcreativa.cl/
Template: hello-elementor
Version: 1.0.1
Text Domain: creativa-v2
*/

/* IDENTIDAD CORPORATIVA */

:root {
    --creativa-petroleo: #102F35;
    --creativa-lima: #D8FA52;
    --creativa-turquesa: #00B8A9;
    --creativa-blanco: #F5F6F0;
    --creativa-grafito: #172B30;
}

/* HEADER */

.creativa-header,
.creativa-header * {
    box-sizing: border-box;
}

.creativa-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--creativa-petroleo);
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
}

.creativa-header__inner {
    max-width: 1480px;
    min-height: 110px;
    margin: 0 auto;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* LOGOTIPO */

.creativa-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.creativa-header__logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* NAVEGACIÓN */

.creativa-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 32px);
    margin-left: auto;
}

.creativa-header__nav a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

.creativa-header__nav a:hover,
.creativa-header__nav a:focus-visible {
    color: var(--creativa-lima);
}

/* BOTÓN TECNOLÓGICO */

.creativa-header a.creativa-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
    min-height: 54px;
    padding: 7px 8px 7px 24px;
    border: 1px solid var(--creativa-lima);
    border-radius: 999px;
    background: var(--creativa-lima);
    color: var(--creativa-petroleo);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.creativa-header a.creativa-header__cta:hover {
    background: var(--creativa-blanco);
    color: var(--creativa-petroleo);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(216,250,82,.16);
}

.creativa-header__cta-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--creativa-petroleo);
    color: var(--creativa-lima);
    transition: transform .25s ease;
}

.creativa-header__cta-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.creativa-header__cta:hover .creativa-header__cta-icon {
    transform: rotate(45deg);
}

/* BOTÓN MENÚ MÓVIL */

.creativa-header button.creativa-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--creativa-turquesa);
    border-radius: 10px;
    background: var(--creativa-grafito);
    color: var(--creativa-lima);
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease;
}

.creativa-header button.creativa-header__toggle:hover,
.creativa-header button.creativa-header__toggle:focus-visible,
.creativa-header button.creativa-header__toggle[aria-expanded="true"] {
    background: var(--creativa-petroleo);
    border-color: var(--creativa-lima);
    color: var(--creativa-lima);
}

.creativa-header__toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.creativa-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.creativa-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.creativa-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* TABLET Y MÓVIL */

@media (max-width: 1100px) {

    .creativa-header__inner {
        min-height: 86px;
        padding: 14px 5%;
        gap: 16px;
    }

    .creativa-header__logo img {
        width: 185px;
    }

    .creativa-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 22px 5% 28px;
        background: var(--creativa-petroleo);
        border-top: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 15px 25px rgba(0,0,0,.12);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .creativa-header__nav.is-open {
        display: flex;
    }

    .creativa-header__nav a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .creativa-header button.creativa-header__toggle {
        display: inline-flex;
    }

    .creativa-header__cta {
        margin-left: auto;
    }
}

@media (max-width: 600px) {

    .creativa-header__inner {
        min-height: 76px;
        padding: 12px 5%;
        gap: 10px;
    }

    .creativa-header__logo img {
        width: 155px;
    }

    .creativa-header a.creativa-header__cta {
        min-height: 42px;
        padding: 5px 5px 5px 13px;
        gap: 7px;
        font-size: 12px;
    }

    .creativa-header__cta-icon {
        width: 30px;
        height: 30px;
    }

    .creativa-header__cta-icon svg {
        width: 16px;
        height: 16px;
    }

    .creativa-header button.creativa-header__toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 380px) {

    .creativa-header__logo img {
        width: 125px;
    }

    .creativa-header a.creativa-header__cta {
        padding-left: 10px;
        font-size: 11px;
    }

    .creativa-header__inner {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .creativa-header__cta,
    .creativa-header__cta-icon,
    .creativa-header__nav a,
    .creativa-header__toggle,
    .creativa-header__toggle span {
        transition: none;
    }
}
