/* =============================================================
   GAREZMA — CSS GLOBAL
   Variables, reset, tipografía, header sticky, footer, botones
   ============================================================= */

/* ---- Variables ---- */
:root {
    --bg:       #101820;
    --surface:  #111111;
    --border:   #262626;
    --accent:   #3b82f6;
    --accent2:  #06b6d4;
    --text:     #f4f4f4;
    --muted:    #a1a1aa;
    --header-h: 0px;
}

/* ---- Reset básico ---- */
*, *::before, *::after { box-sizing: border-box; }

body, p, a, li, span, input, textarea, select, button {
    font-family: var(--font-body) !important;
}
h1, h2, h3, h4 {
    font-family: var(--font-headline) !important;
}

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

/* ---- Fondo oscuro global para páginas Garezma ---- */
body {
    background-color: var(--bg);
    color: var(--text);
}

/* ============================================================
   ASTRA LAYOUT OVERRIDES
   Problema: Astra pone display:flex en #content para ubicar
   el sidebar al lado. Aunque no haya sidebar, el flex persiste
   y manda las secciones del template a la derecha.
   Solucion: neutralizar TODA la cadena de contenedores de Astra.
   ============================================================ */

/* 1. El contenedor raiz del layout Astra usa flex para primary + sidebar */
#content.ast-container,
.ast-container#content,
div#content,
#content {
    display: block !important;
    flex-direction: unset !important;
}

/* 2. #primary es el 70% izquierdo en el flex de Astra - forzar 100% */
#primary.content-area,
#primary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: unset !important;
}

/* 3. Astra usa .ast-row con flex en algunas versiones */
.ast-row {
    display: block !important;
}

