/* ==========================================================================
HandwareMarket - Película Termoencogible (Visual Contract inherited from Playo)
========================================================================== */
:root {
--hw-cyan: #00aae4;
--hw-cyan-hover: #0088b6;
--hw-yellow: #fcd02c;
--hw-dark: #1a1a1a;
--hw-gray-text: #5e5e5e;
--hw-bg-light: #f8f9fa;
--hw-border: #e0e0e0;
--hw-white: #ffffff;
--wa-green: #25D366;
--wa-green-hover: #1EBE5D;
--font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
--shadow-md: 0 8px 24px rgba(0,0,0,0.08);
--shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

* { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; font-size: 16px; }
  body { font-family: var(--font-main); color: var(--hw-dark); line-height: 1.6; background-color: var(--hw-white); overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; font-style: italic; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--hw-dark); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.subheadline { font-size: clamp(1.125rem, 2vw, 1.25rem); color: var(--hw-gray-text); margin-bottom: 2rem; font-weight: 400; }
.eyebrow { text-transform: uppercase; font-size: 0.875rem; font-weight: 600; color: var(--hw-cyan); letter-spacing: 0.05em; margin-bottom: 0.5rem; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-bg { background-color: var(--hw-bg-light); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1.125rem; transition: var(--transition); text-align: center; }
.btn-wa { background-color: var(--wa-green); color: white; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background-color: var(--wa-green-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4); }
.btn-primary { background-color: var(--hw-cyan); color: white; }
.btn-primary:hover { background-color: var(--hw-cyan-hover); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border: 2px solid var(--hw-border); color: var(--hw-dark); }
.btn-secondary:hover { border-color: var(--hw-cyan); color: var(--hw-cyan); }
.icon-wa { width: 24px; height: 24px; margin-right: 8px; fill: currentColor; }

.header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); z-index: 100; border-bottom: 1px solid var(--hw-border); padding: 1rem 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 12px; }
.logo { height: 48px; width: auto; }
.ecosystem-tag { font-size: 0.75rem; font-weight: 600; color: var(--hw-gray-text); background: var(--hw-bg-light); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--hw-border); }

.header-nav { display: none; gap: 2rem; align-items: center; }
.header-link { font-size: 0.9375rem; font-weight: 500; color: var(--hw-gray-text); transition: var(--transition); }
.header-link:hover { color: var(--hw-cyan); }
@media (min-width: 1024px) { .header-nav { display: flex; } }

.hero { min-height: 85vh; display: flex; align-items: center; padding: 3rem 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-content { max-width: 600px; z-index: 2; }
.micro-link { display: inline-flex; align-items: center; font-size: 0.875rem; color: var(--hw-gray-text); margin-bottom: 1.5rem; }
.micro-link::before { content: "←"; margin-right: 0.5rem; }
.micro-link:hover { color: var(--hw-cyan); }
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .hero-ctas { flex-direction: row; } }
.microcopy { font-size: 0.875rem; color: var(--hw-gray-text); margin-top: 0.5rem; }

.trust-signals { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; border-top: 1px solid var(--hw-border); padding-top: 1.5rem; }
.trust-signal { display: flex; align-items: center; font-size: 0.9375rem; font-weight: 500; }
.trust-icon { width: 20px; height: 20px; margin-right: 12px; color: var(--hw-cyan); flex-shrink: 0; }

