/* ==========================================================================
   FIBRACOL INDUSTRY - PORTAFOLIO DE VENTAS DIGITALES & SHOWROOM DE FÁBRICA
   Diseño Web Moderno, Elegante y de Alto Rendimiento para Artículos del Descanso
   ========================================================================== */

:root {
    /* Paleta Institucional Premium */
    --primary-color: #0B3B24;      /* Verde Bosque Esmeralda Profundo */
    --primary-dark: #062315;       /* Sombra Profunda de Fábrica */
    --primary-light: #155536;      /* Verde Suave Acento */
    --accent-color: #C39A3A;       /* Dorado Champán FibraCol */
    --accent-hover: #D8AD45;       /* Dorado Luminoso Hover */
    --accent-soft: rgba(195, 154, 58, 0.14);
    --accent-border: rgba(195, 154, 58, 0.35);

    /* Neutros & Superficies */
    --bg-canvas: #FAF9F6;         /* Fondo Alabastro Suave */
    --bg-card: #FFFFFF;           /* Blanco Puro */
    --bg-muted: #F3F4F6;          /* Gris Seda Suave */
    --bg-dark: #0D1612;           /* Gris Pizarra Oscuro */
    --text-main: #1F2937;         /* Texto Principal Legible */
    --text-muted: #64748B;        /* Texto Secundario Elegante */
    --text-light: #FFFFFF;
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;

    /* Sombras y Glassmorphism */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(11, 59, 36, 0.07);
    --shadow-lg: 0 16px 36px rgba(11, 59, 36, 0.12);
    --shadow-gold: 0 6px 20px rgba(195, 154, 58, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-blur: blur(12px);

    /* Tipografías y Espaciado */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nav-h: 96px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

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

/* Tipografía Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

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

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

button {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Barra Superior de Anuncios ---------- */
.top-announcement-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(195, 154, 58, 0.3);
}

.announcement-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.announcement-badge i {
    color: var(--accent-color);
}

.announcement-contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.announcement-contact a {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.announcement-contact a:hover {
    color: var(--accent-color);
}

/* ---------- Navbar Comercial ---------- */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper img {
    height: 68px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-wa-mobile { display: none; }

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 8px;
}

/* ---------- Botones del Sistema ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 59, 36, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 59, 36, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #E8C162);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(195, 154, 58, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline-dark:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(11, 59, 36, 0.04);
}

.btn-whatsapp-nav {
    background-color: #25D366;
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-nav:hover {
    background-color: #20BD5A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.w-100 {
    width: 100%;
}

/* ---------- Hero Section con Imagen Real de Fábrica ---------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/Habitacion_FibraCol.jpeg');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    color: #fff;
    padding: 90px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 35, 21, 0.94) 0%, rgba(11, 59, 36, 0.85) 55%, rgba(6, 35, 21, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(195, 154, 58, 0.2);
    border: 1px solid var(--accent-color);
    color: #F8E7B9;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}

.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-content h1 span {
    color: var(--accent-color);
    font-style: italic;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 34px;
    max-width: 680px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-trust-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* ---------- Barra de Métricas & Respaldo de Fábrica ---------- */
.metrics-strip {
    background: #fff;
    padding: 40px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.metric-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
}

.metric-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.metric-info h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.metric-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Encabezados de Sección ---------- */
.section-header {
    margin-bottom: 40px;
}

.section-pretitle {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

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

/* ---------- PORTAFOLIO DE PRODUCTOS & CARRUSEL DE COLORES ---------- */
.portfolio-section {
    padding: 85px 0 100px;
    background: var(--bg-canvas);
}

/* Filtros Interactivos de Portafolio */
.portfolio-filters-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
}

.portfolio-filters {
    display: inline-flex;
    background: #fff;
    padding: 6px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary-color);
    background: rgba(11, 59, 36, 0.05);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 59, 36, 0.2);
}

