@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Colores Principal - Basada en logo corporativo */
    --bg-deep: #faf9f6;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-active: rgba(15, 23, 42, 0.16);
    
    /* Acentos – colores del logo corporativo */
    --accent-construct: #ce2029;
    --accent-construct-rgb: 206, 32, 41;
    --accent-wood: #ce2029;
    --accent-wood-rgb: 206, 32, 41;
    --accent-tech: #1b262c;
    --accent-tech-rgb: 27, 38, 44;
    
    /* Textos */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Radios */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    
    /* Sombras por niveles */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px -8px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 32px 80px -12px rgba(15, 23, 42, 0.12);
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-blur: blur(16px);
    
    /* Patrón de fondo */
    --dot-pattern: radial-gradient(rgba(15, 23, 42, 0.03) 0.8px, transparent 0.8px);
}

/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
    background-image: var(--dot-pattern);
    background-size: 24px 24px;
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-wood);
}

/* Clases Utilitarias */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 100px 0;
}

#portafolio {
    padding-top: 50px;
}

.text-center {
    text-align: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.glow-wood {
    box-shadow: 0 10px 30px -10px rgba(var(--accent-wood-rgb), 0.15);
}

.glow-tech {
    box-shadow: 0 10px 30px -10px rgba(var(--accent-tech-rgb), 0.15);
}

/* Degradados de texto */
.gradient-text-wood {
    background: linear-gradient(135deg, #e6222e 0%, #ce2029 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-tech {
    background: linear-gradient(135deg, #283845 0%, #1b262c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-mix {
    background: linear-gradient(135deg, #e6222e 0%, #b91c1c 50%, #1b262c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e6222e 0%, #ce2029 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--accent-construct-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--accent-construct-rgb), 0.4);
}

.btn-secondary {
    background: var(--text-primary);
    color: white;
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
}

.btn-tech {
    background: linear-gradient(135deg, #283845 0%, #1b262c 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--accent-tech-rgb), 0.25);
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--accent-tech-rgb), 0.4);
}

/* --- Menú de Navegación --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-lg);
    padding: 12px 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--accent-wood);
}

.nav-inner {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-wood), var(--accent-tech));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn-contacto {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.nav-links .btn-contacto::after {
    display: none;
}

.nav-links .btn-contacto:hover {
    background: var(--text-primary);
    color: var(--bg-deep) !important;
    border-color: var(--text-primary);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Fondo de cuadrícula decorativa */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* Overlay gradiente dramático */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(250, 249, 246, 0) 0%,
        rgba(250, 249, 246, 0.3) 40%,
        rgba(250, 249, 246, 0.9) 85%,
        var(--bg-deep) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Contenedor 3D del hero */
#hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(252, 211, 77, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(206, 32, 41, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
}

#hero-3d-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#hero-3d-bg.loaded canvas {
    opacity: 1;
}

/* Brillos decorativos de fondo */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.07;
    z-index: 1;
    pointer-events: none;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    background: var(--accent-wood);
}

.bg-glow-2 {
    bottom: -200px;
    right: -200px;
    background: var(--accent-tech);
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin-bottom: 60px;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero.hero-ready .hero-content {
    opacity: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Slider de Acordeón --- */
.slider-wrapper {
    position: relative;
    z-index: 3;
    width: 95%;
    margin: 0 auto;
}
.hero .slider-wrapper {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero.hero-ready .slider-wrapper {
    opacity: 1;
}
.slider-container {
    display: flex;
    width: 100%;
    height: 550px;
    gap: 16px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.03);
}

.panel {
    height: 100%;
    flex: 1;
    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slider-container.visible .panel {
    opacity: 0;
    transform: translateX(100px);
    animation: panelSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.slider-container.visible .panel:nth-child(1) { animation-delay: 0.1s; }
.slider-container.visible .panel:nth-child(2) { animation-delay: 0.3s; }
.slider-container.visible .panel:nth-child(3) { animation-delay: 0.5s; }
.slider-container.visible .panel:nth-child(4) { animation-delay: 0.7s; }
.slider-container.visible .panel:nth-child(5) { animation-delay: 0.9s; }
@keyframes panelSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Overlay gradiente oscuro en paneles */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    transition: var(--transition-smooth);
}

.panel.active-auto, .panel:hover {
    flex: 5;
}

.panel.active-auto::before, .panel:hover::before {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
}

/* Texto vertical de panels cerrados */
.panel span {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    transition: var(--transition-smooth);
    z-index: 2;
    white-space: nowrap;
}

.panel.active-auto span, .panel:hover span {
    opacity: 0;
    transform: translate(-50%, -150%) rotate(180deg);
}

/* Contenido de panels abiertos */
.panel .content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    padding: 40px;
    position: relative;
    z-index: 3;
    width: 100%;
    pointer-events: none;
}

.panel.active-auto .content, .panel:hover .content {
    opacity: 1;
    transform: translateY(0);
}

.panel .content h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: white;
}

.panel .content p {
    color: #fff;
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.5;
}

.progress-bar-container {
    width: 100%;
    margin: 24px auto 0 auto;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-wood), var(--accent-tech));
    width: 0%;
    border-radius: 10px;
    transition: width 0.03s linear;
}

