/* base.css — Estilos compartidos (todas las páginas) */

/* ===== GOOGLE FONTS (Loaded in HTML for better performance) ===== */

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

/* Add utility classes to replace inline styles */
.text-center {
    text-align: center;
}
.text-accent {
    color: var(--accent-color);
}
.text-muted {
    color: var(--text-muted);
}

.w-full {
    width: 100%;
}
.h-full {
    height: 100%;
}
.h-auto {
    height: auto;
}
.fw-700 {
    font-weight: 700;
}

.flex {
    display: flex;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gap-sm {
    gap: 1rem;
}
.gap-md {
    gap: 2rem;
}

.section-border {
    border-top: 1px solid var(--border-color);
}
.mt-sm {
    margin-top: 1rem;
}
.mt-md {
    margin-top: 2rem;
}
.mt-lg {
    margin-top: 3rem;
}
.mb-sm {
    margin-bottom: 1rem;
}
.mb-md {
    margin-bottom: 2rem;
}
.mb-lg {
    margin-bottom: 3rem;
}
.mb-xl {
    margin-bottom: 5rem;
}

.ml-0 {
    margin-left: 0 !important;
}
.mb-xs {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.fs-small {
    font-size: 0.85rem;
}
.fs-1-2 {
    font-size: 1.2rem;
}

.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.max-w-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-py-fluid {
    padding: clamp(3rem, 12vw, 8rem) 0;
}

/* New Utilities */
.flex-row {
    display: flex;
    flex-direction: row;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-1 {
    gap: 1rem;
}
.gap-2 {
    gap: 2rem;
}
.p-2 {
    padding: 2rem;
}
.p-3 {
    padding: 3rem;
}
.pt-header {
    padding-top: var(--header-height);
}
.py-lg {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}
.obj-cover {
    object-fit: cover;
}
.pos-relative {
    position: relative;
}
.pos-absolute {
    position: absolute;
}
.br-lg {
    border-radius: var(--border-radius-lg);
}
.border-all {
    border: 1px solid var(--border-color);
}
.text-white {
    color: #ffffff;
}
.opacity-90 {
    opacity: 0.9;
}
.uppercase {
    text-transform: uppercase;
}
.ls-wide {
    letter-spacing: 0.2em;
}
.fs-tiny {
    font-size: 0.7rem;
}
.z-2 {
    z-index: 2;
}
.bg-dark-gradient {
    background: #000000;
}

/* Theme Utilities */
.theme-dark {
    background-color: #000000;
    color: #f5f5f7;
}

.theme-light {
    background-color: #ffffff;
    color: #1d1d1f;
}

.theme-light .h1, 
.theme-light .h2, 
.theme-light .h3 {
    color: #1d1d1f;
}

.theme-light p {
    color: #595959;
}

.theme-grey {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.theme-grey .h1, 
.theme-grey .h2, 
.theme-grey .h3 {
    color: #1d1d1f;
}

/* Animations */
[reveal-on-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[reveal-on-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Specific Classes */
.btn-header-cta {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.bg-card {
    background: var(--card-bg);
}
.bg-accent-subtle {
    background: rgba(37, 99, 235, 0.02);
}
.bg-success-subtle {
    background: rgba(34, 197, 94, 0.02);
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

/* Global focus-visible styles — WCAG 2.2 AA compliance */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.faq-header:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture,
video,
iframe {
    max-width: 100%;
    display: block;
}

/* Inline SVGs keep default display; only cap width for large graphics */
svg:not(.icon-svg) {
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Layout Shift Prevention for dynamically loaded components */
#site-header {
    min-height: var(--header-height);
}

/* ===== VARIABLES ===== */
:root {
    --bg-color: #000000;
    --bg-light: #ffffff;
    --bg-grey: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --accent-color: #0071e3;
    --accent-glow: rgba(0, 113, 227, 0.3);
    --text-primary: #f5f5f7;
    --text-secondary: #595959;
    --text-muted: #595959;
    --text-inverse: #1d1d1f;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-headings: "Plus Jakarta Sans", var(--font-main);
    --font-size-base: 17px;
    --font-size-h1: clamp(3rem, 10vw, 5rem);
    --font-size-h2: clamp(2.5rem, 8vw, 3.5rem);
    --font-size-h3: 1.5rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 7.5rem;
    --header-height: 52px;
    --container-max-width: 1200px;
    --border-radius-lg: 30px;
    --border-radius-md: 18px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --geo-line-height: 1.47059;
}

/* Responsive Overrides (10/10 UX) */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 48px;
        --header-height: 70px;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: var(--font-size-base);
}

/* ===== TYPOGRAPHY ===== */
.h1 {
    font-family: var(--font-headings);
    font-size: var(--font-size-h1);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.07143;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.h2 {
    font-family: var(--font-headings);
    font-size: var(--font-size-h2);
    font-weight: 700;
    letter-spacing: -0.011em;
    line-height: 1.08349;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.h3 {
    font-family: var(--font-headings);
    font-size: var(--font-size-h3);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* Removed duplicate text-accent */

.text-muted {
    color: var(--text-muted);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* ===== HEADER ===== */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    background-color: #000; /* Opaque default to avoid blend artifacts during load */
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.site-header.theme-light {
    background-color: #fff !important; /* Force solid white initially */
    background: rgba(255, 255, 255, 0.95); /* High opacity for better UI */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header.theme-dark {
    background-color: rgba(5, 5, 7, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition-fast);
}

.site-header.theme-light .logo img {
    filter: brightness(0);
}

.logo a {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo {
    flex-shrink: 1;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
}

.site-header.theme-light .nav-links a {
    color: rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
    color: #ffffff;
}

.site-header.theme-light .nav-links a:hover {
    color: #000000;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.site-header.theme-light .btn-secondary {
    border-color: rgba(0, 0, 0, 0.25);
    color: #1d1d1f;
}

.site-header.theme-light .btn-secondary:hover {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    z-index: 10;
    height: auto;
}

/* ===== HERO SECTION (REFERENCE MATCH) ===== */
.hero-reference-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    min-height: 75vh;
    padding: 4rem 0;
}

.hero-category-tag {
    display: block;
    color: #4A3AFF;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-text-content {
    max-width: 600px;
}

.hero-text-content .h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #1d1d1f;
    text-align: left;
}

.hero-description {
    font-size: 1.25rem;
    color: #424245;
    line-height: 1.6;
    margin-bottom: 3.5rem;
    max-width: 600px;
    font-weight: 400;
}

.smart-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.smart-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.smart-link:hover {
    color: #0077ed;
}

.smart-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.btn-link {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-decoration: none;
}

.btn-link .arrow {
    font-size: 1.4rem;
    transition: transform 0.2s;
}

.btn-link:hover .arrow {
    transform: translateX(3px);
}

/* Laptop Showcase */
.hero-visual-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-laptop-glow-container {
    position: relative;
    width: 100%;
}

.hero-laptop-glow-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(74, 58, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.shadow-premium {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

/* Responsive adjustments for Hero */
@media (max-width: 992px) {
    .hero-reference-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text-content {
        margin: 0 auto;
    }
    .hero-text-content .h1 {
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
}

.hero-loop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050507 0%, transparent 40%);
    pointer-events: none;
}

/* ===== MANIFESTO TAG ===== */
.manifesto-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

/* ===== CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* ===== PRICING SUMMARY GRID ===== */
.pricing-summary-section {
    padding: 8rem 0;
}

.pricing-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid #f2f2f2;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.pricing-card.featured {
    border: 2px solid #5E5CE6;
    position: relative;
    transform: scale(1.03);
}

.pricing-card .card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #5E5CE6;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pricing-card .plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    flex: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li::before {
    content: "✓";
    color: #0066cc;
    font-weight: bold;
}

.pricing-card .btn-blue {
    background: #0071e3;
    color: #fff;
    padding: 0.8rem;
    border-radius: 100px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.pricing-card .btn-blue:hover {
    background: #0077ed;
}

.view-all-plans {
    display: block;
    text-align: center;
    margin-top: 3rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 992px) {
    .feature-bar, .pricing-summary-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
}

.service-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top right,
        var(--accent-glow),
        transparent 70%
    );
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card a:hover span {
    transform: translateX(4px);
}

/* ===== SKIP LINK (A11y) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    min-height: 44px;
    border-radius: 980px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: -0.022em;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background: #0077ed;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 14px;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Specific Buttons */
.btn.btn-purple {
    background: var(--accent-color);
    color: #fff;
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

.btn.btn-purple:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

/* ===== WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ===== WHATSAPP DRAWER ===== */
.wa-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
}

.wa-drawer {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    animation: waSlideUp 0.3s ease-out;
}

@keyframes waSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-drawer-header {
    background: #075e54;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.wa-drawer-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.wa-drawer-header .wa-online {
    font-size: 0.7rem;
    color: #22c55e;
}

.wa-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.wa-drawer-content {
    padding: 1.5rem;
    background: #f0f2f5;
    border-radius: 0 0 12px 12px;
}

.wa-drawer-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.wa-drawer-content input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    color: #1e293b;
    background: #fff;
    font-family: inherit;
}

.wa-option-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wa-option-btn:hover {
    background: #e8f0fe;
    border-color: #2563eb;
}

.wa-back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.wa-continue-btn {
    width: 100%;
    padding: 0.8rem;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wa-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wa-send-link {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1rem;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.wa-send-link:hover {
    background: #1da851;
}

.wa-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wa-hidden {
    display: none;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    animation:
        toastSlideIn 0.3s ease-out,
        toastFadeOut 0.3s ease-in 3.7s forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.success {
    background: #22c55e;
}

.toast.error {
    background: #ef4444;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===== SVG ICONS (inline) ===== */
.icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 var(--spacing-md);
    }

    .logo img {
        height: auto;
        max-height: 40px;
        width: auto;
        max-width: min(160px, 42vw);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1d1d1f; /* Color oscuro para el icono en header claro */
    }

    .mobile-menu-btn .icon-svg {
        stroke: #1d1d1f; /* Asegurar que el SVG sea visible */
    }

    .btn-header-cta {
        padding: 0.35rem 0.85rem;
        font-size: 0.7rem;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        gap: 2rem;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 999;
    }

    .nav-links.mobile-open {
        height: calc(100vh - var(--header-height));
        padding: 4rem 2rem;
        opacity: 1;
        pointer-events: all;
        z-index: 1002;
    }

    /* theme-light fuerza enlaces oscuros en desktop; en overlay móvil debe ser claro */
    .site-header.theme-light .nav-links.mobile-open a,
    .site-header.theme-light .nav-links.mobile-open a:hover,
    .site-header.theme-light .nav-links.mobile-open a.active {
        color: #ffffff;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        color: #f5f5f7; /* Color claro para menú móvil */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        color: #ffffff;
    }

    .nav-links.mobile-open a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.mobile-open a:nth-child(1) {
        transition-delay: 0.1s;
    }
    .nav-links.mobile-open a:nth-child(2) {
        transition-delay: 0.2s;
    }
    .nav-links.mobile-open a:nth-child(3) {
        transition-delay: 0.3s;
    }
    .nav-links.mobile-open a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.mobile-open a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-intro {
        flex-direction: column;
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-image-container {
        height: 300px;
        width: 100%;
        order: 2;
    }

    .hero-text {
        text-align: center;
        order: 1;
    }

    .hero-text div {
        justify-content: center;
    }

    .whatsapp-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn img {
        width: 30px;
        height: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .wa-drawer {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.section {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.hero-section {
    content-visibility: visible;
    contain-intrinsic-size: none;
}

.service-card {
    will-change: transform;
    contain: layout style;
}

.project-card {
    will-change: transform;
    contain: layout style;
}

img {
    height: auto;
}

.project-image img,
.hero-loop-video {
    aspect-ratio: 16 / 9;
}

.site-header {
    will-change: transform;
}

.hero-image-container::after {
    pointer-events: none;
    will-change: opacity;
}
.contact-info-value .fs-tiny.text-muted {
    font-size: 0.8rem;
    color: var(--text-muted);
}

#whatsapp-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.h-full {
    height: 100%;
}
.hero-video-wrapper {
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
}

/* ===== FOOTER EXAC MATCH ===== */
.site-footer {
    background: #000000;
    padding: 4rem 0 4rem 0; /* Espaciado uniforme */
    font-family: var(--font-main);
    border-top: none; /* Según captura no se ve linea divisoria */
}

.footer-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
}

.footer-block-logo,
.footer-block-links,
.footer-block-contact,
.footer-block-social {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 1100px) {
    .footer-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-block-logo {
        justify-content: center;
    }
    .social-icons-wrapper {
        justify-content: center;
    }
}

.footer-block-logo {
    display: flex;
    align-items: center; /* V center */
    height: 100%;
}

.footer-block-logo img {
    max-width: 180px; /* Tamaño refinado y proporcional */
    height: auto;
    transition: transform 0.3s ease;
}

.footer-block-logo img:hover {
    transform: scale(1.05);
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem; /* Mayor separacion como en la foto */
}

.footer-block-links ul,
.footer-block-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Consistent gap */
}

.footer-block-links a,
.footer-block-contact a,
.footer-block-contact .contact-location-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-block-links a span,
.footer-block-contact a span,
.footer-block-contact .contact-location-link span {
    color: #ffffff !important;
    display: inline !important;
    visibility: visible !important;
}

.footer-bottom-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.footer-bottom-info p {
    color: #ffffff !important;
    font-size: 0.85rem;
    margin: 0;
}

.footer-block-links a:hover,
.footer-block-contact a:hover,
.footer-block-contact .contact-location-link:hover,
.footer-block-links a:hover span,
.footer-block-contact a:hover span {
    color: #ffffff;
}

.footer-block-social {
    padding-left: 0;
}

.social-icons-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff !important;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* Colores corporativos - Redes sociales */
.social-btn.fb {
    background: #1877F2;
}

.social-btn.fb:hover {
    background: #0d65d9;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-btn.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.ig:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.social-btn.tk {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn.tk:hover {
    background: #111111;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.social-btn.li {
    background: #0077b5;
}

.social-btn.li:hover {
    background: #005a8a;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* Contact icons */
.footer-block-contact ul li a,
.footer-block-contact ul li .contact-location-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.email-icon { color: #38BDF8; }
.phone-icon { color: #25D366; }
.location-icon { color: #FB923C; }

.footer-bottom-info {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 5rem 0;
    margin-top: 3rem;
    text-align: left;
    width: 100%;
}

.footer-bottom-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff; /* Blanco puro para máxima visibilidad */
    line-height: 1.6;
}

@media (max-width: 576px) {
    .footer-bottom-info {
        text-align: center;
    }
}

/* ===== COOKIE BANNER ===== */
/* Cookie Overlay */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-overlay-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--cookie-bg, rgba(18, 18, 20, 0.88));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    padding: 1.5rem 2rem;
    transition: bottom 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-visible {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.12);
}

.cookie-banner-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    display: block;
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--cookie-text, var(--text-primary));
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 0.625rem 0;
}

.cookie-banner-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.cookie-banner-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cookie-banner-links a:hover {
    text-decoration: underline;
}

.cookie-banner-links a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.cookie-divider {
    color: var(--text-muted);
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    border: none;
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.cookie-btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.cookie-btn-primary:active {
    transform: translateY(0);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--cookie-text, var(--text-secondary));
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-muted);
}

.cookie-btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.cookie-close:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.cookie-close svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1rem;
        padding-right: 2.75rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 0.875rem;
    }

    .cookie-banner-icon {
        width: 36px;
        height: 36px;
    }

    .cookie-banner-icon svg {
        width: 18px;
        height: 18px;
    }

    .cookie-banner-text {
        text-align: center;
    }

    .cookie-banner-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-banner-actions {
        flex-direction: row;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        width: 100%;
        text-align: center;
    }

    .cookie-close {
        top: 0.625rem;
        right: 0.625rem;
    }
}

/* Theme overrides: light theme */
.theme-light .cookie-banner {
    --cookie-bg: rgba(255, 255, 255, 0.92);
    --cookie-text: #111827;
    border-top-color: rgba(0, 0, 0, 0.06);
}

.theme-light .cookie-btn-secondary {
    border-color: rgba(0, 0, 0, 0.12);
}

.theme-light .cookie-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-light .cookie-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Grey theme variant */
.theme-grey .cookie-banner {
    --cookie-bg: rgba(255, 255, 255, 0.94);
    --cookie-text: #111827;
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0.75rem;
        padding-right: 2.5rem;
    }

    .cookie-banner-text strong {
        font-size: 0.9375rem;
    }

    .cookie-banner-text p {
        font-size: 0.8125rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}
