/* =========================================
   SISTEMA DE DISEÑO - BERNABÉ CARRASCO
   Premium Charcoal & Gold Identity
========================================= */

:root {
    /* Brand Colors */
    --brand-ink: #0f1115;
    --brand-primary: #212529;
    --brand-accent: #b4975a;
    --brand-accent-hover: #9c7e46;
    --brand-surface: #f8f9fa;
    --brand-surface-alt: #f1f3f5;
    --brand-paper: #ffffff;
    --brand-whatsapp: #10b981;
    
    /* Semantic Colors */
    --text-main: #334155;
    --text-muted: #64748b;
    --border-subtle: #f1f5f9;
}

/* Base Styles */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--brand-paper);
    color: var(--text-main);
}

/* Navbar Scrolled State */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .hero-mobile-adjust {
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
    }
    
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    .section-padding-mobile {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Safe area for mobile with bottom nav */
.pb-safe {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

/* Utils */
.logo-white {
    filter: brightness(0) invert(1);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Accordion */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Overlays */
.mobile-overlay {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu-active {
    overflow: hidden;
}

.tap-highlight-transparent {
    -webkit-tap-highlight-color: transparent;
}

/* Patterns */
.pattern-dots {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Transitions */
.transition-standard {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