/* --- Sección Pilares de Servicio --- */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-construct), var(--accent-tech), transparent);
    border-radius: 3px;
    margin: 24px auto 0;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Badge de Sección --- */
.section-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-construct);
    background: rgba(var(--accent-construct-rgb), 0.08);
    margin-bottom: 18px;
    border: 1px solid rgba(var(--accent-construct-rgb), 0.08);
}

/* --- Decoración de Fondo --- */
#servicios {
    position: relative;
}

#portafolio,
#a-la-medida,
#tienda,
#cotizador {
    position: relative;
}

#portafolio::before,
#a-la-medida::before,
#tienda::before,
#cotizador::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.06), transparent);
}

.pilares-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.pilares-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.pilares-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-construct-rgb), 0.4), transparent 70%);
    top: -150px;
    left: -100px;
    animation: blobFloat 20s ease-in-out infinite;
}

.pilares-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-construct-rgb), 0.3), transparent 70%);
    bottom: -100px;
    right: -50px;
    animation: blobFloat 25s ease-in-out infinite reverse;
}

.pilares-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-tech-rgb), 0.3), transparent 70%);
    top: 40%;
    left: 60%;
    animation: blobFloat 18s ease-in-out infinite 3s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* --- Grid de Pilares --- */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.pilar-card {
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

/* Barra de acento superior */
.pilar-accent-bar {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

.construct-card .pilar-accent-bar {
    background: linear-gradient(90deg, var(--accent-construct), rgba(var(--accent-construct-rgb), 0.3));
}

.wood-card .pilar-accent-bar {
    background: linear-gradient(90deg, var(--accent-wood), rgba(var(--accent-wood-rgb), 0.3));
}

.tech-card .pilar-accent-bar {
    background: linear-gradient(90deg, var(--accent-tech), rgba(var(--accent-tech-rgb), 0.3));
}

/* Número decorativo de fondo */
.pilar-number {
    position: absolute;
    top: 12px;
    right: 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.04;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
}

.construct-card .pilar-number { color: var(--accent-construct); }
.wood-card .pilar-number { color: var(--accent-wood); }
.tech-card .pilar-number { color: var(--accent-tech); }

/* Contenido de la tarjeta */
.pilar-card-content {
    padding: 28px 24px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.pilar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(120px circle at var(--x, 0) var(--y, 0), rgba(255,255,255,0.8), transparent 80%);
    z-index: 2;
    pointer-events: none;
}

/* Gradientes de fondo y estilos por tipo */
.pilar-card.construct-card {
    background: linear-gradient(145deg, rgba(var(--accent-construct-rgb), 0.04), #ffffff 60%);
}

.pilar-card.wood-card {
    background: linear-gradient(145deg, rgba(var(--accent-wood-rgb), 0.04), #ffffff 60%);
}

.pilar-card.tech-card {
    background: linear-gradient(145deg, rgba(var(--accent-tech-rgb), 0.04), #ffffff 60%);
}

.pilar-card:hover {
    transform: translateY(-10px);
}

.pilar-card.construct-card:hover {
    border-color: rgba(var(--accent-construct-rgb), 0.25);
    box-shadow: 0 25px 50px -12px rgba(var(--accent-construct-rgb), 0.25);
    background: linear-gradient(145deg, rgba(var(--accent-construct-rgb), 0.07), #ffffff 60%);
}

.pilar-card.wood-card:hover {
    border-color: rgba(var(--accent-wood-rgb), 0.25);
    box-shadow: 0 25px 50px -12px rgba(var(--accent-wood-rgb), 0.2);
    background: linear-gradient(145deg, rgba(var(--accent-wood-rgb), 0.07), #ffffff 60%);
}

.pilar-card.tech-card:hover {
    border-color: rgba(var(--accent-tech-rgb), 0.3);
    box-shadow: 0 25px 50px -12px rgba(var(--accent-tech-rgb), 0.25);
    background: linear-gradient(145deg, rgba(var(--accent-tech-rgb), 0.07), #ffffff 60%);
}

/* Iconos */
.pilar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.pilar-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.pilar-card:hover .pilar-icon {
    transform: scale(1.08);
}

.pilar-card.construct-card .pilar-icon {
    background: linear-gradient(135deg, rgba(var(--accent-construct-rgb), 0.1), rgba(var(--accent-construct-rgb), 0.04));
    color: var(--accent-construct);
    border: 1px solid rgba(var(--accent-construct-rgb), 0.15);
}

.pilar-card.construct-card:hover .pilar-icon {
    background: linear-gradient(135deg, rgba(var(--accent-construct-rgb), 0.15), rgba(var(--accent-construct-rgb), 0.06));
    box-shadow: 0 8px 24px rgba(var(--accent-construct-rgb), 0.2);
}

.pilar-card.wood-card .pilar-icon {
    background: linear-gradient(135deg, rgba(var(--accent-wood-rgb), 0.1), rgba(var(--accent-wood-rgb), 0.04));
    color: var(--accent-wood);
    border: 1px solid rgba(var(--accent-wood-rgb), 0.15);
}

.pilar-card.wood-card:hover .pilar-icon {
    background: linear-gradient(135deg, rgba(var(--accent-wood-rgb), 0.15), rgba(var(--accent-wood-rgb), 0.06));
    box-shadow: 0 8px 24px rgba(var(--accent-wood-rgb), 0.2);
}

.pilar-card.tech-card .pilar-icon {
    background: linear-gradient(135deg, rgba(var(--accent-tech-rgb), 0.1), rgba(var(--accent-tech-rgb), 0.04));
    color: var(--accent-tech);
    border: 1px solid rgba(var(--accent-tech-rgb), 0.2);
}

.pilar-card.tech-card:hover .pilar-icon {
    background: linear-gradient(135deg, rgba(var(--accent-tech-rgb), 0.15), rgba(var(--accent-tech-rgb), 0.06));
    box-shadow: 0 8px 24px rgba(var(--accent-tech-rgb), 0.2);
}

/* Tipografía */
.pilar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.pilar-card:hover h3 {
    letter-spacing: -0.01em;
}

.pilar-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 0.88rem;
}

/* Lista de características */
.pilar-list {
    list-style: none;
    margin-bottom: 20px;
}

.pilar-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.pilar-list li:hover {
    background: rgba(255,255,255,0.5);
}

.pilar-list li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pilar-card.construct-card .pilar-list li::before {
    background: rgba(var(--accent-construct-rgb), 0.12);
    color: var(--accent-construct);
}

.pilar-card.wood-card .pilar-list li::before {
    background: rgba(var(--accent-wood-rgb), 0.12);
    color: var(--accent-wood);
}

.pilar-card.tech-card .pilar-list li::before {
    background: rgba(var(--accent-tech-rgb), 0.12);
    color: var(--accent-tech);
}

/* Botón de enlace */
.pilar-card .learn-more {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    padding: 10px 0;
    border-radius: var(--radius-sm);
    align-self: flex-start;
    position: relative;
}

.pilar-card .learn-more::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.pilar-card.construct-card .learn-more {
    color: var(--accent-construct);
}
.pilar-card.construct-card .learn-more::after {
    background: var(--accent-construct);
}

.pilar-card.wood-card .learn-more {
    color: var(--accent-wood);
}
.pilar-card.wood-card .learn-more::after {
    background: var(--accent-wood);
}

.pilar-card.tech-card .learn-more {
    color: var(--accent-tech);
}
.pilar-card.tech-card .learn-more::after {
    background: var(--accent-tech);
}

.pilar-card .learn-more:hover {
    gap: 14px;
}

.pilar-card .learn-more:hover::after {
    width: 100%;
}

.pilar-card .learn-more svg {
    transition: var(--transition-smooth);
}

.pilar-card .learn-more:hover svg {
    transform: translateX(3px);
}

/* --- Proyectos a la Medida --- */
.medida-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.medida-content h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.medida-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.material-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.material-card {
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-wood);
}
.material-card.active {
    border-color: var(--accent-wood);
    background: rgba(var(--accent-wood-rgb), 0.04);
    box-shadow: 0 0 0 2px rgba(var(--accent-wood-rgb), 0.15);
}

.material-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.material-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.material-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.medida-visual {
    position: relative;
    border-radius: var(--radius-lg);
}

.medida-img-main {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.medida-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 24px 32px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.medida-badge strong {
    font-size: 2.5rem;
    color: var(--accent-wood);
    line-height: 1;
}

.medida-badge span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Portafolio Filtrable --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
    background: rgba(255, 255, 255, 0.5);
}

.filter-btn:hover svg {
    opacity: 0.8;
}

.filter-btn.active {
    background: var(--accent-construct);
    color: #fff;
    border-color: var(--accent-construct);
    box-shadow: 0 4px 15px rgba(var(--accent-construct-rgb), 0.25);
}

.filter-btn.active svg {
    opacity: 1;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

#admin-projects-grid,
#admin-products-container {
    display: contents;
}

/* Featured item */

.portfolio-item--featured {
    grid-column: span 2;
    grid-row: span 1;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
}

/* Responsive: on narrow screens make featured occupy full width */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .portfolio-item--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 320px;
        min-height: 0;
    }
    .portfolio-item--featured .portfolio-img-wrapper {
        min-height: 0;
        height: 100%;
    }
    .portfolio-item--featured .portfolio-video {
        object-fit: cover;
    }
    .portfolio-item--featured .featured-info {
        padding: 16px 20px 18px;
    }
    .portfolio-item--featured .featured-info h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    .portfolio-item--featured .featured-info p {
        font-size: 0.78rem;
        max-width: 100%;
        margin-bottom: 10px;
        display: block;
    }
    .portfolio-item--featured .featured-badge {
        top: 10px;
        left: 10px;
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    .portfolio-item--featured .featured-cta {
        font-size: 0.75rem;
        padding: 7px 16px;
    }
    .portfolio-item--featured:hover {
        transform: none;
    }
    .portfolio-img-wrapper {
        height: 220px;
    }
    .portfolio-body {
        padding: 16px 18px 18px;
    }
    .portfolio-body h4 {
        font-size: 1rem;
    }
}
.portfolio-item--featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Featured wrapper fills full card */
.portfolio-item--featured .portfolio-img-wrapper {
    height: 100%;
    min-height: 400px;
    position: absolute;
    inset: 0;
}

.portfolio-item--featured .portfolio-video,
.portfolio-item--featured .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Cinematic gradient overlay */
.portfolio-item--featured .featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 3, 0, 0.92) 0%,
        rgba(5, 3, 0, 0.35) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Top badge */
.portfolio-item--featured .featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 3;
}

.portfolio-item--featured .featured-badge::before {
    display: none;
}

/* Bottom info overlay */
.portfolio-item--featured .featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 32px 32px;
    z-index: 3;
}

.portfolio-item--featured .featured-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.portfolio-item--featured:hover .featured-info h3 {
    color: #fff;
}

.portfolio-item--featured .featured-info p {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
    max-width: 520px;
    margin-bottom: 22px;
}

.portfolio-item--featured .featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: all;
}

.portfolio-item--featured .featured-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Body hidden for featured */
.portfolio-item--featured .portfolio-body {
    display: none;
}

/* ---- Regular Items Premium ---- */
.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-construct), rgba(206,32,41,0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.1);
}

