* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-light: #c4b5fd;
    --purple-bg: #f5f3ff;
    --bg: #faf9ff;
    --bg-alt: #f3f0ff;
    --bg-card: #ffffff;
    --bg-tint: #efe9ff;
    --text: #1e1b2e;
    --text-muted: #5b5478;
    --border: #e5e0f5;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(76, 29, 149, 0.08), 0 1px 2px rgba(76, 29, 149, 0.05);
    --shadow-lg: 0 10px 30px rgba(76, 29, 149, 0.12);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: #e9e6f5;
}

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg);
    box-shadow: 0 0 50px rgba(76, 29, 149, 0.12);
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
}

.content-wrap {
    background: linear-gradient(135deg, var(--purple-bg) 0%, var(--bg-tint) 60%, var(--purple-bg) 100%);
    position: relative;
}

/* Asegurar que el contenido quede encima */
.content-wrap > section,
.content-wrap > footer,
.content-wrap > .band-wrap {
    position: relative;
    z-index: 1;
}

/* ===== Banda diagonal morada (de Beneficios hacia abajo) ===== */
.band-wrap {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.band-wrap::before {
    content: '';
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 50%;
    width: 420px;
    transform: translateX(-50%) rotate(18deg);
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(139, 92, 246, 0.22) 50%,
        rgba(139, 92, 246, 0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

.band-wrap > section,
.band-wrap > footer {
    position: relative;
    z-index: 1;
}

/* Dentro del content-wrap, las secciones claras quedan transparentes para mostrar el degradado morado */
.content-wrap .section,
.content-wrap .section-alt,
.content-wrap .contact-section,
.content-wrap .cta-section {
    background: transparent;
}

/* La sección de productos mantiene su sutil lavanda para diferenciar */
.content-wrap .section-alt {
    background: rgba(255, 255, 255, 0.35);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.2rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }

p { margin-bottom: 1rem; color: var(--text-muted); }

a { color: var(--purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--purple-dark); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    background: rgba(250, 249, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 1px 0 var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav-link { color: var(--purple); }
.navbar .nav-link:hover { color: var(--purple-dark); }
.navbar .mobile-menu-btn span { background: var(--purple); }

/* ===== Iconos en los links del navbar ===== */
.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Logo ===== */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    gap: 0;
}

.logo-digi {
    color: var(--text);
    position: relative;
    z-index: 1;
}

.logo-dynamic {
    color: var(--purple);
    position: relative;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: 0.05em;
}

.logo-cursor {
    color: var(--purple);
    animation: logoCursorBlink 0.8s step-end infinite;
    margin-left: 2px;
}

.logo-arc {
    position: absolute;
    top: -3px;
    left: 28%;
    right: 2%;
    height: 8px;
    color: var(--purple);
    opacity: 0.85;
    pointer-events: none;
}

.logo-arc-narrow {
    display: none;
    right: 8%;
}

.logo-arc path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

@keyframes logoCursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover { color: var(--purple); }

.nav-link.active {
    color: var(--purple-dark);
    font-weight: 600;
}

.nav-link.active::after { width: 100%; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: var(--transition);
}

.nav-link:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.75) 0%, rgba(30, 20, 50, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 span { color: var(--purple-light); }

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel indicators */
.hero-indicators {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-indicator.active {
    background: var(--purple);
    transform: scale(1.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}

/* ===== Sections ===== */
.section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    color: var(--purple);
}

.section::before,
.section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(139, 92, 246, 0.15) 15%,
        rgba(139, 92, 246, 0.55) 50%,
        rgba(139, 92, 246, 0.15) 85%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.section::before { left: 0; }
.section::after { right: 0; }

.section > .container { position: relative; z-index: 1; }

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: #14111f;
    color: #fff;
}

/* En secciones oscuras el membrete se intensifica */
.section-dark::before,
.section-dark::after {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(139, 92, 246, 0.3) 15%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(139, 92, 246, 0.3) 85%,
        transparent 100%);
    width: 8px;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-dark p,
.section-dark .metric-desc {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark .benefit-card,
.section-dark .role-card {
    background: #1f1a2e;
    border-color: rgba(139, 92, 246, 0.2);
}

.section-dark .benefit-card h4,
.section-dark .role-card h4 {
    color: #fff;
}

.section-dark .benefit-card p,
.section-dark .role-card ul li {
    color: rgba(255, 255, 255, 0.7);
}

.section-dark .benefit-icon {
    background: rgba(139, 92, 246, 0.15);
}

.section-dark .metric-number {
    color: var(--purple-light);
}

.section-dark .metric-label {
    color: #fff;
}

.section-purple-tint {
    background: var(--purple-bg);
}

.section-gradient {
    background: linear-gradient(160deg, #1a1025 0%, #14111f 100%);
    color: #fff;
}

.section-gradient h2,
.section-gradient h3,
.section-gradient h4 {
    color: #fff;
}

.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
}

.section-subhead {
    text-align: center;
    color: var(--purple);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2.25rem auto 0.5rem;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===== Product Cards ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Todo lo que representa a un producto pinta su decorado a partir de estos
   tokens. El default ES el violeta de marca -- Digiturno queda igual que
   siempre; .product-digia (mas abajo) solo los redefine. Asi la identidad de
   cada producto vive en un unico lugar y no desparramada por 20 reglas. */
.product-highlight,
.showroom-card,
.galeria-panel {
    --ph-bg: linear-gradient(160deg, #ffffff 0%, var(--purple-bg) 100%);
    --ph-bar: linear-gradient(90deg, var(--purple), var(--purple-light), var(--purple));
    --ph-halo: 139, 92, 246;
    --ph-edge: var(--purple-light);
    --ph-tag-bg: rgba(139, 92, 246, 0.12);
    --ph-tag-border: rgba(139, 92, 246, 0.25);
    --ph-tag-fg: var(--purple-dark);
    --ph-btn: var(--purple-dark);
    --ph-btn-hover: #6d28d9;
}

.product-highlight {
    background: var(--ph-bg);
    border-radius: 18px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-highlight::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--ph-halo), 0.22) 0%, transparent 65%);
    pointer-events: none;
    transition: var(--transition);
}

.product-highlight:hover {
    border-color: var(--ph-edge);
    box-shadow: 0 16px 40px rgba(var(--ph-halo), 0.2);
    transform: translateY(-6px);
}

.product-highlight:hover::after {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(var(--ph-halo), 0.35) 0%, transparent 65%);
}

.product-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ph-bar);
}

/* DigIA: el violeta de marca como ancla, resuelto en cian. No es otra paleta
   -- es la misma familia con un segundo tono, para que los dos productos se
   distingan de un vistazo sin que el sitio deje de leerse como uno solo. */
.product-digia {
    --ph-bg: linear-gradient(160deg, #ffffff 0%, #f6f3ff 42%, #e9f7fc 100%);
    --ph-bar: linear-gradient(90deg, var(--purple) 0%, #6ec6dd 55%, #06b6d4 100%);
    --ph-halo: 6, 182, 212;
    --ph-edge: #7dd3e8;
    --ph-tag-bg: rgba(6, 182, 212, 0.12);
    --ph-tag-border: rgba(6, 182, 212, 0.30);
    --ph-tag-fg: #0e7490;
    --ph-btn: #0e7490;
    --ph-btn-hover: #0b5f77;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    background: var(--ph-tag-bg, rgba(139, 92, 246, 0.12));
    color: var(--ph-tag-fg, var(--purple-dark));
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    border: 1px solid var(--ph-tag-border, rgba(139, 92, 246, 0.25));
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

.product-highlight h3 {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--purple);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.product-highlight .product-slogan {
    color: var(--purple);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.product-highlight > p:not(.product-slogan) {
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.product-highlight > p strong {
    color: var(--purple-dark);
}

.product-bullets {
    list-style: none;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.product-bullets li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.55;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    position: relative;
}

.product-bullets li:last-child { border-bottom: none; }

.product-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.product-highlight .btn {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.product-highlight .btn-outline {
    color: var(--purple-dark);
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.06);
}

.product-highlight .btn-outline:hover {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.8rem;
    color: var(--text);
}

.cta-section h2 span { color: var(--purple); }

/* ===== Contact Form ===== */
.contact-section {
    background: var(--bg-alt);
}

.contact-form {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

/* Marca de campo no obligatorio. Se dice en la etiqueta en vez de dejar que
   el visitante lo descubra al intentar enviar. Empresa es el unico opcional
   de los formularios de contacto. */
.form-opcional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.82em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: var(--white);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.error-message {
    display: none;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text);
}

.success-message h3 {
    font-weight: 800;
}

.success-message p {
    margin: 0;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-tint) 100%);
    color: var(--text-muted);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Metrics / KPIs ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.metric-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--purple));
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--purple-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.metric-label {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.metric-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ===== Benefits ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-light);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.benefit-icon .icon {
    width: 28px;
    height: 28px;
    color: var(--purple-dark);
}

.benefit-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.benefit-card p {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Comparison Table ===== */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 2rem auto 0;
    background: var(--bg-card);
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--purple-bg);
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.compare-table th:nth-child(2) {
    color: var(--purple);
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table .no { color: #ef4444; }
.compare-table .yes { color: var(--purple); font-weight: 600; }

/* ===== Roles / Use Cases ===== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-light);
}

.role-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.role-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.role-card .role-title {
    font-size: 0.82rem;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.role-card ul {
    list-style: none;
}

.role-card ul li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.role-card ul li::before {
    content: '→';
    color: var(--purple);
    margin-right: 0.5rem;
}

/* ===== Timeline ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    z-index: 0;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--purple);
    color: var(--purple);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: var(--shadow);
}

.timeline-step h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.timeline-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Features con iconos (dentro de product-highlight) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--purple-light);
    box-shadow: var(--shadow);
}

.feature-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--purple);
}

.feature-item p {
    font-size: 0.82rem;
    color: var(--text);
    margin: 0;
    line-height: 1.45;
}

/* ===== KPIs por producto ===== */
.kpi-group { margin-top: 3rem; }
.kpi-group + .kpi-group { margin-top: 3.5rem; }

.kpi-group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.6rem;
    text-align: center;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--purple));
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.18);
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

.kpi-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.kpi-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.kpi-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== KPIs en paneles estilo producto (4 izquierda / 4 derecha) ===== */
.kpi-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.kpi-card.kpi-mini {
    padding: 1.2rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
}

.kpi-mini .kpi-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
}

.kpi-mini .kpi-number {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.kpi-mini .kpi-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.kpi-mini .kpi-desc {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ===== KPIs planos integrados en productos (sin contenedor anidado) ===== */
.product-kpis {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.18);
    position: relative;
    z-index: 1;
}

.kpi-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem 1.5rem;
}

.kpi-stat {
    display: flex;
    flex-direction: column;
}

.kpi-stat .kpi-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: 10px;
    margin: 0 0 0.6rem;
}

