/* ==========================================================================
   GyC TRAZOS Y ESTILOS - MAIN DESIGN SYSTEM
   Diseño Elegante, Alto Contraste, Texturas de Madera Nobles & Responsive Móvil Optimizado
   ========================================================================== */

:root {
    /* Color Palette - Vibrant Luxury & Wood Textures */
    --color-wood-dark: #12100e;
    --color-wood-warm: #26201b;
    --color-wood-card: #1d1815;
    --color-gold-primary: #f5c57a;
    --color-gold-hover: #ffda9e;
    --color-gold-light: #fef3c7;
    --color-rh-teal: #14b8a6;
    --color-rh-light: #ccfbf1;
    --color-bg-light: #faf8f5;
    --color-bg-alt: #f1ebd9;
    --color-surface-white: #ffffff;
    --color-text-dark: #1e1b18;
    --color-text-muted: #475569;
    --color-text-light: #f1f5f9;
    --color-border: #e2d9cc;
    --color-border-dark: #3d332a;

    /* 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 & Text Shadows */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 10px 30px rgba(245, 197, 122, 0.35);
    --text-shadow-hero: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
    --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: #b8860b;
    margin-bottom: 0.5rem;
}

.bg-dark .section-subtitle, .parallax-wood-banner .section-subtitle {
    color: var(--color-gold-primary);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.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) !important; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); }
.text-rh { color: var(--color-rh-teal) !important; }
.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);
    background-image: repeating-linear-gradient(45deg, rgba(245, 197, 122, 0.05) 0, rgba(245, 197, 122, 0.05) 1px, transparent 0, transparent 50%);
    background-size: 16px 16px;
}

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

.bg-dark h1, .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.9rem 1.9rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #d4a359, #b8860b);
    color: #12100e;
    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(245, 197, 122, 0.5);
    color: #000000;
}

.btn-secondary {
    background-color: rgba(18, 16, 14, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-color: var(--color-gold-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

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

.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.55rem 1.3rem;
    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);
    border-bottom: 2px solid rgba(245, 197, 122, 0.3);
}

.top-bar {
    background-color: #090807;
    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: #12100e;
    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: 600;
    font-size: 0.98rem;
    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-gold-primary);
}

.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: #0c0a08;
    color: var(--color-text-light);
    border-top: 2px 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: #cbd5e1;
}

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

.badge-tag {
    background-color: rgba(245, 197, 122, 0.15);
    color: var(--color-gold-primary);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(245, 197, 122, 0.4);
}

.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: #cbd5e1;
    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-gold-primary);
    transform: translateX(4px);
}

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

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

.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.08);
    padding: 1.5rem 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

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

/* Enlace a Ingruvo S.A.S. */
.ingruvo-link {
    color: var(--color-gold-primary);
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.ingruvo-link:hover {
    color: var(--color-gold-hover);
}

/* 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: 64px;
    height: 64px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    font-size: 2.3rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    transition: var(--transition-fast);
}

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

.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: 78px;
    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: 700;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-fast);
    border: 1px solid var(--color-gold-primary);
}

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

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

@media (max-width: 768px) {
    html { font-size: 15px; }

    .section-padding { padding: 3.2rem 0; }
    .section-padding-lg { padding: 4.2rem 0; }
    .container { padding: 0 1.2rem; }

    /* Ocultar barra superior en celulares por solicitud del cliente */
    .top-bar {
        display: none !important;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    .mobile-menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        background-color: var(--color-wood-dark);
        flex-direction: column;
        padding: 1.8rem 1.2rem;
        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);
    }

    .btn {
        width: 100%;
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .whatsapp-widget { bottom: 1.2rem; right: 1.2rem; }
    .whatsapp-float-btn { width: 56px; height: 56px; font-size: 2rem; }
    .whatsapp-tooltip { display: none; }
}
