@layer pages {

/**
 * G-Certi — Sectores Hub Styles (Quantum Hyperdrive)
 * ==================================================
 * Extracted from inline CSS in: /views/sectores/index.php
 *
 * @version 1.0.0
 * @updated 2026-02-04
 */


/* ═══ SECTOR CARD QUANTUM EFFECTS ═══ */
.sector-card-quantum {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card-quantum::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sector-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card-quantum:hover::before {
    transform: scaleX(1);
}

.sector-card-quantum:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px var(--sector-color-dim);
}

.sector-card-quantum .sector-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card-quantum:hover .sector-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ═══ FEATURED CARD GLOW ═══ */
.featured-glow {
    position: relative;
}

.featured-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--sector-color), transparent, var(--sector-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.featured-glow:hover::after {
    opacity: 0.3;
}

/* ═══ STAT BADGE PULSE ═══ */
@keyframes stat-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-badge-quantum {
    animation: stat-pulse 3s ease-in-out infinite;
}

/* ═══ FLOATING INDUSTRY ICONS ═══ */
@keyframes float-industry {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0.12;
    }
    75% {
        transform: translateY(-25px) rotate(-5deg);
        opacity: 0.15;
    }
}

.floating-icon {
    position: absolute;
    animation: float-industry 8s ease-in-out infinite;
    pointer-events: none;
}

/* ═══ TAG PILL HOVER ═══ */
.tag-pill {
    transition: all 0.3s;
}

.sector-card-quantum:hover .tag-pill {
    transform: translateY(-2px);
}

/* ═══ GRADIENT TEXT ANIMATION ═══ */
@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text-animated {
    background: linear-gradient(135deg, #a62126, #ff6b6b, #a62126);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

/* ═══ SCROLL HINT — LIMITED BOUNCE ═══ */
@keyframes scroll-hint-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.sectores-scroll-hint {
    animation: scroll-hint-bounce 2s ease-in-out 3;
}

/* ═══ TITLE HOVER VIA CSS VARIABLE ═══ */
.sector-card-quantum:hover h3,
.sector-card-quantum:hover h4 {
    color: var(--hover-color, #fff);
}

/* ═══ QUICK SECTOR NAV PILLS ═══ */
.sectores-nav-pill:hover {
    background: color-mix(in srgb, var(--pill-color) 15%, transparent);
    border-color: color-mix(in srgb, var(--pill-color) 40%, transparent);
}

/* ═══ FOCUS-VISIBLE FOR KEYBOARD NAV ═══ */
.sector-card-quantum:focus-visible,
.sectores-nav-pill:focus-visible {
    outline: 2px solid #a62126;
    outline-offset: 2px;
}

.sector-card-quantum:focus-visible {
    transform: translateY(-4px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px var(--sector-color-dim);
}

/* ═══ REDUCED MOTION PREFERENCES ═══ */
@media (prefers-reduced-motion: reduce) {
    .floating-icon,
    .gradient-text-animated,
    .stat-badge-quantum,
    .sectores-scroll-hint {
        animation: none !important;
    }

    .sector-card-quantum,
    .sector-card-quantum .sector-icon,
    .sector-card-quantum .tag-pill,
    .sectores-nav-pill {
        transition-duration: 0.01ms !important;
    }

    .sector-card-quantum:hover {
        transform: none;
    }
}

/* ═══ STAT CARD HOVER ACCENT ═══ */
.gc-content-page .grid .rounded-2xl.group:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}


/* ═══════════════════════════════════════════════════════
   SECTOR DETAIL PAGE — show.php   (v2.0)
   ═══════════════════════════════════════════════════════ */

/* ── WRAPPER ── */
.sector-detail {
    --sector-accent: #a62126;
}

/* ── HERO ── */
.sd-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* ── STATS ── */
.sd-stats .sd-stat-card {
    padding: 0.5rem 1rem;
}

/* ── PAIN / SOLUTION CARDS ── */
.sd-pain-card {
    will-change: transform;
}

.sd-pain-card:hover {
    border-color: var(--sector-accent);
}

/* ── BENEFIT CARDS ── */
.sd-benefit-card {
    will-change: transform;
}

.sd-benefit-card:hover {
    background: #fff;
}

/* ── NORMA CARDS ── */
.sd-norma-card {
    will-change: transform;
}

/* ── SUBSECTOR CARDS ── */
.sd-subsector-card {
    will-change: transform;
}

/* ── PROCESS STEPS ── */
.sd-step {
    position: relative;
}

/* connector dots between steps (desktop) */
@media (min-width: 640px) {
    .sd-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 1.75rem; /* center of number box */
        right: -1rem;
        width: 2rem;
        height: 2px;
        background: var(--sector-accent);
        opacity: 0.25;
    }
}

/* ── FAQ ACCORDION ── */
.sd-faq-item summary::-webkit-details-marker {
    display: none;
}

.sd-faq-item summary::marker {
    content: '';
}

.sd-faq-item[open] {
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.06);
    border-color: color-mix(in srgb, var(--sector-accent) 30%, transparent);
}

.sd-faq-item[open] summary h3 {
    color: var(--sector-accent);
}

/* ── CTA SECTION ── */
.sd-cta {
    position: relative;
}

/* ── INTRO IMAGE SECTION ── */
.sd-intro img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sd-intro .group:hover img {
    transform: scale(1.03);
}

/* ── CIFRAS CLAVE CARDS ── */
.sd-cifra-card {
    will-change: transform;
}

/* ── FOCUS-VISIBLE FOR KEYBOARD NAV ── */
.sd-benefit-card:focus-visible,
.sd-pain-card:focus-visible,
.sd-norma-card:focus-visible,
.sd-subsector-card:focus-visible,
.sd-cifra-card:focus-visible,
.sd-faq-item:focus-visible {
    outline: 2px solid var(--sector-accent);
    outline-offset: 2px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .sd-benefit-card,
    .sd-pain-card,
    .sd-norma-card,
    .sd-subsector-card,
    .sd-step {
        transition-duration: 0.01ms !important;
    }

    .sd-benefit-card:hover,
    .sd-pain-card:hover,
    .sd-norma-card:hover {
        transform: none !important;
    }
}


} /* end @layer pages */
