/* Google Fonts are preconnected and preloaded in HTML files to avoid render-blocking @import chains */

:root {
    /* Colores de Fondo */
    --bg-color: #050505;
    --bg-surface: #111111;
    
    /* Acentos Dorados / Oro */
    --primary-gold: #D99222;
    --primary-gold-bright: #ffaf38;
    --primary-gold-dim: #7f520b;
    
    /* Sistema Glassmorphism */
    --glass-bg: rgba(26, 26, 26, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    
    /* Contornos y Variantes */
    --outline: #1A1A1A;
    --surface-variant: #1A1A1A;
    --on-surface-variant: #E5E5E5;
    --text-primary: #FFFFFF;
    --text-muted: #8C939D;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Desactivar ícono de "Búsqueda visual" (Google Lens) en Chrome */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.display-lg {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-md {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.body-large {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.body-medium {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--on-surface-variant);
}

.label-industrial {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-gold-bright);
    display: inline-block;
}

/* Componentes Core */

/* Panel de Vidrio */
.glass-panel {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-panel:hover {
    border-color: rgba(217, 146, 34, 0.3);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
}

/* Filas Interactivas */
.glass-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.glass-row:hover {
    transform: scale(1.01);
    border-color: rgba(217, 146, 34, 0.3);
    background: rgba(217, 146, 34, 0.02);
}

/* Botón Dorado Metálico */
.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dim) 100%);
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(217, 146, 34, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-gold > * {
    position: relative;
    z-index: 2;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 100px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 146, 34, 0.4);
    filter: brightness(1.1);
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 3;
}

.btn-gold:hover::after {
    left: 100%;
}


.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 26px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--outline);
}

/* Inputs Industriales */
.industrial-input, .industrial-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #ffffff;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.industrial-input:focus, .industrial-textarea:focus {
    border-color: var(--primary-gold);
    background: rgba(217, 146, 34, 0.05);
    box-shadow: 0 0 0 1px var(--primary-gold);
}

.industrial-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Pulsos y Resplandores */
.active-pulse {
    position: relative;
}

.active-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary-gold);
    border-radius: 6px;
    opacity: 0;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.98);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

.gold-glow {
    text-shadow: 0 0 10px rgba(255, 185, 88, 0.4);
}

/* Elemento de scroll offset para evitar solapamientos con el navbar fijo */
section {
    scroll-margin-top: 80px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    height: 64px;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo img {
    height: 220px;
    width: auto;
    display: block;
    margin-top: -70px;
    margin-bottom: -82px;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover img {
    opacity: 0.85;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    text-decoration: none;
    color: #8C939D;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.navbar-menu a:hover {
    color: #D99222;
}

.navbar-menu a.active {
    color: #FFFFFF;
    font-weight: 600;
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #D99222;
}

.navbar-hamburger {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px;
}

.navbar-hamburger .material-symbols-outlined {
    font-size: 28px;
}

/* Footer General */
.footer {
    background: #111111;
    border-top: 1px solid #1A1A1A;
    padding: 80px 32px 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.footer-brand h3 span {
    color: #D99222;
}

.footer-brand p {
    color: #8C939D;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-brand-desc {
    color: #8C939D;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.social-icon-link {
    color: #8C939D;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link:hover {
    color: #D99222;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    text-decoration: none;
    color: #8C939D;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #D99222;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid #1A1A1A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555555;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Layouts e Imágenes */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13, 14, 18, 0.95) 0%, rgba(13, 14, 18, 0.6) 60%, rgba(13, 14, 18, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 3;
}

.hero-text {
    max-width: 720px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: nowrap;
    align-items: center;
}

.hero-buttons > a {
    width: 280px;
    height: 48px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 11.5px;
    line-height: 1.2;
    padding: 0 12px;
    gap: 8px;
}

.hero-buttons > a.btn-gold {
    padding: 0 12px;
}

.hero-buttons > a.btn-secondary {
    padding: 0 12px;
}

@media (max-width: 991px) {
    .hero-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-buttons > a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Grids de Productos y Servicios */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    margin-top: 8px;
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-panel:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card-content p {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.card-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--on-surface-variant);
}

/* Sección Suscripción VIP / Formulario */
.newsletter-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.newsletter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
    gap: 32px;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.newsletter-text p {
    color: var(--on-surface-variant);
}

.newsletter-form {
    display: flex;
    gap: 16px;
    flex: 1.5;
    min-width: 300px;
    align-items: center;
}

/* Formularios de Contacto */
.contact-container {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.contact-form {
    padding: 48px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .navbar-logo img {
        height: 140px;
        margin-top: -42px;
        margin-bottom: -52px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
        min-height: 64px;
    }
    .navbar.scrolled {
        height: 56px;
        min-height: 56px;
    }
    .navbar-container {
        padding: 0 16px;
        min-height: 64px;
    }
    .navbar-logo img {
        height: 120px;
        margin-top: -35px;
        margin-bottom: -40px;
    }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 16px 0;
        gap: 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }
    .navbar-menu.active {
        display: flex;
    }
    .navbar-menu a {
        padding: 14px 24px;
        width: 100%;
        display: block;
        font-size: 13px;
    }
    .navbar-menu a.active::after {
        display: none;
    }
    .navbar-hamburger {
        display: block;
    }
    .display-lg {
        font-size: 32px;
    }
    .headline-md {
        font-size: 20px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        min-height: auto;
        padding: 100px 16px 60px;
    }
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(13, 14, 18, 0.7) 0%, rgba(13, 14, 18, 0.95) 100%);
    }
    .hero-text {
        max-width: 100%;
    }
    .newsletter-panel {
        padding: 32px 24px;
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 24px 16px;
    }
    .grid-container {
        padding: 60px 16px;
    }
    .section-header {
        margin-bottom: 32px;
    }
    .footer {
        padding: 60px 16px 32px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .glass-row {
        padding: 12px 16px;
    }
    .btn-gold {
        padding: 12px 20px;
        font-size: 13px;
    }
    .btn-secondary {
        padding: 11px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .display-lg {
        font-size: 26px;
    }
    .headline-md {
        font-size: 18px;
    }
    .navbar-logo img {
        height: 100px;
        margin-top: -25px;
        margin-bottom: -30px;
    }
    .hero-section {
        padding: 90px 12px 48px;
    }
    .grid-container {
        padding: 48px 12px;
    }
    .footer {
        padding: 48px 12px 24px;
    }
    .stat-number {
        font-size: 48px;
    }
}
