/* ═══════════════════════════════════════════════════════════════════════════
   MAXICAL C.A. — INICIO PREMIUM CSS
   Diseño profesional para la página principal
   Bootstrap 5 + CSS Custom
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════════
   TOKENS DE DISEÑO
   ══════════════════════════════════════════════════════════════ */
:root {
    --pri:       #37c0fb;
    --pri-dark:  #1aa8e8;
    --pri-glow:  rgba(55, 192, 251, 0.25);
    --pri-glass: rgba(55, 192, 251, 0.12);

    --green:      #25d366;
    --green-dark: #1da851;
    --amber:      #b07d3a;
    --amber-dark: #8a5f2a;

    --dark-900: #050a14;
    --dark-800: #0c1525;
    --dark-700: #111c30;
    --dark-600: #172038;

    --surface:  #ffffff;
    --bg:       #f4f6fa;
    --border:   #e5e9f0;
    --muted:    #6b7280;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-xs:  0 1px 4px rgba(0,0,0,.06);
    --shadow-sm:  0 2px 12px rgba(0,0,0,.08);
    --shadow-md:  0 6px 24px rgba(0,0,0,.11);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.18);
    --shadow-glow: 0 8px 32px var(--pri-glow);

    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --surface:  #161b2a;
    --bg:       #0d1117;
    --border:   rgba(255,255,255,.08);
    --muted:    #8b95a8;
}

/* ══════════════════════════════════════════════════════════════
   TIPOGRAFÍA GLOBAL
   ══════════════════════════════════════════════════════════════ */
body {
    font-family: var(--font-body) !important;
}

/* ══════════════════════════════════════════════════════════════
   ① HERO — VIDEO BANNER REDISEÑADO
   ══════════════════════════════════════════════════════════════ */
#banner {
    position: relative;
    height: 100vh;
    min-height: 640px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay adaptado a imagen clara de planta industrial */
#banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* Oscurecimiento central radial donde va el texto */
        radial-gradient(ellipse 80% 70% at 50% 50%,
            rgba(5, 10, 30, 0.55) 0%,
            rgba(5, 10, 30, 0.30) 50%,
            rgba(5, 10, 30, 0.10) 100%
        ),
        /* Gradiente inferior para separar del contenido de abajo */
        linear-gradient(180deg,
            rgba(5, 10, 20, 0.20) 0%,
            rgba(5, 10, 20, 0.10) 40%,
            rgba(5, 10, 20, 0.15) 70%,
            rgba(5, 10, 20, 0.60) 100%
        );
}

/* Línea decorativa inferior */
#banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pri), transparent);
    z-index: 3;
}

#banner header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 820px;
    margin: 0 auto;
    animation: heroFadeIn .9s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(55,192,251,.15);
    border: 1px solid rgba(55,192,251,.35);
    backdrop-filter: blur(8px);
    color: var(--pri);
    font-family: var(--font-display) !important;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .45em 1.2em;
    border-radius: var(--radius-pill);
    margin-bottom: 1.6rem;
}

.hero-eyebrow span.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pri);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}

#banner header h1,
#banner header h2 {
    font-family: var(--font-display) !important;
    font-size: clamp(2.8rem, 6vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.25rem !important;
    text-shadow:
        0 2px 8px rgba(0,0,0,.7),
        0 4px 30px rgba(0,0,0,.5),
        0 0 60px rgba(0,0,0,.3) !important;
}

.hero-title-accent {
    color: #5ed4ff !important;
    -webkit-text-fill-color: #5ed4ff !important;
    text-shadow:
        0 0 20px rgba(55,192,251,.6),
        0 2px 10px rgba(0,0,0,.7) !important;
}

.hero-subtitle {
    font-family: var(--font-body) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.92) !important;
    line-height: 1.7 !important;
    max-width: 560px;
    margin: 0 auto 2.5rem !important;
    letter-spacing: .01em !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.6), 0 2px 20px rgba(0,0,0,.3) !important;
}

.hero-since {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    display: block;
    margin-bottom: .5rem;
}

/* Botones hero */
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--pri);
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: .85em 2em !important;
    border-radius: var(--radius-pill) !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: var(--shadow-glow) !important;
    transition: all .25s var(--ease-out) !important;
    letter-spacing: .01em;
}