.portfolio-item.show {
    display: flex;
    flex-direction: column;
    animation: portfolioIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portfolioIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Image Wrapper */
.portfolio-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f7f4;
}

.portfolio-media {
    width: 100%;
    height: 100%;
}

.portfolio-img,
.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Hover Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-btn-view {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transform: scale(0.8) translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

.portfolio-btn-view:hover {
    background: var(--accent-construct);
    color: #fff;
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-btn-view {
    transform: scale(1) translateY(0);
}

/* Card Body */
.portfolio-body {
    padding: 20px 22px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-construct);
    margin-bottom: 6px;
}

.portfolio-body h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-body h4 {
    color: var(--accent-construct);
}

.portfolio-accent-line {
    width: 30px;
    height: 2px;
    background: var(--accent-construct);
    transition: width 0.4s ease;
    margin-top: auto;
}

.portfolio-item:hover .portfolio-accent-line {
    width: 50px;
}

/* --- Botón Ver Más de Portafolio --- */
.portfolio-more-container {
    display: none;
    justify-content: center;
    margin-top: 50px;
}

.btn-load-more {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
    background: var(--accent-construct);
    color: #fff;
    border-color: var(--accent-construct);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--accent-construct-rgb), 0.25);
}

.btn-load-more svg {
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.btn-load-more:hover svg {
    transform: translateY(3px);
}

/* --- Cotizador Interactivo --- */
.quote-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.04);
    animation: badgePulse 2.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.04); }
    50% { transform: scale(1.03); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.04); }
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.quote-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 15px;
    transform: translateY(-16px);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

