/*
Theme Name: SG Software
Theme URI: https://sg.software
Author: SG Software
Author URI: https://sg.software
Description: Tema customizado para SG Software â Especialistas en repuestos y firmware ThyssenKrupp TKE para elevadores en LatinoamÃ©rica.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: sg-software
Tags: elevator, elevadores, thyssenkrupp, repuestos, firmware, latam
*/

/* =====================================================
   SG SOFTWARE DESIGN SYSTEM
   Primary: #1A6DFF | Navy: #0B1B3D | Accent: #FF8C1A
   Fonts: Plus Jakarta Sans + Inter
   ===================================================== */

:root {
    --primary: #1A6DFF;
    --primary-dark: #0A3D8F;
    --navy: #0B1B3D;
    --light-blue: #4D8FFF;
    --pale-blue: #E8F0FF;
    --accent: #FF8C1A;
    --accent-light: #FFB347;
    --text-dark: #1a1a1a;
    --text-light: #5a6680;
    --border: #e2e8f0;
    --bg-subtle: #f7f9fc;
    --white: #ffffff;
    --whatsapp: #25D366;
    --instagram: #E4405F;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    line-height: 1.25;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ===== HEADER ===== */
.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(--border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
    height: 38px !important;
    width: auto !important;
    max-height: 38px !important;
    display: block;
}

.site-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .active > a {
    color: var(--primary);
}

.site-nav .current-menu-item > a::after,
.site-nav .active > a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--navy);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ===== SHARED COMPONENTS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 109, 255, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--pale-blue);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-amber {
    background: rgba(255,140,26,0.15);
    color: var(--accent);
}

.badge-blue {
    background: var(--pale-blue);
    color: var(--primary);
}

.card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 109, 255, 0.12);
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}

.breadcrumb a {
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

/* Page Hero (inner pages) */
.page-hero {
    background: linear-gradient(145deg, var(--navy) 0%, var(--primary) 60%, var(--light-blue) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.25rem;
}

.highlight {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header-content {
        padding: 1rem 1.5rem;
    }
    .site-nav {
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 1rem 0;
    }
    .site-nav.open {
        display: flex;
    }
    .site-nav li {
        width: 100%;
    }
    .site-nav a {
        display: block;
        padding: 0.75rem 2rem;
        border-bottom: none;
    }
    .site-nav a::after {
        display: none !important;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.875rem 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .page-hero {
        padding: 3.5rem 1.25rem;
    }
}