.hero-visual { position: relative; height: 400px; width: 100%; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .hero-visual { height: 600px; } }
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); background-color: var(--hw-bg-light); }
.floating-badge { position: absolute; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.875rem; box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite; color: var(--hw-dark); pointer-events: none; z-index: 5; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.selector-section { text-align: center; }
.selector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
@media (min-width: 768px) { .selector-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.selector-card { background: var(--hw-white); border: 2px solid var(--hw-border); border-radius: 12px; padding: 1.5rem 1rem; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; width: 100%; }
.selector-card:hover, .selector-card:focus { border-color: var(--hw-cyan); transform: translateY(-4px); box-shadow: var(--shadow-md); outline: none; }
.selector-card.active { border-color: var(--hw-cyan); background-color: rgba(0, 170, 228, 0.05); }
.selector-card span { font-weight: 600; font-size: 0.95rem; }
.dynamic-response { margin-top: 2rem; padding: 1.5rem; background: var(--hw-white); border-radius: 8px; border-left: 4px solid var(--hw-cyan); box-shadow: var(--shadow-sm); text-align: left; }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { background: var(--hw-white); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--hw-border); display: flex; flex-direction: column; height: 100%; text-align: left; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--hw-cyan); }

.product-img-wrapper { min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: visible; margin-bottom: 1.5rem; position: relative; }
.product-photo { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 14px 20px rgba(0,0,0,0.08)); transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.product-card:hover .product-photo { transform: scale(1.06) translateY(-6px); }
.product-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.product-card p { color: var(--hw-gray-text); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }

.gallery-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--hw-cyan) var(--hw-border); }
.gallery-wrapper::-webkit-scrollbar { height: 8px; }
.gallery-wrapper::-webkit-scrollbar-track { background: var(--hw-border); border-radius: 4px; }
.gallery-wrapper::-webkit-scrollbar-thumb { background-color: var(--hw-cyan); border-radius: 4px; }
.gallery-item { flex: 0 0 85%; scroll-snap-align: center; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; position: relative; background: #eee; }
@media (min-width: 768px) { .gallery-item { flex: 0 0 40%; } }
@media (min-width: 1024px) { .gallery-item { flex: 0 0 30%; aspect-ratio: 1/1; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }

.promo-module { display: none; background: linear-gradient(135deg, var(--hw-dark) 0%, #2a2a2a 100%); color: var(--hw-white); border-radius: 16px; padding: 3rem; margin: 4rem 0; position: relative; overflow: hidden; }
.promo-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 768px) { .promo-content { flex-direction: row; justify-content: space-between; align-items: center; } }
.promo-tag { background: var(--hw-yellow); color: var(--hw-dark); padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; display: inline-block; margin-bottom: 0.5rem; }
.promo-details p { font-size: 0.875rem; opacity: 0.8; margin-top: 0.5rem; }

.faq-item { border-bottom: 1px solid var(--hw-border); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; background: transparent; font-size: 1.125rem; font-weight: 600; color: var(--hw-dark); text-align: left; cursor: pointer; }
.faq-icon { width: 20px; height: 20px; transition: var(--transition); flex-shrink: 0; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--hw-gray-text); }
.faq-content p { padding-bottom: 1.5rem; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--hw-white); padding: 1rem; box-shadow: 0 -4px 12px rgba(0,0,0,0.1); z-index: 99; display: flex; justify-content: center; transform: translateY(100%); transition: transform 0.3s ease; }
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; max-width: 400px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

.footer { background: var(--hw-dark); color: var(--hw-white); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { height: 40px; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-text { color: #aaa; font-size: 0.9375rem; max-width: 300px; }
.footer h4 { color: var(--hw-white); margin-bottom: 1.5rem; font-size: 1rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #aaa; transition: var(--transition); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--hw-cyan); }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; font-size: 0.875rem; color: #777; text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.explorer-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; margin-top: 3rem; text-align: left; }
@media (min-width: 1024px) { .explorer-layout { grid-template-columns: 1.2fr 1fr; } }
.explorer-visual-container { position: relative; max-width: 550px; margin: 0 auto; width: 100%; perspective: 1000px; }
.explorer-visual { width: 100%; transition: transform 0.1s ease-out; transform-style: preserve-3d; }

.hotspot { position: absolute; width: 36px; height: 36px; background: var(--hw-cyan); border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; box-shadow: 0 0 0 rgba(0, 170, 228, 0.4); animation: pulse 2s infinite; z-index: 10; border: 3px solid white; transition: var(--transition); }
.hotspot:hover, .hotspot.active { transform: scale(1.15); background: var(--hw-cyan-hover); box-shadow: 0 4px 12px rgba(0,0,0,0.2); animation: none; }

.explorer-panel { background: var(--hw-white); padding: 2.5rem; border-radius: 12px; border-left: 4px solid var(--hw-cyan); box-shadow: var(--shadow-sm); min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.explorer-panel h3 { color: var(--hw-cyan); font-size: 1.75rem; margin-bottom: 1rem; transition: opacity 0.2s ease-in-out; }
.explorer-panel p { color: var(--hw-gray-text); font-size: 1.125rem; line-height: 1.6; transition: opacity 0.2s ease-in-out; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 170, 228, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(0, 170, 228, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 170, 228, 0); } }

.mobile-features-accordion { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.product-feature-card { background: var(--hw-white); padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--hw-cyan); box-shadow: var(--shadow-sm); text-align: left; }
.product-feature-card h4 { color: var(--hw-cyan); margin-bottom: 0.5rem; font-size: 1.25rem; }
.product-feature-card p { color: var(--hw-gray-text); font-size: 0.9375rem; line-height: 1.5; }

@media (max-width: 1023px) {
.hotspot { display: none; }
.explorer-panel { display: none; }
}
@media (min-width: 1024px) {
.mobile-features-accordion { display: none; }
}
        /* Boton flotante dinamico de WhatsApp */
        .wa-floating {
            position: fixed;
            right: 24px;
            bottom: 24px;
            width: 60px;
            height: 60px;
            padding: 0 14px;
            border-radius: 999px;
            background: var(--wa-green);
            color: var(--hw-white);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0;
            overflow: hidden;
            white-space: nowrap;
            box-shadow: 0 8px 24px rgba(0,0,0,0.22);
            z-index: 110;
            transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                        background-color 0.3s ease,
                        transform 0.3s ease,
                        box-shadow 0.3s ease,
                        gap 0.3s ease;
        }
        .wa-floating svg {
            width: 32px;
            height: 32px;
            min-width: 32px;
            flex: 0 0 32px;
            fill: currentColor;
        }
        .wa-floating-label {
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            font-size: 0.95rem;
            font-weight: 700;
            line-height: 1;
            transition: max-width 0.3s ease, opacity 0.2s ease;
        }
        @media (hover: hover) and (pointer: fine) {
            .wa-floating:hover,
            .wa-floating:focus-visible {
                width: 226px;
                gap: 10px;
                background: var(--wa-green-hover);
                transform: translateY(-3px);
                box-shadow: 0 12px 28px rgba(0,0,0,0.28);
                outline: none;
            }
            .wa-floating:hover .wa-floating-label,
            .wa-floating:focus-visible .wa-floating-label {
                max-width: 160px;
                opacity: 1;
            }
        }
        @media (max-width: 767px) {
            .wa-floating {
                right: 16px;
                bottom: 88px;
                width: 56px;
                height: 56px;
                padding: 0 12px;
            }
            .wa-floating svg {
                width: 32px;
                height: 32px;
                min-width: 32px;
                flex-basis: 32px;
            }
        }



/* Correcciones de accesibilidad y dimensiones, conservando el diseño. */
:where(a, button):focus-visible { outline: 3px solid #007da8; outline-offset: 4px; }
.selector-card:focus-visible, .wa-floating:focus-visible { outline: 3px solid #007da8; outline-offset: 4px; }
.hero-visual > picture { width: 100%; height: 100%; display: block; }
section[id] { scroll-margin-top: 100px; }
@media (max-width: 767px) {
  .wa-floating { bottom: calc(24px + env(safe-area-inset-bottom)); }
  body.has-sticky-cta .wa-floating { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .sticky-cta { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  body { padding-bottom: 110px; }
}
@media (max-width: 1199px) and (min-width: 1024px) { .header-nav { gap: 0.75rem; } .ecosystem-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; } }

.footer-logo img { width: 140px; height: auto; }