/* Stepper Active/Completed States */
.step-indicator.active .step-number {
    border-color: var(--accent-wood);
    background: var(--accent-wood);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--accent-wood-rgb), 0.25);
}

.step-indicator.active .step-label {
    color: var(--text-primary);
    font-weight: 700;
}

.step-indicator.completed .step-number {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.step-indicator.completed .step-label {
    color: #10b981;
    font-weight: 700;
}

.quote-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(15, 23, 42, 0.03);
    position: absolute;
    top: 0;
    left: 0;
}

.quote-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-wood), var(--accent-tech));
    width: 33.33%;
    transition: var(--transition-smooth);
}

.quote-step {
    display: none; /* Controlado por JS */
}

.quote-step.active {
    display: block;
    animation: fade-in-left 0.5s ease forwards;
}

@keyframes fade-in-left {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.quote-step h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.quote-step .step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Opciones de Selección con Checkbox */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.01);
}

.option-card .select-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: transparent;
    transition: var(--transition-smooth);
}

.option-card:hover .select-badge {
    border-color: var(--border-active);
}

.option-card.selected {
    border-color: var(--accent-wood);
    background: rgba(var(--accent-wood-rgb), 0.03);
    box-shadow: 0 12px 30px rgba(var(--accent-wood-rgb), 0.08);
    transform: translateY(-4px);
}