/* 4. El article y entry-content */
#main .ast-article-single,
.site-main article,
.hentry {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.entry-content,
.ast-entry-content {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 5. Esconder sidebar si aparece */
#secondary,
.secondary,
.widget-area,
.ast-sidebar-wrap {
    display: none !important;
    width: 0 !important;
}

/* 6. Ocultar titulo de pagina que Astra inyecta antes del contenido */
.entry-header,
.ast-page-title-wrap,
.page-title,
.entry-title {
    display: none !important;
}

/* ---- Astra resets ---- */
.ast-container, .ast-container-fluid { padding: 0 !important; }
.entry-content { padding: 0 !important; }

/* ============================================================
   TIPOGRAFÍA DE UTILIDAD
   ============================================================ */
.texto-hero {
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    animation: gradientFlow 4s linear infinite;
}
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn-white {
    background: #fff;
    color: #000 !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px !important;
    text-decoration: none !important;
    border: 2px solid #fff;
    display: inline-block;
    transition: .3s;
}
.btn-white:hover {
    background: #e2e2e2;
    border-color: #e2e2e2;
    transform: translateY(-2px);
}

.btn-outline-anim {
    position: relative;
    padding: 14px 28px;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-block;
    z-index: 1;
    color: white !important;
}
.btn-outline-anim::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% auto;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradientFlow 4s linear infinite;
}
.btn-outline-anim:hover {
    background: rgba(59,130,246,.1);
    transform: translateY(-2px);
}

/* ============================================================
   STICKY HEADER (Astra compatible)
   ============================================================ */
body.garezma-header-padding {
    padding-top: var(--header-h, 0px);
}
.ast-main-header-wrap,
.ast-mobile-header-wrap {
    transition: transform .4s ease, background-color .3s ease;
    width: 100%;
    z-index: 9999;
}
.garezma-sticky-active {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    animation: slideDownHeader .5s cubic-bezier(.16,1,.3,1);
}
@keyframes slideDownHeader {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ============================================================
   HEADER PROPIO — "Neon Luminary" (diseño del mockup)
   Fixed · logo izq · nav centro · CTA der
   ============================================================ */

/* Fonts */
:root {
    --font-headline: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    --font-body:     'Inter', sans-serif;
}

/* Wrapper fijo */
.gzma-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(13, 14, 19, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(71, 71, 78, 0.15);
    box-shadow: 0 8px 30px rgba(132, 173, 255, 0.08);
    transition: box-shadow .3s ease, background .3s ease;
}
.gzma-header.scrolled {
    background: rgba(13, 14, 19, 0.96);
    box-shadow: 0 8px 40px rgba(132, 173, 255, 0.12);
}

/* Inner layout: 3 zonas */
.gzma-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

/* Spacer: compensa el fixed */
.gzma-header-spacer { height: 80px; }

/* ---- Logo ---- */
.gzma-logo-link {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.gzma-logo-img {
    height: auto;
    max-height: 44px;
    width: auto;
    display: block;
}
.gzma-logo-text {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 900;
    color: #f7f5fd;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

/* ---- Nav desktop (centrado) ---- */
.gzma-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}
.gzma-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.gzma-nav-list li { position: relative; }

.gzma-nav-list > li > a,
.gzma-header .gzma-nav-list > li > a,
.gzma-header .gzma-nav-list > li > a:link,
.gzma-header .gzma-nav-list > li > a:visited {
    display: block;
    padding: 8px 12px;
    font-family: var(--font-headline);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(247, 245, 253, 0.70) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.gzma-nav-list > li > a:hover,
.gzma-header .gzma-nav-list > li > a:hover {
    color: #f7f5fd !important;
    background: #181920;
    text-decoration: none !important;
}
/* Active/current — sin subrayado, solo cambio de color sutil */
.gzma-nav-list > .current-menu-item > a,
.gzma-nav-list > .current_page_item > a,
.gzma-nav-list > .current-menu-ancestor > a,
.gzma-header .gzma-nav-list > .current-menu-item > a,
.gzma-header .gzma-nav-list > .current_page_item > a,
.gzma-header .gzma-nav-list > .current-menu-ancestor > a {
    color: #f7f5fd !important;
    background: transparent;
    border-bottom: none !important;
    border-radius: 8px;
    text-decoration: none !important;
    padding-bottom: 8px;
}

/* Submenús */
.gzma-nav-list .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background: rgba(13, 14, 19, 0.98);
    border: 1px solid rgba(71, 71, 78, 0.30);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
    backdrop-filter: blur(20px);
}
.gzma-nav-list li:hover > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.gzma-nav-list .sub-menu a {
    display: block;
    padding: 9px 14px;
    font-family: var(--font-headline);
    font-size: .85rem;
    font-weight: 600;
    color: rgba(247,245,253,.7) !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.gzma-nav-list .sub-menu a:hover {
    color: #f7f5fd !important;
    background: #181920;
}

/* ---- CTA button + hamburger (derecha) ---- */
.gzma-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.gzma-btn-cta {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, #6c9fff 0%, #0070ea 100%);
    color: #000 !important;
    font-family: var(--font-headline);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none !important;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(132, 173, 255, 0.30);
    white-space: nowrap;
}
.gzma-btn-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(132, 173, 255, 0.45);
    color: #000 !important;
}
.gzma-btn-cta:active { transform: scale(0.97); }
.gzma-btn-cta--full  { width: 100%; text-align: center; }

/* ---- Hamburger ---- */
.gzma-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.gzma-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f7f5fd;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.gzma-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gzma-hamburger.open span:nth-child(2) { opacity: 0; }
.gzma-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Nav mobile ---- */
.gzma-mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: rgba(13, 14, 19, 0.98);
    border-top: 0px solid rgba(71,71,78,.2);
}
.gzma-mobile-nav.open {
    max-height: 700px;
    border-top-width: 1px;
}
.gzma-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}
.gzma-mobile-nav-list li {
    border-bottom: 1px solid rgba(71,71,78,.15);
}
.gzma-mobile-nav-list li:last-child { border-bottom: none; }
.gzma-mobile-nav-list a {
    display: block;
    padding: 14px 4px;
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(247,245,253,.8) !important;
    text-decoration: none !important;
    transition: color .2s;
}
.gzma-mobile-nav-list a:hover,
.gzma-mobile-nav-list .current-menu-item > a { color: #84adff !important; }
.gzma-mobile-cta { padding: 16px 20px 24px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .gzma-nav { display: none; }
    .gzma-btn-cta:not(.gzma-btn-cta--full) { display: none; }
    .gzma-hamburger { display: flex; }
    .gzma-header-inner {
        grid-template-columns: 1fr auto;
        padding: 0 20px;
    }
}
@media (max-width: 480px) {
    .gzma-header-inner { padding: 0 16px; }
    .gzma-header-spacer { height: 80px; }
}

/* ============================================================
   LAYOUT FIX — tu solución validada
   ============================================================ */
@media (min-width: 922px) {
    .site-content .ast-container {
        display: flex;
        flex-direction: column;
    }
}
/* Quitar padding/margin extra de Astra en el article */
.ast-article-single,
.entry-content {
    padding: 0 !important;
    margin: 0 !important;
}
.entry-header { display: none !important; }

/* ============================================================
   FOOTER PROPIO
   ============================================================ */
.gzma-footer {
    background: #050505;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}
.gzma-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 28px 0;
}
.gzma-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.gzma-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.gzma-footer-logo  { max-height: 48px; width: auto; height: auto; }
.gzma-footer-brand p {
    color: #888;
    font-size: .88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}
.gzma-footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.gzma-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #888 !important;
    text-decoration: none !important;
    transition: .2s;
}
.gzma-footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white !important;
    transform: translateY(-2px);
}
.gzma-footer-col h4 {
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}
.gzma-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gzma-footer-links li { margin-bottom: 10px; }
.gzma-footer-links a,
.gzma-footer-links span {
    color: #888;
    text-decoration: none !important;
    font-size: .88rem;
    transition: .2s;
}
.gzma-footer-links a:hover { color: var(--accent); padding-left: 4px; }
.gzma-footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: .8rem;
}