.btn-hero-primary:hover {
    background: var(--pri-dark) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 36px var(--pri-glow) !important;
    color: #fff !important;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: .85em 2em !important;
    border-radius: var(--radius-pill) !important;
    border: 1.5px solid rgba(255,255,255,.35) !important;
    text-decoration: none !important;
    backdrop-filter: blur(12px) !important;
    transition: all .25s var(--ease-out) !important;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,.2) !important;
    border-color: rgba(255,255,255,.6) !important;
    transform: translateY(-3px) !important;
    color: #fff !important;
}

/* Stats hero */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.12);
    animation: heroFadeIn 1.1s var(--ease-out) .2s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display) !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    letter-spacing: -.02em;
}

.hero-stat-number span {
    color: var(--pri);
}

.hero-stat-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-top: .25rem;
    display: block;
}

/* Scroll indicator — eliminado, se solapaba con las stats */

@media (max-width: 768px) {
    #banner { height: 100svh; min-height: 580px; }
    .hero-stats-row { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.7rem !important; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 280px; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   ② TRUST BAR — FRANJA DE CONFIANZA
   ══════════════════════════════════════════════════════════════ */
.trust-bar {
    background: linear-gradient(135deg, var(--dark-800), var(--dark-700));
    padding: 1rem 0;
    overflow: hidden;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.8rem;
    position: relative;
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: color .2s;
}

.trust-item:hover { color: rgba(255,255,255,1); }

.trust-item + .trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,.15);
}

.trust-item i {
    color: var(--pri);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .trust-item { padding: .5rem 1rem; font-size: .78rem; }
    .trust-item + .trust-item::before { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ③ SECCIÓN CATÁLOGO HERO — ENCABEZADO
   ══════════════════════════════════════════════════════════════ */
.catalogo-intro {
    background: var(--bg);
    padding: 5rem 0 2rem;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .catalogo-intro { background: var(--bg); }

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--pri-glass);
    border: 1px solid rgba(55,192,251,.3);
    color: var(--pri);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .4em 1.1em;
    border-radius: var(--radius-pill);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    line-height: 1.15 !important;
    color: #111827 !important;
    margin-bottom: 1rem !important;
}

[data-theme="dark"] .section-title { color: #f0f2f8 !important; }

.section-lead {
    font-size: 1.05rem !important;
    color: var(--muted) !important;
    max-width: 580px;
    margin: 0 auto !important;
    line-height: 1.75 !important;
}

/* ══════════════════════════════════════════════════════════════
   ④ GRID PRODUCTOS INDEX — CARDS PREMIUM
   ══════════════════════════════════════════════════════════════ */
.productos-section {
    background: var(--bg);
    padding: 1rem 0 5rem;
}

[data-theme="dark"] .productos-section { background: var(--bg); }

.productos-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 991px) {
    .productos-grid-premium { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .productos-grid-premium { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Card premium */
.prod-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.prod-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Imagen */
.prod-card-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.prod-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out);
    display: block;
}

.prod-card:hover .prod-card-img-wrap img {
    transform: scale(1.08);
}

/* Overlay gradiente sobre imagen */
.prod-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
}

/* Badge marca */
.prod-brand-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    color: #111;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35em .85em;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.prod-brand-badge.maxical  { color: var(--pri);   border-left: 3px solid var(--pri); }
.prod-brand-badge.produmil { color: #e74c3c;      border-left: 3px solid #e74c3c; }
.prod-brand-badge.cantera  { color: var(--amber);  border-left: 3px solid var(--amber); }

/* Body card */
.prod-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.prod-category {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pri);
}

.prod-category.green  { color: #e74c3c; }
.prod-category.amber  { color: var(--amber); }

.prod-card-title {
    font-family: var(--font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

[data-theme="dark"] .prod-card-title { color: #f0f2f8 !important; }

.prod-card-text {
    font-size: .9rem !important;
    color: var(--muted) !important;
    line-height: 1.75 !important;
    flex: 1;
    margin: 0 !important;
}

/* Tags aplicaciones */
.prod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .25rem;
}

.prod-tag {
    font-size: .68rem;
    font-weight: 600;
    padding: .3em .75em;
    border-radius: var(--radius-pill);
    background: rgba(55,192,251,.1);
    color: var(--pri);
    border: 1px solid rgba(55,192,251,.25);
}

.prod-tag.green  { background: rgba(231,76,60,.1);  color: #e74c3c; border-color: rgba(231,76,60,.25); }
.prod-tag.amber  { background: rgba(230,126,34,.1); color: var(--amber); border-color: rgba(230,126,34,.25); }

/* Footer card */
.prod-card-footer {
    padding: 0 1.75rem 1.75rem;
    margin-top: auto;
}

.btn-prod {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    justify-content: center;
    padding: .75em 1.5em;
    border-radius: var(--radius-md);
    font-family: var(--font-display) !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 2px solid currentColor;
    transition: all .25s var(--ease-out);
}

.btn-prod.blue {
    color: var(--pri) !important;
    border-color: var(--pri) !important;
    background: transparent !important;
}
.btn-prod.blue:hover {
    background: var(--pri) !important;
    color: #fff !important;
    box-shadow: var(--shadow-glow);
}

.btn-prod.green-btn {
    color: #e74c3c !important;
    border-color: #e74c3c !important;
    background: transparent !important;
}
.btn-prod.green-btn:hover {
    background: #e74c3c !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(231,76,60,.3);
}

.btn-prod.amber-btn {
    color: var(--amber) !important;
    border-color: var(--amber) !important;
    background: transparent !important;
}
.btn-prod.amber-btn:hover {
    background: var(--amber) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(176,125,58,.3);
}

/* ══════════════════════════════════════════════════════════════
   ⑤ CTA CENTRAL — INFORMACIÓN
   ══════════════════════════════════════════════════════════════ */
.cta-central {
    background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 40%, #0d2445 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Glow orbs decorativos */
.cta-central::before,
.cta-central::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-central::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(55,192,251,.12) 0%, transparent 70%);
    top: -150px; right: -100px;
}

.cta-central::after {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(37,211,102,.08) 0%, transparent 70%);
    bottom: -100px; left: -80px;
}

.cta-central .container { position: relative; z-index: 1; }

.cta-central-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -.02em !important;
    margin-bottom: .75rem !important;
}

.cta-central-text {
    font-size: 1.05rem !important;
    color: rgba(255,255,255,.72) !important;
    max-width: 520px;
    margin: 0 auto 2.5rem !important;
    line-height: 1.75 !important;
}

.cta-central-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--green) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    padding: .85em 2em !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    border: none !important;
    transition: all .25s var(--ease-out) !important;
    box-shadow: 0 6px 24px rgba(37,211,102,.3) !important;
}