.option-card.selected .select-badge {
    background: var(--accent-wood);
    border-color: var(--accent-wood);
    color: white;
}

.option-icon {
    font-size: 2.2rem;
    transition: var(--transition-smooth);
}

.option-card:hover .option-icon {
    transform: scale(1.1);
}

.option-card strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.option-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Campos de Formulario y Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-wood);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(var(--accent-wood-rgb), 0.06);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Banner Informativo de WhatsApp */
.whatsapp-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.wa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.wa-banner-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #128c7e;
    margin-bottom: 4px;
}

.wa-banner-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Botón Temático de WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.quote-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 20px;
}

/* Pantalla de Éxito del Cotizador */
.success-screen {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-tech);
    border: 2px solid var(--accent-tech);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px auto;
    animation: scale-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scale-bounce {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Pie de Página (Footer) --- */
footer {
    background: #f1f5f9;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-wood);
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-wood);
    color: white;
    transform: translateY(-3px);
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-control {
    border-radius: var(--radius-sm);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* Media Gallery styling removed - replaced with main portfolio integration */

/* --- Media Queries (Responsividad) --- */
@media (max-width: 1024px) {
    .pilares-grid, .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .medida-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .slider-wrapper {
        padding: 0;
    }
    .slider-container {
        border-radius: 0;
    }
    .progress-bar-container {
        width: 100%;
    }
    nav {
        border-radius: 0;
        top: 10px;
        left: 0;
        right: 0;
        width: auto;
        padding: 0;
        overflow: visible;
        display: block;
        transform: none;
    }
    .nav-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px 16px 10px 18px;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: rgba(var(--accent-construct-rgb), 0.06);
        border: 1px solid rgba(var(--accent-construct-rgb), 0.15);
        transition: var(--transition-fast);
        flex-shrink: 0;
        color: var(--accent-construct);
        font-size: 1.4rem;
        margin-left: auto;
    }
    .menu-toggle:active {
        transform: scale(0.92);
        background: rgba(var(--accent-construct-rgb), 0.12);
    }
    .logo img {
        height: 42px !important;
    }
    .logo div span:first-child {
        font-size: 1rem !important;
    }
    .logo div span:last-child {
        font-size: 0.7rem !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 6px);
        left: 5%;
        width: 90%;
        max-width: 400px;
        background: var(--bg-dark);
        padding: 24px 18px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        gap: 6px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(15, 23, 42, 0.05);
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        animation: navDropIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes navDropIn {
        from { opacity: 0; transform: translateY(-12px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .nav-links.active {
        display: flex;
        z-index: 1001;
    }
    .nav-links a {
        font-size: 1rem;
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        border-radius: 12px;
        transition: background 0.2s ease;
    }
    .nav-links a:hover {
        background: rgba(15, 23, 42, 0.04);
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links .btn-contacto {
        margin-top: 8px;
        padding: 14px 20px !important;
        border-radius: 14px !important;
        font-size: 1rem !important;
        background: linear-gradient(135deg, #e6222e 0%, #ce2029 100%) !important;
        color: white !important;
        border: none !important;
    }
    .hero {
        padding-top: 120px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
    }
    .slider-container {
        flex-direction: column;
        height: 700px;
    }
    .panel {
        width: 100%;
        flex: 1;
    }
    .panel.active-auto, .panel:hover {
        flex: 4;
    }
    .panel span {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .panel.active-auto span, .panel:hover span {
        transform: translate(-50%, -150%);
    }
    .pilares-grid, .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pilar-card-content {
        padding: 24px 22px 28px;
    }
    .pilar-number {
        font-size: 3.2rem;
    }
    .pilar-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }
    .pilar-card h3 {
        font-size: 1.15rem;
    }
    .pilar-card p {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    .pilar-list {
        margin-bottom: 16px;
    }
    .pilar-list li {
        font-size: 0.82rem;
        padding: 5px 8px;
        margin-bottom: 5px;
    }
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .quote-container {
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================================
   TIENDA ONLINE - E-COMMERCE PREMIUM
   ============================================ */

/* Hero Banner de la Tienda */
.tienda-hero {
    position: relative;
    height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
}

.tienda-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}



.tienda-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
    z-index: 1;
}

.tienda-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 56px;
    max-width: 560px;
}

.tienda-badge {
    display: inline-block;
    background: rgba(var(--accent-wood-rgb), 0.2);
    border: 1px solid rgba(var(--accent-wood-rgb), 0.4);
    color: #fcd34d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.tienda-hero-content h3 {
    font-size: 2.4rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 12px;
}

.tienda-hero-content p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Barra de ordenamiento */
.store-sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: flex-end;
}
.store-sort-bar label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.store-sort-bar select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.store-sort-bar select:focus {
    border-color: var(--accent-wood);
}

/* Filtros de Categoría */
.store-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.store-filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.store-filter-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.store-filter-btn:hover {
    border-color: var(--accent-wood);
    color: var(--text-primary);
    background: rgba(var(--accent-wood-rgb), 0.06);
}
.store-filter-btn:hover svg {
    opacity: 0.8;
}

.store-filter-btn.active {
    background: linear-gradient(135deg, #e6222e 0%, #ce2029 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(var(--accent-construct-rgb), 0.3);
}
.store-filter-btn.active svg {
    opacity: 1;
}

/* Grid de Productos - 4 columnas */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tarjeta de Producto */
.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--accent-construct-rgb), 0.15);
}

/* Wrapper de imagen con overlay */
.product-img-wrapper {
    position: relative;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}

.product-card:hover .product-img-wrapper::after {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Badges de producto */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e6222e, #ce2029);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 50px;
    z-index: 2;
}

.product-badge.badge-tech {
    background: linear-gradient(135deg, #283845, #1b262c);
}

.product-badge.badge-new {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Cuerpo de la tarjeta */
.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
    overflow: hidden;
}

.product-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    font-family: 'Outfit', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--accent-construct);
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

/* Footer de la tarjeta: precio + botón */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}



/* Para asegurar que el icono dentro del botón no sea gigante */
.btn-quote-wa svg, 
.btn-quote-wa img {
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
}




/* --- Ajustes de la Barra de Búsqueda --- */
.store-search-bar {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    padding: 12px 24px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    background: var(--bg-card) !important;
    width: 100% !important;
    max-width: 550px !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
    transition: var(--transition-smooth) !important;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-construct) !important;
    box-shadow: 0 10px 30px rgba(var(--accent-construct-rgb), 0.08) !important;
    transform: translateY(-1px) !important;
}

.search-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-right: 12px !important;
    color: var(--text-muted) !important;
    transition: var(--transition-fast) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--accent-wood) !important;
}

