/* =========================
   1. Fuentes
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&family=Barlow+Condensed:wght@700;800;900&display=swap');

/* =========================
   2. Variables y utilidades
   ========================= */

:root {
    --font-body:    'Barlow', sans-serif;
    --font-display: 'Barlow Condensed', sans-serif;

    --color1:  #0d0e13;
    --color2:  #ffffff;
    --color3:  #F57000;
    --color4:  #1a1b22;
    --color5:  #2a2b35;
    --color6:  rgba(0,0,0,.7);
    --color7:  #6b6d80;
    --color8:  #25d366;
    --color9:  rgba(255,255,255,.07);
    --color10: #f0f1f5;
    --color11: #111218;
    --color12: #e8e9ef;
    --color13: #3a3c4d;
    --color14: #1e2030;

    --parrafos:   1rem;
    --footer-size: .75rem;

    --radius-sm:  4px;
    --radius-md:  10px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

body {
    font-family: var(--font-body);
    font-size: var(--parrafos);
    background: var(--color2);
    color: var(--color1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   3. Header — Componente
   ========================= */

header {
    width: 100%;
    height: 60px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .3s;
}

.header-row {
    width: 100%;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    gap: 1.5em;
    flex-shrink: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: .55em;
    flex-shrink: 0;
    height: 100%;
}

.logo img {
    height: 2.5em;
    width: auto;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color2);
    letter-spacing: -.01em;
    line-height: 1;
}

.logo-text strong {
    font-weight: 800;
    color: var(--color3);
}

/* Nav desktop — oculto mobile */
.nav-desk {
    flex: 1;
    display: none;
}

.nav-desk ul {
    display: flex;
    align-items: center;
    gap: .1em;
}

.nav-desk ul li a {
    font-size: .875rem;
    font-weight: 500;
    color: #737070;
    padding: .45em .75em;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.nav-desk ul li a:hover {
    color: var(--color2);
    background: rgba(255,255,255,.07);
}

.nav-desk ul li a.nav-active {
    color: var(--color3);
    font-weight: 700;
}

/* Acciones header */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .8em;
    flex-shrink: 0;
}

.btn-ingresar {
    background: var(--color3);
    color: var(--color1);
    font-weight: 700;
    font-size: .875rem;
    padding: .5em 1.3em;
    border-radius: var(--radius-full);
    border: none;
    white-space: nowrap;
    display: none;
    align-items: center;
    transition: background .2s, transform .1s;
}

.btn-ingresar:hover {
    background: #ddb300;
    transform: translateY(-1px);
}

#btn-ingresar {
    width: 6em;
    background: var(--color3);
    color: var(--color1);
    font-weight: 700;
    font-size: .875rem;
    padding: .5em 1.3em;
    border-radius: var(--radius-full);
    border: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: background .2s, transform .1s;
}

#btn-ingresar:hover {
    background: #ddb300;
    transform: translateY(-1px);
}

/* Hamburger */
#hamburger {
    background: none;
    border: none;
    padding: .4em;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

#hamburger span {
    width: 22px;
    height: 2px;
    background: var(--color1);
    border-radius: 2px;
    display: block;
    transition: all .3s ease;
}

#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile desplegable */
.nav-mobile {
    display: none;
    background: var(--color4);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1em 5vw 1.5em;
    flex-direction: column;
    animation: slideDown .22s ease;
}

.nav-mobile.active {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile a {
    font-size: .95rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    padding: .7em 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color .2s;
}

.nav-mobile a:hover { color: var(--color3); }
.nav-mobile a:last-child { border: none; }

.nav-mobile .btn-ingresar {
    margin-top: .8em;
    display: inline-flex;
    width: fit-content;
}

/* =========================
   4. Footer — Componente
   ========================= */

footer {
    background: var(--color11);
    color: var(--color2);
    padding: 4em 5vw 0;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    padding-bottom: 3em;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img {
    height: 5.5em;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--color2);
    margin-bottom: .5em;
    line-height: 1;
}

.footer-logo-text span {
    color: var(--color3);
}

.footer-desc {
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    max-width: 26em;
    margin-bottom: 1.3em;
}

.footer-social {
    display: flex;
    gap: .7em;
}

.footer-social a {
    width: 2.1em;
    height: 2.1em;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
    transition: color .2s, border-color .2s;
}

.footer-social a svg {
    width: 14px;
    height: 14px;
}

.footer-social a:hover {
    color: var(--color3);
    border-color: var(--color3);
}

.footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    margin-bottom: 1.1em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: .7em;
}

.footer-col ul li a {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: var(--color3);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.4em 0;
    display: flex;
    flex-direction: column;
    gap: .4em;
}

.footer-bottom p {
    font-size: var(--footer-size);
    color: rgba(255,255,255,.28);
}

.footer-bottom a {
    color: rgba(255,255,255,.28);
    transition: color .2s;
}

.footer-bottom a:hover {
    color: var(--color3);
}

/* =========================
   5. Utilidades globales
   ========================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    background: var(--color3);
    color: var(--color1);
    font-weight: 700;
    font-size: .9rem;
    padding: .75em 1.7em;
    border-radius: var(--radius-full);
    border: none;
    transition: background .2s, transform .15s;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-primary:hover {
    background: #ddb300;
    transform: translateY(-2px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    background: transparent;
    color: var(--color2);
    font-weight: 600;
    font-size: .9rem;
    padding: .7em 1.6em;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255,255,255,.3);
    transition: border-color .2s, color .2s;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-outline-light:hover {
    border-color: var(--color3);
    color: var(--color3);
}

/* WhatsApp flotante */
.btn-whatsapp {
    width: 3.4em;
    height: 3.4em;
    border-radius: 50%;
    background: var(--color8);
    position: fixed;
    bottom: 1.5em;
    right: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 18px rgba(37,211,102,.35);
    transition: transform .2s;
}

.btn-whatsapp:hover { transform: scale(1.08); }

.btn-whatsapp svg {
    width: 1.65em;
    height: 1.65em;
    fill: var(--color2);
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color8);
    opacity: .45;
    animation: waPulse 2.2s infinite;
    z-index: -1;
}

@keyframes waPulse {
    0%   { transform: scale(1); opacity: .45; }
    100% { transform: scale(1.75); opacity: 0; }
}

/* =========================
   6. Media Queries globales
   ========================= */

/* Tablets / Móviles grandes */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .header-row { padding: 0 4vw; }
}

/* Tablets Pro — vertical */
@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: portrait) {
    header { height: 64px; }
    .header-row { height: 64px; }
    #hamburger { display: none; }
    .nav-desk { display: flex; }
    .footer-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .footer-brand { flex: 1 1 100%; }
    .footer-col { flex: 1; }
}

/* Laptops / Tablets — horizontal */
@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: landscape) {
    header { height: 64px; }
    .header-row { height: 64px; }
    #hamburger { display: none; }
    .nav-desk { display: flex; }
    .footer-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .footer-brand { flex: 2; }
    .footer-col { flex: 1; }
}

/* Escritorio */
@media only screen and (min-width: 1280px) {
    header { height: 68px; }
    .header-row { height: 68px; padding: 0 6vw; }
    .logo img { height: 3.5em;}
    .btn-ingresar { display: inline-flex;}
    #hamburger { display: none; }
    .nav-desk { display: flex; }
    footer { padding: 4em 6vw 0; }
    .footer-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 5em;
    }
    .footer-brand { flex: 2; }
    .footer-col { flex: 1; }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