.btn-cta-wa:hover {
    background: var(--green-dark) !important;
    transform: translateY(-3px) !important;
    color: #fff !important;
}

.btn-cta-outline-white {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    padding: .85em 2em !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    border: 1.5px solid rgba(255,255,255,.3) !important;
    transition: all .25s var(--ease-out) !important;
    backdrop-filter: blur(10px) !important;
}

.btn-cta-outline-white:hover {
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.6) !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
}

/* ══════════════════════════════════════════════════════════════
   ⑥ VALORES — SECCIÓN CON DISEÑO MODERNO
   ══════════════════════════════════════════════════════════════ */
.valores-premium {
    background: #ffffff;
    padding: 5rem 0;
}

[data-theme="dark"] .valores-premium { background: var(--dark-700); }

.valores-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 991px) {
    .valores-grid-premium { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .valores-grid-premium { grid-template-columns: 1fr; }
}

.valor-card-premium {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all .3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .valor-card-premium {
    background: var(--dark-600);
    border-color: rgba(255,255,255,.07);
}

.valor-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pri-glass), transparent);
    opacity: 0;
    transition: opacity .3s;
    border-radius: inherit;
}

.valor-card-premium:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.valor-card-premium:hover::before { opacity: 1; }

.valor-icon-premium {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--pri), var(--pri-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.valor-icon-premium img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.valor-card-title {
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: .6rem !important;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .valor-card-title { color: #f0f2f8 !important; }

.valor-card-text {
    font-size: .88rem !important;
    color: var(--muted) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   ⑦ CLIENTES — DISEÑO MODERNO CON SCROLL
   ══════════════════════════════════════════════════════════════ */
.clientes-premium {
    background: var(--bg);
    padding: 5rem 0;
}

[data-theme="dark"] .clientes-premium { background: var(--bg); }

.clientes-grid-premium {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 1199px) {
    .clientes-grid-premium { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .clientes-grid-premium { grid-template-columns: repeat(2, 1fr); }
}

.cliente-card-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    text-decoration: none !important;
    transition: all .3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.cliente-card-premium::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pri), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
}

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

.cliente-card-premium:hover::before { transform: scaleX(1); }

.cliente-logo-wrap {
    width: 80px; height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.cliente-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter .3s;
}

.cliente-card-premium:hover .cliente-logo-wrap img { filter: grayscale(0%); }

.cliente-label {
    font-size: .72rem !important;
    font-weight: 700 !important;
    color: var(--muted) !important;
    text-align: center !important;
    letter-spacing: .03em !important;
    line-height: 1.3 !important;
}

.cliente-card-premium:hover .cliente-label { color: var(--pri) !important; }

/* ══════════════════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA — SCROLL
   ══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

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

/* ══════════════════════════════════════════════════════════════
   DECORACIONES Y DETALLES
   ══════════════════════════════════════════════════════════════ */

/* Divider decorativo */
.section-divider {
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--pri), transparent);
    border-radius: var(--radius-pill);
    margin: 0 auto 1.5rem;
}

/* Counter animado */
.counter-num {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════
   OVERRIDES ESPECÍFICOS PARA INICIO.HTML
   ══════════════════════════════════════════════════════════════ */

/* Neutralizar sección py-5 anterior del grid */
#inicio-productos-section {
    background: var(--bg) !important;
}

[data-theme="dark"] #inicio-productos-section {
    background: var(--bg) !important;
}

