/* 
Theme Name: Wabi Consulting
Description: Tema custom de alto rendimiento para consultoría digital.
Version: 1.2 (Dark Mode)
Author: Antigravity
*/

:root {
    /* --- COLOR PALETTE (Dark Mode) --- */

    /* Backgrounds: Soft Dark (Antigravity Style) */
    --color-bg: #0F1115;
    /* Fondo global: Gris carbón muy profundo */
    --color-surface: #1A1D24;
    /* Fondo cards/secciones: Un tono más claro */

    /* Text */
    --color-text-main: #E2E8F0;
    /* Blanco hueso para texto principal */
    --color-text-muted: #CBD5E1;
    /* Gris azulado para secundarios */

    /* Primary & Accents */
    --color-primary: #FFFFFF;
    /* Títulos en blanco puro */
    --color-accent: #B8F228;
    /* Verde Wabi Vibrante */
    --color-accent-hover: #A3D91A;
    --color-accent-text: #1A1D24;
    /* Texto oscuro para contrastar sobre el verde */

    /* Borders & Dividers */
    --color-border: #2D3342;
    /* Bordes sutiles en gris oscuro */

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* --- SPACING (8pt grid) --- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* --- SHADOWS --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

    /* --- BORDER RADIUS --- */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* --- TRANSITIONS --- */
    --transition-fast: 150ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    /* Verde */
    color: var(--color-accent-text);
    /* Texto oscuro */
    box-shadow: 0 4px 14px 0 rgba(184, 242, 40, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(184, 242, 40, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Glass Effect Utility */
.glass-panel {
    background: rgba(26, 29, 36, 0.6);
    /* Color surface con transparencia */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- HEADER & NAVIGATION --- */
header {
    background: transparent;
    padding: var(--space-4) 0;
    transition: all var(--transition-smooth);
}

header.scrolled {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.logo img {
    height: 40px;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: var(--space-8);
}

.desktop-nav a {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    opacity: 0.9;
}

.desktop-nav a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-smooth);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    transform: translateY(-100%);
    transition: transform var(--transition-smooth);
    z-index: 100;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {

    .desktop-nav,
    .cta-group {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}


/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-bg);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.footer-col h4 {
    color: var(--color-text-main);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* --- CARDS & SECTIONS --- */
.hero {
    /* Gradiente sutil verde sobre fondo oscuro */
    background: radial-gradient(circle at top right, rgba(184, 242, 40, 0.05) 0%, rgba(15, 17, 21, 0) 50%);
}

.card h3 {
    color: var(--color-primary);
}

.card p {
    color: var(--color-text-muted);
}

/* Form Elements */
input,
select {
    margin-bottom: 0 !important;
}

/* --- RESPONSIVE UTILITIES --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

@media (max-width: 768px) {

    /* Fonts */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Grids to Single Column */
    .form-grid,
    .about-grid,
    .product-grid {
        display: block !important;
    }

    .product-grid>* {
        margin-bottom: var(--space-8);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Spacing */
    .container {
        padding: 0 1rem;
    }

    section {
        padding: var(--space-8) 0 !important;
    }

    .hero {
        padding-top: var(--space-8) !important;
        min-height: auto !important;
        padding-bottom: var(--space-8);
    }

    /* Fix text overflow */
    body {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Product Detail Mobile */
    .product-left,
    .product-right {
        width: 100% !important;
    }

    /* Video/Image containers */
    .video-container,
    .blog-img-container,
    [style*="aspect-ratio"] {
        max-width: 100%;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Desktop nav hidden, mobile toggle visible */
    .desktop-nav {
        display: none !important;
    }

    .cta-group {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
    }

    /* Fix about section image overlap */
    .about-image {
        position: relative !important;
        top: auto !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}