/* ============================================================
   AUTOMATÍZALO — Assets CSS Global
   Componentes reutilizables: header, footer, botones, switch idioma
   ============================================================ */

* { box-sizing: border-box; }

/* ====== HEADER ====== */
.az-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--az-border);
}
.az-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.az-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--az-navy);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}
.az-logo-link .logo-img {
    height: 40px;
}
.az-logo-text {
    font-family: var(--az-font-sans);
    background: linear-gradient(135deg, var(--az-navy) 0%, var(--az-steel) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.az-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.az-nav a {
    color: var(--az-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color .15s ease;
    position: relative;
}
.az-nav a:hover { color: var(--az-navy); }
.az-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--az-cyan);
    transition: all .2s ease;
    transform: translateX(-50%);
}
.az-nav a:hover::after { width: 100%; }

.az-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Lang switch */
.az-lang-switch {
    background: var(--az-bg);
    border: 1px solid var(--az-border);
}
.az-lang-switch a { color: var(--az-text-soft); }
.az-lang-switch a.active {
    background: var(--az-navy);
    color: #fff;
}

.az-btn-sm { padding: 8px 16px; font-size: 14px; }

/* Mobile toggle */
.az-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}
.az-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--az-navy);
    transition: all .2s;
}

@media (max-width: 900px) {
    .az-nav { display: none; }
    .az-header-inner { padding: 12px 16px; }
    .az-logo-text { font-size: 16px; }
}
@media (max-width: 600px) {
    .az-mobile-toggle { display: flex; }
    .az-header-right > .az-btn { display: none; }
}

/* ====== FOOTER ====== */
.az-site-footer {
    background: var(--az-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 0;
    margin-top: 80px;
}
.az-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.az-footer-brand .logo-img {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.az-footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 10px 0;
    line-height: 1.5;
}
.az-footer-built {
    font-size: 13px;
    color: var(--az-cyan-soft);
    margin: 0;
    font-weight: 500;
}
.az-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}
.az-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.az-footer-col li { margin-bottom: 10px; }
.az-footer-col a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color .15s;
}
.az-footer-col a:hover { color: var(--az-cyan); }

.az-footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.az-footer-bottom p { margin: 0; }

@media (max-width: 800px) {
    .az-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 500px) {
    .az-footer-inner { grid-template-columns: 1fr; }
}

/* ====== UTILS ====== */
.az-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.az-section {
    padding: 80px 0;
}
.az-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--az-steel);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.az-section-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--az-navy);
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}
.az-section-subtitle {
    font-size: 18px;
    color: var(--az-text-soft);
    line-height: 1.6;
    margin: 0 0 48px 0;
    max-width: 700px;
}

@media (max-width: 600px) {
    .az-section { padding: 56px 0; }
    .az-section-title { font-size: 30px; }
    .az-section-subtitle { font-size: 16px; }
}

/* WP admin bar offset */
.admin-bar .az-site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .az-site-header { top: 46px; }
}