#store-search-input {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 1rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--text-primary) !important;
    background: transparent !important;
}

#store-search-input::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.85 !important;
}

.search-clear-btn {
    background: rgba(15, 23, 42, 0.04) !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: none; /* Controlado por JS (flex o none) */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    transition: var(--transition-fast) !important;
    flex-shrink: 0 !important;
}

.search-clear-btn:hover {
    background: var(--text-primary) !important;
    color: var(--bg-deep) !important;
}


.btn-quote-wa {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-quote-wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-quote-wa svg,
.btn-quote-wa img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Responsive tienda */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .tienda-hero {
        height: 280px;
    }
    .tienda-hero-content {
        padding: 32px 32px;
    }
    .tienda-hero-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-card {
        height: auto;
    }
    .tienda-hero {
        height: 240px;
    }
}


/* ============================================
   RESPONSIVE — Mejoras para móviles pequeños
   ============================================ */
@media (min-width: 601px) {
    .filter-select-mobile,
    .store-filter-select-mobile {
        display: none;
    }
    .custom-dropdown {
        display: none;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    .nav-inner {
        max-width: 100%;
        padding: 10px 12px 10px 16px;
    }
    .nav-links {
        max-width: 100%;
        margin-left: 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero-actions {
        max-width: 100%;
    }
    .slider-container {
        height: 65vh;
        min-height: 460px;
        max-height: 560px;
    }
    .panel {
        flex: 1;
        min-height: 0;
    }
    .panel span {
        padding: 8px 12px;
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        color: rgba(255,255,255,0.7);
        text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    }
    .panel .content {
        padding: 16px 20px;
    }
    .panel .content h2 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    .panel .content p {
        display: none;
    }
    .store-search-bar {
        max-width: 100%;
        margin: 20px auto;
    }
    .search-input-wrapper {
        max-width: 100% !important;
    }
    .product-grid {
        gap: 16px;
    }
    .product-card {
        height: auto;
    }
    .product-card .product-img-wrapper {
        height: 180px;
    }
    .portfolio-grid {
        gap: 16px;
    }
    .pilares-grid {
        gap: 12px;
    }
    .pilar-card-content {
        padding: 18px 16px 22px;
    }
    .pilar-number {
        font-size: 2.8rem;
        top: 8px;
        right: 12px;
    }
    .pilar-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    .pilar-icon svg {
        width: 20px;
        height: 20px;
    }
    .pilar-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    .pilar-card p {
        font-size: 0.82rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    .pilar-list {
        margin-bottom: 14px;
    }
    .pilar-list li {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 4px;
        gap: 8px;
    }
    .pilar-list li::before {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 0.6rem;
    }
    .pilar-card .learn-more {
        font-size: 0.82rem;
    }
    .portfolio-item--featured .featured-info h3 {
        font-size: 0.95rem;
    }
    .portfolio-item--featured .featured-cta {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    .material-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }
    .material-card {
        padding: 10px 8px;
        text-align: center;
    }
    .material-icon {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    .material-card h4 {
        font-size: 0.78rem;
        margin-bottom: 0;
    }
    .medida-wrapper {
        gap: 20px;
    }
    .medida-content h2 {
        font-size: 1.8rem;
    }
    .medida-img-main {
        height: 350px;
    }
    .medida-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: -20px;
        margin-left: 10px;
        padding: 16px 24px;
    }
    .medida-badge strong {
        font-size: 1.8rem;
    }
    .footer-grid {
        gap: 24px;
    }
    .quote-container {
        padding: 24px 16px;
    }
    .quote-step h3 {
        font-size: 1.2rem;
    }
    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .quote-nav {
        flex-direction: column;
        gap: 12px;
    }
    .quote-nav .btn {
        width: 100%;
    }
    .tienda-hero {
        height: 220px;
    }
    .tienda-hero-content {
        padding: 20px 20px;
        max-width: 100%;
    }
    .tienda-hero-content .tienda-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    .tienda-hero-content h3 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    .tienda-hero-content p {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    .tienda-hero-content .btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    .tienda-hero::after {
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 80%, transparent 100%);
    }
    .portfolio-filters,
    .store-filters {
        display: none;
    }
    .custom-dropdown {
        position: relative;
        display: block;
        margin-bottom: 20px;
        z-index: 10;
    }
    .dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        color: var(--text-primary);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-fast);
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    }
    .dropdown-trigger:active {
        transform: scale(0.98);
    }
    .dropdown-label {
        flex: 1;
    }
    .dropdown-arrow {
        flex-shrink: 0;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        color: var(--text-muted);
    }
    .dropdown-open .dropdown-arrow {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: var(--bg-card);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-xl);
        overflow: hidden;
        display: none;
        animation: dropdownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        z-index: 100;
    }
    .dropdown-open .dropdown-menu {
        display: block;
    }
    @keyframes dropdownIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .dropdown-item {
        padding: 14px 18px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-secondary);
        cursor: pointer;
        transition: var(--transition-fast);
        border-bottom: 1px solid var(--border-color);
    }
    .dropdown-item:last-child {
        border-bottom: none;
    }
    .dropdown-item:hover {
        background: var(--bg-card-hover);
        color: var(--text-primary);
    }
    .dropdown-item.active {
        color: var(--accent-wood);
        font-weight: 700;
        background: rgba(var(--accent-wood-rgb), 0.04);
    }
    .dropdown-overlay {
        position: fixed;
        inset: 0;
        z-index: 9;
        display: none;
    }
    .dropdown-open + .dropdown-overlay,
    .custom-dropdown.dropdown-open .dropdown-overlay {
        display: block;
    }
    .store-sort-bar {
        justify-content: center;
        margin-bottom: 12px;
    }
}