#inicio-productos-section h2.fw-bold {
    font-family: var(--font-display) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
}

[data-theme="dark"] #inicio-productos-section h2.fw-bold {
    color: #f0f2f8 !important;
}

/* ══════════════════════════════════════════════════════════════
   NEUTRALIZAR ARCANA (main.css) — CONFLICTOS ESPECÍFICOS
   Los estilos de Arcana afectan: #header padding/bg, #banner height,
   #banner header posición, font-size en pt, #footer padding
   ══════════════════════════════════════════════════════════════ */

/* ── #header: Arcana lo estila como bloque estático con padding y bg-image ── */
#header.mc-navbar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 68px !important;
    max-height: none !important;
    padding: 0 !important;
    text-align: left !important;
    background-color: rgba(255,255,255,0.97) !important;
    background-image: none !important;
    background-size: auto !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 9000 !important;
}

[data-theme="dark"] #header.mc-navbar {
    background-color: rgba(13,17,23,0.97) !important;
}

/* ── #header h1: Arcana le pone padding grande ── */
#header.mc-navbar h1,
#header.mc-navbar .mc-brand-text strong {
    padding: 0 !important;
    margin: 0 !important;
    font-size: .88rem !important;
    letter-spacing: .04em !important;
}

/* ── #banner: Arcana lo fija en height:28em y posiciona header al fondo ── */
#banner {
    height: 100vh !important;
    min-height: 640px !important;
    max-height: 900px !important;
    text-align: center !important;
    background-image: none !important;
    background-color: transparent !important;
}

#banner video {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
}

/* Arcana posiciona #banner header en bottom:0 como barra — lo reseteamos */
#banner header {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#banner header h2 {
    display: block !important;
    vertical-align: baseline !important;
    font-size: clamp(2.8rem, 6vw, 5rem) !important;
}

/* ── #page-wrapper: el body ya tiene padding-top del navbar, no añadir más ── */
#page-wrapper {
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    left: auto !important;
}

/* ── #footer: Arcana le pone padding 4em 0 8em 0 ── */
#footer {
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    position: static !important;
    transform: none !important;
    background-image: none !important;
}

/* ── font-size en pt de Arcana en media queries — forzar rem ── */
body, input, select, textarea {
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

/* ── Neutralizar pseudo-elementos de Arcana en nav items ── */
#header.mc-navbar a::before,
#header.mc-navbar a::after,
#header.mc-navbar li::before,
#header.mc-navbar li::after {
    display: none !important;
    content: none !important;
}