/* Grid del Portafolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 36px;
}

/* Tarjeta de Producto en Portafolio */
.portfolio-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Badges Superiores Flotantes */
.card-header-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.badge-tag {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.badge-tag.primary {
    background: rgba(11, 59, 36, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-tag.gold {
    background: rgba(195, 154, 58, 0.95);
    color: var(--primary-dark);
    font-weight: 800;
}

.badge-tag.real-photo {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* ---------- Componente Carrusel de Producto ---------- */
.product-carousel {
    position: relative;
    background: #E5E7EB;
}

.carousel-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f5;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    cursor: zoom-in;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

/* Controles de Navegación del Carrusel (Flechas Glassmorphism) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    z-index: 5;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.carousel-btn:hover {
    background: #fff;
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

/* Indicador flotante en la foto: Color activo y Zoom */
.carousel-floating-indicators {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 6;
}

.active-color-pill {
    background: rgba(11, 59, 36, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-dot-preview {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    display: inline-block;
}

.btn-zoom-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.btn-zoom-trigger:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Barra de Swatches de Color y Miniaturas debajo de la foto */
.carousel-controls-bar {
    padding: 14px 18px 12px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.swatches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.swatches-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.swatches-counter {
    font-size: 0.78rem;
    color: var(--accent-color);
    font-weight: 700;
}

.color-swatches {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.color-swatch-btn:hover {
    transform: scale(1.18);
}

.color-swatch-btn.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-color);
}

/* Miniaturas de vista rápida (Thumbnails strip) */
.carousel-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.thumb-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
    cursor: pointer;
    background: #eee;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn:hover {
    opacity: 0.9;
}

.thumb-btn.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 2px 6px rgba(195, 154, 58, 0.4);
    transform: translateY(-2px);
}

/* ---------- Cuerpo de Tarjeta Comercial ---------- */
.portfolio-card-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-commercial-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-factory-direct {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-factory-direct i {
    color: var(--accent-color);
}

.tag-availability {
    color: #16A34A;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-title {
    font-size: 1.45rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Mini fichas de especificaciones técnicas rápidas */
.specs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.chip-item {
    background: var(--bg-muted);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

.chip-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Acordeón de Ficha Técnica Comercial */
.tech-specs-accordion {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    overflow: hidden;
}

.tech-specs-accordion summary {
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    user-select: none;
}

.tech-specs-accordion summary::-webkit-details-marker {
    display: none;
}

.tech-specs-accordion summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.25s ease;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.tech-specs-accordion[open] summary::after {
    transform: rotate(180deg);
}

.tech-specs-accordion summary:hover {
    background: #F3F4F6;
}

.specs-content {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;
}

.spec-row span {
    color: #4B5563;
}

.spec-row strong {
    color: var(--primary-color);
    text-align: right;
}

/* Acciones Comerciales Directas */
.card-actions-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cotizar-wa {
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 18px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    transition: var(--transition);
}

.btn-cotizar-wa:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-action-wholesale {
    background: #F3F4F6;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 16px;
    transition: var(--transition);
}

.btn-action-wholesale:hover {
    background: rgba(11, 59, 36, 0.08);
    border-color: var(--primary-color);
}

/* Tarjeta Simple (Sin carrusel multivariante, ej. Almohada Básica) */
.product-single-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f5;
}

.product-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.product-single-image:hover img {
    transform: scale(1.03);
}

/* ---------- COTIZADOR DIGITAL EXPRESS DE FÁBRICA ---------- */
.calculator-section {
    padding: 85px 0;
    background: linear-gradient(135deg, #072617 0%, var(--primary-color) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(195, 154, 58, 0.15), transparent 45%);
    pointer-events: none;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.calculator-info h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.calculator-info h2 span {
    color: var(--accent-color);
}

.calculator-info p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-bottom: 28px;
}

.calc-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calc-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.calc-perks li i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Caja de Cotizador */
.calculator-card {
    background: #fff;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-card h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.calculator-card .calc-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.calc-form-group {
    margin-bottom: 16px;
}

.calc-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.calc-form-group select,
.calc-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
    transition: var(--transition);
}

.calc-form-group select:focus,
.calc-form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 59, 36, 0.12);
}

.calc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.calc-summary-preview {
    background: var(--bg-canvas);
    border: 1px dashed var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 20px 0;
    font-size: 0.88rem;
    color: var(--primary-dark);
}

.calc-summary-preview strong {
    color: var(--primary-color);
}

.btn-generate-quote {
    background: #25D366;
    color: #fff;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.btn-generate-quote:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* ---------- SHOWROOM & VENTAJAS DE FÁBRICA B2B ---------- */
.factory-advantages {
    padding: 90px 0;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ---------- BANNER DE DESCARGA DE CATÁLOGO COMERCIAL ---------- */
.catalog-cta-banner {
    background: linear-gradient(90deg, var(--primary-color), #0E472C);
    color: #fff;
    padding: 48px 0;
    border-top: 1px solid rgba(195, 154, 58, 0.3);
    border-bottom: 1px solid rgba(195, 154, 58, 0.3);
}

.catalog-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.catalog-banner-text h3 {
    color: var(--accent-color);
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.catalog-banner-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
}

/* ---------- SECCIÓN NOSOTROS / HISTORIA & FUSIÓN ---------- */
.about-section {
    padding: 95px 0;
    background: var(--bg-canvas);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 55px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 32px;
}

.about-highlight-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.about-highlight-box h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-highlight-box h4 i {
    color: var(--accent-color);
}

.about-highlight-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    height: 480px;
    border-radius: var(--radius-lg);
    background-image: url('../assets/Habitacion_FibraCol.jpeg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.about-seal-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--accent-color);
}

.about-seal-badge img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.seal-badge-info h5 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.seal-badge-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- SECCIÓN CONTACTO DIRECTO DE FÁBRICA ---------- */
.contact-section {
    padding: 85px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card-box:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-card-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.contact-card-text p,
.contact-card-text a {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-card-text a:hover {
    color: var(--primary-color);
}

/* Formulario */
.contact-form-wrapper {
    background: var(--bg-canvas);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-form-wrapper p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 59, 36, 0.12);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.5em;
    color: var(--primary-color);
}

.form-status.error {
    color: #DC2626;
}

/* ---------- FOOTER INSTITUCIONAL ---------- */
.site-footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 75px 0 25px;
    border-top: 3px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 65px;
    width: auto;
    margin-bottom: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-seal-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-seal {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.footer-seal-text h5 {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.footer-seal-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-list i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    flex-wrap: wrap;
    gap: 15px;
}

/* ---------- MODAL LIGHTBOX DE IMAGEN HD ---------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrapper {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close-btn:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

/* ---------- BOTÓN FLOTANTE DE WHATSAPP CON PULSO ---------- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2.5s infinite;
}

.floating-wa:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-wa-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: var(--primary-dark);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    border: 2px solid #fff;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ---------- RESPONSIVE DESIGN (Móviles & Tablets) ---------- */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-seal-badge {
        bottom: 15px;
        right: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 80px;
    }

    .top-announcement-bar {
        font-size: 0.78rem;
    }

    .announcement-inner {
        justify-content: center;
        text-align: center;
    }

    .announcement-contact {
        display: none;
    }

    .logo-wrapper img {
        height: 50px;
    }

    .btn-whatsapp-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-wa-mobile {
        display: block;
        margin-top: 12px;
    }

    .nav-wa-mobile a {
        background: #25D366;
        color: #fff !important;
        text-align: center;
        border-radius: var(--radius-sm);
        padding: 10px;
        border-bottom: none;
    }

    .hero {
        min-height: 75vh;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .calc-row-2 {
        grid-template-columns: 1fr;
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