@media (max-width: 900px) {
    .gzma-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .gzma-footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
    .gzma-footer-grid { grid-template-columns: 1fr; }
    .gzma-footer-brand { grid-column: auto; }
    .gzma-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
details.garezma-faq {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .3s;
}
details.garezma-faq[open] { border-color: var(--accent); }
summary.faq-question {
    padding: 22px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
}
summary.faq-question:hover { background: rgba(255,255,255,.03); }
summary.faq-question::-webkit-details-marker { display: none; }
.faq-icon { display: flex; align-items: center; width: 24px; height: 24px; flex-shrink: 0; transition: transform .4s cubic-bezier(.4,0,.2,1); }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-content-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.4,0,.2,1); }
details[open] .faq-content-wrapper { grid-template-rows: 1fr; }
.faq-answer { overflow: hidden; color: var(--muted); font-size: 1rem; line-height: 1.7; padding: 0 25px; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; }
details[open] .faq-answer { opacity: 1; transform: translateY(0); padding-bottom: 24px; }

/* ============================================================
   UTILIDADES DE SECCIÓN
   ============================================================ */
.gzma-section    { padding: 80px 0; }
.gzma-container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label   { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .83rem; display: block; margin-bottom: 10px; }
.section-title   { font-family: 'Outfit', sans-serif !important; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: #fff; margin: 0 0 12px; line-height: 1.15; }
.section-subtitle{ color: #cbd5e1; font-size: 1.05rem; line-height: 1.7; margin: 0; }

.cta-section {
    background: #0f0f0f;
    border: 1px solid var(--border);
    text-align: center;
    padding: 80px 24px;
    border-radius: 20px;
    margin: 60px 0 50px;
}
.cta-section h2 { font-family: 'Outfit', sans-serif !important; font-size: 2rem; margin: 0 0 24px; color: white; }