@media (max-width: 420px) {
    .slider-container {
        min-height: 400px;
        max-height: 480px;
    }
    .panel span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .panel .content h2 {
        font-size: 1.1rem;
    }
    .tienda-hero {
        height: 200px;
    }
    .tienda-hero-content h3 {
        font-size: 1.1rem;
    }
}


/* ===========================
   LIGHTBOX MODAL
   =========================== */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lbFadeIn 0.25s ease forwards;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#lightbox-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 90vh;
    animation: lbZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lbZoomIn {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

#lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    display: block;
}

#lightbox-video {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    background: #000;
    display: block;
}

#lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
}

/* Cursor hint on portfolio media */
.portfolio-img  { cursor: zoom-in; }
.portfolio-video { cursor: pointer; }

/* ============================================
   STATS / INDICADORES
   ============================================ */
.stats-section {
    padding: 30px 0;
    position: relative;
}
.stats-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.stats-text {
    flex-shrink: 0;
    max-width: 320px;
}
.stats-text h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}
.stats-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}
.stats-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    flex: 1;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}
@media (max-width: 768px) {
    .stats-section { padding: 20px 0; }
    .stats-wrapper { flex-direction: column; gap: 40px; text-align: center; padding: 40px 24px; }
    .stats-numbers { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stat-number { font-size: 2rem; }
}

/* ============================================
   HERO ENTRANCE ANIMATION
   ============================================ */
.hero-content {
    animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content h1 {
    opacity: 0;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
.hero-content p {
    opacity: 0;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.hero-content .hero-actions {
    opacity: 0;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
@keyframes heroIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}
/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Medida wrapper dynamic entrance ─── */
.medida-wrapper.visible .medida-content > * {
    opacity: 0;
    animation: medidaIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.medida-wrapper.visible .medida-content > :nth-child(1) { animation-name: medidaInLeft; animation-delay: 0s; }
.medida-wrapper.visible .medida-content > :nth-child(2) { animation-delay: 0.1s; }
.medida-wrapper.visible .medida-content > :nth-child(3) { animation-delay: 0.2s; }
.medida-wrapper.visible .medida-content > :nth-child(4) { animation-delay: 0.3s; }
.medida-wrapper.visible .medida-visual {
    opacity: 0;
    animation: medidaInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.medida-wrapper.visible .medida-badge {
    opacity: 0;
    animation: medidaIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
@keyframes medidaIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes medidaInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes medidaInRight {
    from { opacity: 0; transform: translateX(40px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