/* ── Arcana aplica transform al body.is-preload — no animar durante carga ── */
body.is-preload #banner header,
body.is-preload .hero-eyebrow {
    animation-play-state: paused !important;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — PROD CARD SURFACE
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .prod-card {
    background: #1e2538 !important;
    border-color: rgba(255,255,255,.08) !important;
}

[data-theme="dark"] .prod-card-title {
    color: #f0f2f8 !important;
}

[data-theme="dark"] .prod-card-text {
    color: #8b95a8 !important;
}

[data-theme="dark"] .prod-card-footer {
    border-top-color: rgba(255,255,255,.06) !important;
}

[data-theme="dark"] .prod-brand-badge {
    background: rgba(30,37,56,.95) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — VALOR CARD SURFACE
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .valor-card-title {
    color: #f0f2f8 !important;
}

[data-theme="dark"] .valor-card-text {
    color: #8b95a8 !important;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — CLIENTE CARD SURFACE
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .cliente-card-premium {
    background: #1e2538 !important;
    border-color: rgba(255,255,255,.08) !important;
}

[data-theme="dark"] .cliente-card-premium:hover {
    border-color: #37c0fb !important;
}

[data-theme="dark"] .cliente-logo-wrap img {
    filter: grayscale(40%) brightness(.85) !important;
}

[data-theme="dark"] .cliente-card-premium:hover .cliente-logo-wrap img {
    filter: grayscale(0%) brightness(1) !important;
}

[data-theme="dark"] .cliente-label {
    color: #8b95a8 !important;
}

[data-theme="dark"] .cliente-card-premium:hover .cliente-label {
    color: #37c0fb !important;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — TRUST BAR
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .trust-bar {
    background: linear-gradient(135deg, #0a0f1e, #0d1525) !important;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO FINAL — AJUSTES MÓVIL
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .catalogo-intro { padding: 3.5rem 0 1.5rem !important; }
    .productos-section { padding: .75rem 0 3.5rem !important; }
    .cta-central { padding: 3.5rem 0 !important; }
    .valores-premium { padding: 3.5rem 0 !important; }
    .clientes-premium { padding: 3.5rem 0 !important; }

    .valores-grid-premium { margin-top: 2rem !important; }
    .clientes-grid-premium { margin-top: 2rem !important; }

    .cta-central-btns { flex-direction: column; align-items: center; }
    .btn-cta-wa,
    .btn-cta-outline-white { width: 100% !important; max-width: 300px; justify-content: center; }

    .prod-card-img-wrap { height: 200px !important; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.7rem !important; }
    .cta-central-title { font-size: 1.7rem !important; }
    .hero-stats-row { gap: 1rem !important; }
    .trust-bar-inner { justify-content: flex-start !important; overflow-x: auto !important; flex-wrap: nowrap !important; padding: 0 1rem !important; }
    .trust-item { flex-shrink: 0 !important; }
}


/* ══════════════════════════════════════════════════════════════
   LOGO ESQUINA SUPERIOR DERECHA — BANNER INICIO
   Mismo estilo que en catálogos (paginas-premium.css)
   ══════════════════════════════════════════════════════════════ */

#banner .hero-corner-logo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;

    background: #ffffff;
    border-radius: 0 0 0 20px;
    border-bottom: 3px solid rgba(0,0,0,.10);
    border-left:   3px solid rgba(0,0,0,.10);
    padding: 1rem 1.25rem 1rem 1.5rem;
    box-shadow: -4px 4px 28px rgba(0,0,0,.45);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;

    pointer-events: none; /* no interfiere con clics del banner */
}

#banner .hero-corner-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
    image-rendering: auto;
}

#banner .hero-corner-rif {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    border-top: 1px solid #e5e7eb;
    padding-top: .3rem;
    margin-top: .1rem;
    width: 100%;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Tablet */
@media (max-width: 1024px) {
    #banner .hero-corner-logo {
        padding: .85rem 1rem .85rem 1.25rem;
    }
    #banner .hero-corner-img {
        max-width: 140px;
        max-height: 105px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    #banner .hero-corner-logo {
        padding: .65rem .8rem .65rem 1rem;
        border-radius: 0 0 0 14px;
    }
    #banner .hero-corner-img {
        max-width: 100px;
        max-height: 76px;
    }
    #banner .hero-corner-rif {
        font-size: .56rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    #banner .hero-corner-logo {
        padding: .5rem .6rem .5rem .8rem;
        border-radius: 0 0 0 12px;
    }
    #banner .hero-corner-img {
        max-width: 80px;
        max-height: 60px;
    }
    #banner .hero-corner-rif {
        display: none;
    }
}

/* ── TARJETA DE LOGOS (VIDEO CORPORATIVO) ── */
.logos-card {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    background: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    max-width: 100%;
}

.logo-img {
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
}
.logo-img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.logo-separator {
    width: 2px;
    height: 45px;
    background: linear-gradient(180deg, transparent, #e5e9f0, transparent);
    border-radius: 2px;
}

/* Adaptación a Dark Mode conservando la formalidad (Fondo blanco translúcido) */
[data-theme="dark"] .logos-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Responsividad para móviles: ahí sí permitimos que se apilen */
@media screen and (max-width: 768px) {
    .logos-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        width: 100%;
        display: flex;
    }
    .logo-separator {
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #e5e9f0, transparent);
    }
    .logo-img {
        height: 55px !important;
    }
}