.kpi-stat .kpi-number {
    font-size: 1.7rem;
    margin-bottom: 0.15rem;
    color: var(--purple-dark);
}

.kpi-stat .kpi-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.kpi-stat .kpi-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
}

/* ===== Mockups de dashboards ===== */
.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.browser-frame {
    --mk-accent: var(--purple);
    --mk-accent-dark: var(--purple-dark);
    --mk-accent-light: var(--purple-light);
    --mk-chrome: var(--purple-bg);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* El maquetado de DigIA lleva el mismo cian que su ficha de producto. */
.browser-frame.frame-digia {
    --mk-accent: #06b6d4;
    --mk-accent-dark: #0e7490;
    --mk-accent-light: #7dd3e8;
    --mk-chrome: #e9f7fc;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--mk-chrome);
    border-bottom: 1px solid var(--border);
}

.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.r { background: #f87171; }
.browser-dot.y { background: #facc15; }
.browser-dot.g { background: #4ade80; }

.browser-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-body {
    display: flex;
    min-height: 250px;
}

.mockup-sidebar {
    width: 110px;
    flex-shrink: 0;
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-nav-item {
    font-size: 0.68rem;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    background: transparent;
}

.mockup-nav-item.active {
    background: var(--mk-chrome);
    color: var(--mk-accent-dark);
    font-weight: 600;
}

.mockup-main {
    flex: 1;
    padding: 14px;
    background: var(--bg);
    min-width: 0;
}

.mockup-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mockup-chip {
    flex: 1;
    min-width: 72px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.mockup-chip .n {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mk-accent);
}

.mockup-chip .l {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.mockup-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--mk-accent-light), var(--mk-accent));
    border-radius: 4px 4px 0 0;
    min-height: 8px;
}

.mockup-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-bubble {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    line-height: 1.4;
}

.mockup-bubble.you {
    background: var(--mk-accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.mockup-bubble.ai {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.mockup-docs {
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-doc {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.mockup-doc .ok { color: var(--mk-accent-dark); font-weight: 700; }

.mockup-caption {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Tech badges (stack) ===== */
.tech-strip {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
}

.tech-strip-title {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
}

.tech-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
}

/* ===== Seguridad Zero-Trust ===== */
.security-section { position: relative; }

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.security-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.security-feature:hover {
    border-color: var(--purple-light);
    box-shadow: var(--shadow-lg);
}

.security-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-icon .icon {
    width: 22px;
    height: 22px;
    color: var(--purple-dark);
}

.security-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.security-feature p {
    font-size: 0.88rem;
    margin: 0;
}

.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-seal {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 320px;
}

.security-seal .seal-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: var(--purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-seal .seal-icon .icon {
    width: 40px;
    height: 40px;
    color: var(--purple-dark);
}

.security-seal h4 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text);
}

.security-seal p {
    font-size: 0.85rem;
}

.security-seal .seal-badge {
    display: inline-block;
    margin-top: 0.8rem;
    background: var(--purple-bg);
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
}

/* ===== Page Hero (páginas secundarias) ===== */
.page-hero {
    position: relative;
    padding: 9rem 0 5rem;
    text-align: center;
    background: linear-gradient(160deg, var(--purple-bg) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.6rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-hero h1 span { color: var(--purple); }

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* ===== Cards genéricas (info / FAQ) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }

    .hero h1 { font-size: 2.3rem; }

    .navbar {
        left: 0;
        transform: none;
        max-width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active { transform: translateY(0); }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 7rem 0 3rem; }
    .product-detail { grid-template-columns: 1fr; }
    .hero-images { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 1.8rem; }
    .contact-form { padding: 1.8rem; }

    .metrics-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .roles-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .timeline::before { display: none; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .mockup-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .container { padding: 0 1rem; }
    .hero { padding: 6rem 0 2rem; }
    .btn { padding: 0.8rem 1.4rem; }
    .product-highlight { padding: 1.5rem; }
    .timeline { grid-template-columns: 1fr; }
    .metric-number { font-size: 2.5rem; }
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi-number { font-size: 1.8rem; }
    .mockup-sidebar { width: 84px; }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ===== Botón flotante "Hablemos" ===== */
.cta-float {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-float.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cta-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.55);
    color: #fff;
}

@media (max-width: 480px) {
    .cta-float {
        right: 16px;
        bottom: 96px;
        padding: 0.75rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* =========================================================================
   SISTEMA DE ICONOS
   Un solo trazo para todo el sitio. Las propiedades se heredan hacia dentro
   del <use>, así que basta declararlas en el <svg> que lo invoca.
   ========================================================================= */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon,
.nav-icon,
.mv-icon,
.valor-icon,
.kpi-hero-icon,
.cta-float-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-float-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =========================================================================
   ENTRADA AL SCROLL
   Reemplaza AOS: una sola dirección, una sola vez, sin librería.
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================================
   KPIs CON JERARQUÍA
   Un número héroe por producto; los demás acompañan.
   ========================================================================= */
.kpi-kind {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--purple-dark);
    background: var(--bg-tint);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    margin-bottom: 1rem;
}

.kpi-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.kpi-hero-icon {
    width: 32px;
    height: 32px;
    color: var(--purple-dark);
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.kpi-hero-number {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--purple-dark);
    font-variant-numeric: tabular-nums;
}

.kpi-hero-label {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 34ch;
}

.kpi-support {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.kpi-support-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.kpi-support-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.kpi-support-label {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-muted);
    font-weight: 500;
}

/* La sección de la home remite a la página, en vez de competirle */
.section-remite {
    text-align: center;
    margin-top: 3rem;
}

/* =========================================================================
   NOSOTROS
   ========================================================================= */
.prose-block {
    max-width: 64ch;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.prose-block p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.prose-block strong {
    color: var(--text);
    font-weight: 700;
}

.prose-highlight {
    border-left: 3px solid var(--purple);
    padding-left: 1.5rem;
    margin-top: 0.4rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.mv-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mv-icon {
    width: 30px;
    height: 30px;
    color: var(--purple-dark);
}

.mv-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.valores-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.valor-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid var(--border);
}

.valor-item:last-child { border-bottom: none; }

.valor-icon {
    width: 24px;
    height: 24px;
    color: var(--purple-dark);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.valor-item h4 {
    font-size: 1.02rem;
    margin: 0 0 0.3rem;
    color: var(--text);
}

.valor-item p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .kpi-support { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .kpi-hero-number { font-size: 2.6rem; }
    .kpi-support-number { font-size: 1.05rem; }
    .kpi-support-label { font-size: 0.7rem; }
    .mv-grid { grid-template-columns: 1fr; }
    .prose-block p { font-size: 1rem; }
    .prose-highlight { padding-left: 1.1rem; }
    .valor-item { padding: 1.25rem 1.3rem; gap: 0.9rem; }
}

/* Nota al pie de los mockups: aclara que son ilustraciones e invita a la demo */
.mockup-nota {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.mockup-nota a {
    color: var(--purple-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Las tarjetas de contacto sin configurar no se muestran.
   Va al final para ganarle a cualquier display: de .benefit-card. */
[hidden] { display: none !important; }

/* ═══ Vitrina de producto ══════════════════════════════════════════════════
   La prueba de lo que afirman los KPIs de arriba. Las capturas vienen a
   1568×686; se muestran a ancho completo de la columna para que se lean, no
   miniaturizadas dentro de una tarjeta.
   ────────────────────────────────────────────────────────────────────────── */
.vitrina-lista {
    display: flex;
    flex-direction: column;
    gap: 72px;
    margin-top: 56px;
}

.vitrina-item {
    margin: 0;
}

.vitrina-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.vitrina-item figcaption {
    margin: 22px auto 0;
    max-width: 68ch;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.vitrina-item figcaption strong {
    display: block;
    color: var(--text);
    font-weight: 700;
    font-size: 1.18rem;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .vitrina-lista { gap: 48px; margin-top: 36px; }
    .vitrina-item img { border-radius: 10px; }
    .vitrina-item figcaption { font-size: .95rem; margin-top: 16px; }
    .vitrina-item figcaption strong { font-size: 1.06rem; }
}

/* ═══ Compensación del encabezado fijo al saltar por ancla ═════════════════
   La barra mide 73px y está en position:fixed, así que al llegar a #productos
   o #contacto desde el menú, el título de la sección quedaba escondido detrás
   de ella. scroll-padding-top le dice al navegador dónde termina realmente el
   área visible. Se pone en :root para que valga en cualquier salto, incluido
   el que trae el usuario pegado en la URL.
   ────────────────────────────────────────────────────────────────────────── */
:root {
    scroll-padding-top: 96px;
}

/* Respaldo por si algún navegador viejo ignora scroll-padding. */
section[id] {
    scroll-margin-top: 96px;
}

/* ===== Sala de exhibición: elegir producto y abrir su galería ==============
   Reemplaza las dos vitrinas apiladas de productos.html. Cada tarjeta usa los
   tokens --ph-* de arriba, así que Digiturno sale violeta y DigIA cian sin una
   sola regla duplicada. Modo claro fijo: el sitio no tiene tema oscuro. */

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.showroom-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.showroom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ph-bar);
    z-index: 2;
}

.showroom-card:hover {
    border-color: var(--ph-edge);
    box-shadow: 0 16px 40px rgba(var(--ph-halo), 0.2);
    transform: translateY(-6px);
}

.showroom-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}

.showroom-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.showroom-card:hover .showroom-shot img { transform: scale(1.04); }

/* Difumina el borde inferior de la captura para que no corte en seco. */
.showroom-shot::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg-card) 100%);
    pointer-events: none;
}

.showroom-count {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(30, 27, 46, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.showroom-count:empty { display: none; }

.showroom-body {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showroom-body h3 {
    font-size: 1.7rem;
    color: var(--purple);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.showroom-body > p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.showroom-specs {
    list-style: none;
    margin: 0 0 1.8rem;
}

.showroom-specs li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.showroom-specs li:last-child { border-bottom: none; }

.showroom-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--ph-halo));
    box-shadow: 0 0 0 4px rgba(var(--ph-halo), 0.15);
}

.showroom-abrir {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    /* El boton lleva el acento de su producto, no el violeta global: es la
       parte de la tarjeta que mas se mira antes de hacer clic. Va el tono
       oscuro y no el del halo: blanco sobre el halo no llega a 4,5:1. */
    background: var(--ph-btn);
    color: var(--white);
}

.showroom-abrir:hover {
    background: var(--ph-btn-hover);
    box-shadow: 0 8px 25px rgba(var(--ph-halo), 0.35);
    color: var(--white);
}

/* Lo mismo en el pie de la galeria, que hereda los tokens del panel. */
.galeria-pie .btn-primary {
    background: var(--ph-btn);
    color: var(--white);
}

.galeria-pie .btn-primary:hover {
    background: var(--ph-btn-hover);
    box-shadow: 0 8px 25px rgba(var(--ph-halo), 0.35);
    color: var(--white);
}

/* La fuente de la galería: sigue en el documento (la ve un buscador), pero no
   se dibuja. */
.showroom-fuente { display: none; }

/* ===== Galería a pantalla completa ======================================= */

.galeria[hidden] { display: none; }

.galeria {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.galeria-scrim {
    position: absolute;
    inset: 0;
    background: rgba(30, 27, 46, 0.62);
    backdrop-filter: blur(3px);
}

.galeria-panel {
    position: relative;
    background: var(--bg-card);
    border-radius: 18px;
    width: min(1100px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(30, 27, 46, 0.4);
}

.galeria-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ph-bar);
}

.galeria-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 1.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.galeria-top .product-tag { margin-bottom: 0.6rem; }

.galeria-top h3 {
    font-size: 1.6rem;
    color: var(--purple);
    letter-spacing: -0.02em;
}

.galeria-cerrar {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.galeria-cerrar:hover {
    background: var(--bg-alt);
    color: var(--text);
    border-color: var(--ph-edge);
}

.galeria-cuerpo {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.6rem;
    padding: 1.4rem 1.8rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.galeria-visor {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    min-height: 0;
}

.galeria-visor img {
    max-width: 100%;
    max-height: 54vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    color: var(--purple-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.galeria-nav:hover {
    background: var(--ph-btn);
    border-color: var(--ph-btn);
    color: #fff;
}

.galeria-prev { left: 10px; }
.galeria-next { right: 10px; }

.galeria-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.galeria-paso {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ph-tag-fg);
}

.galeria-info strong {
    font-size: 1.12rem;
    line-height: 1.35;
    color: var(--text);
}

.galeria-info p:not(.galeria-paso) {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.galeria-miniaturas {
    display: flex;
    gap: 0.6rem;
    padding: 0 1.8rem 1.2rem;
    overflow-x: auto;
}

.galeria-miniaturas button {
    flex: 0 0 auto;
    width: 92px;
    height: 58px;
    padding: 0;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.galeria-miniaturas button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.galeria-miniaturas button:hover { opacity: 1; }

.galeria-miniaturas button[aria-current="true"] {
    opacity: 1;
    border-color: rgb(var(--ph-halo));
    box-shadow: 0 0 0 3px rgba(var(--ph-halo), 0.2);
}

.galeria-pie {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.8rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Con la galería abierta el fondo no se mueve. */
body.galeria-abierta { overflow: hidden; }

@media (max-width: 900px) {
    .showroom-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .galeria { padding: 1rem 0.8rem; }
    .galeria-cuerpo { grid-template-columns: 1fr; padding: 1rem 1.1rem; }
    .galeria-visor img { max-height: 38vh; }
    .galeria-top, .galeria-pie, .galeria-miniaturas { padding-left: 1.1rem; padding-right: 1.1rem; }
    .galeria-pie { flex-direction: column; align-items: stretch; text-align: center; }
    .showroom-body { padding: 0 1.4rem 1.4rem; }
}
