/* ==========================================================================
   GyC TRAZOS Y ESTILOS - MAIN DESIGN SYSTEM
   Diseño Elegante y Moderno para Carpintería Fina & Melamina RH
   ========================================================================== */

:root {
    /* Color Palette */
    --color-wood-dark: #1e1b18;
    --color-wood-warm: #2c2520;
    --color-wood-card: #241f1c;
    --color-gold-primary: #d4a359;
    --color-gold-hover: #e5b46a;
    --color-gold-light: #f5e6d0;
    --color-rh-teal: #0d9488;
    --color-rh-light: #ccfbf1;
    --color-bg-light: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-surface-white: #ffffff;
    --color-text-dark: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #cbd5e1;
    --color-border: #e2e8f0;
    --color-border-dark: #3b332b;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1240px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 10px 30px rgba(212, 163, 89, 0.25);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-primary);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1.2rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold-primary); }
.text-rh { color: var(--color-rh-teal); }
.accent-text { color: var(--color-gold-primary); }

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-padding-lg {
    padding: 7rem 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-wood-dark);
    color: var(--color-surface-white);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-surface-white);
}

.bg-dark .section-description {
    color: var(--color-text-light);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-primary), #b8860b);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-hover), var(--color-gold-primary));
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(212, 163, 89, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-surface-white);
    border-color: var(--color-gold-primary);
}

.btn-secondary:hover {
    background-color: var(--color-gold-primary);
    color: var(--color-wood-dark);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-wood-dark);
    border-color: var(--color-wood-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-wood-dark);
    color: var(--color-surface-white);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Header & Navigation Styling */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-wood-dark);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background-color: #141210;
    color: var(--color-text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 1.5rem;
}

.info-item i {
    color: var(--color-gold-primary);
    margin-right: 0.4rem;
}

.top-phone {
    color: var(--color-gold-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-phone:hover {
    color: var(--color-gold-hover);
}

.main-navbar {
    padding: 1rem 0;
    transition: var(--transition-fast);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    text-decoration: none;
}

.logo-gyc {
    background: linear-gradient(135deg, var(--color-gold-primary), #b8860b);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-surface-white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold-primary);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-surface-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-surface-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-only { display: none; }
.desktop-only { display: block; }

/* Footer Styling */
.site-footer {
    background-color: #141210;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border-dark);
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-description {
    margin: 1.2rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.badge-tag {
    background-color: rgba(212, 163, 89, 0.12);
    color: var(--color-gold-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(212, 163, 89, 0.3);
}

.footer-title {
    color: var(--color-surface-white);
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-gold-primary);
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--color-gold-primary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-surface-white);
    transform: translateX(4px);
}

.contact-intro {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--color-gold-primary);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.contact-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-surface-white);
}

.contact-value:hover {
    color: var(--color-gold-primary);
}

.contact-value-text {
    font-size: 0.9rem;
    color: var(--color-surface-white);
    font-weight: 500;
}

.margin-top-sm {
    margin-top: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    font-size: 0.88rem;
    color: #64748b;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.whatsapp-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-fast);
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.6);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    white-space: nowrap;
    background-color: var(--color-wood-dark);
    color: var(--color-surface-white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-fast);
    border: 1px solid var(--color-border-dark);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive Rules */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    .mobile-menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-wood-dark);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.2rem;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        border-bottom: 2px solid var(--color-gold-primary);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}
