/* ==========================================================================
   CARNETIZACIÓN INTELIGENTE - HOJA DE ESTILOS DEDICADA
   Sistemas SAE | AsistEscolar 2026-2027
   ========================================================================== */

/* --- HERO DEDICADO --- */
.carnet-hero {
    padding: 150px 0 90px;
    background: linear-gradient(to right, #0D47A1 0%, #0D47A1 45%, #1278C8 70%, #08A6E1 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.carnet-hero .hero-title {
    font-size: 2.75rem;
}

.carnet-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(23, 213, 151, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-carnet-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(23, 213, 151, 0.35) 0%, rgba(23, 213, 151, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.carnet-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    clip-path: ellipse(75% 100% at 50% 100%);
}

.carnet-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.carnet-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.carnet-hero-title span {
    color: #17d597;
    background: linear-gradient(90deg, #17d597, #4df1b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carnet-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 650px;
}

.hero-quick-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.hero-feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hero Live Interactive Card Preview */
.hero-carnet-preview-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-carnet-showcase {
    position: relative;
    width: 320px;
    height: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transform: rotate(-3deg) translateY(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-carnet-showcase:hover {
    transform: rotate(0deg) translateY(-15px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
}

.hero-lanyard-overlay {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 80px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lanyard-strap {
    width: 36px;
    height: 55px;
    background: linear-gradient(90deg, #0253ac, #019fe5, #0253ac);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lanyard-strap::after {
    content: 'SAE';
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    writing-mode: vertical-lr;
    letter-spacing: 2px;
}

.lanyard-clip {
    width: 22px;
    height: 24px;
    background: linear-gradient(180deg, #d4d4d4, #888888);
    border-radius: 3px;
    border: 1px solid #444;
}

/* --- SECCIÓN PILARES --- */
.pillar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    height: 100%;
    border: 1px solid rgba(2, 83, 172, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 83, 172, 0.12);
    border-color: rgba(2, 83, 172, 0.2);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pillar-accent, #0253ac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

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

.pillar-index {
    position: absolute;
    top: 8px;
    right: 18px;
    font-size: 2.75rem;
    font-weight: 800;
    color: rgba(2, 83, 172, 0.06);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pillar-card:hover .pillar-icon-box {
    transform: scale(1.1) rotate(-4deg);
}

.pillar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pillar-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* --- SECCIÓN ¿CÓMO LO HACEMOS? (TIMELINE) --- */
.timeline-process-container {
    position: relative;
    padding: 30px 0 10px;
}

.timeline-line-connector {
    position: absolute;
    top: 62px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, #0253ac 0%, #019fe5 50%, #17d597 100%);
    border-radius: 3px;
    z-index: 1;
}

/* Los hijos [data-aos] reciben transform (incluso en reposo), lo que crea su
   propio contexto de apilamiento y "atrapa" el z-index del nodo por dentro.
   Se eleva el z-index de la fila para que todo el bloque quede sobre la línea. */
.timeline-process-container .row {
    position: relative;
    z-index: 2;
}

.timeline-step-node {
    position: relative;
    z-index: 2;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.timeline-step-node:hover {
    transform: translateY(-6px);
}

.timeline-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    color: #0253ac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(2, 83, 172, 0.18);
    border: 3px solid #e8f0fe;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-step-node:hover .timeline-icon-box {
    background: #0253ac;
    color: #ffffff;
    border-color: #0253ac;
}

.timeline-step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #17d597;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline-step-card {
    background: #ffffff;
    border: 1px solid rgba(2, 83, 172, 0.08);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    flex-grow: 1;
    width: 100%;
    transition: all 0.3s ease;
}

.timeline-step-node:hover .timeline-step-card {
    box-shadow: 0 14px 30px rgba(2, 83, 172, 0.12);
    border-color: rgba(2, 83, 172, 0.18);
}

/* --- SECCIÓN PLANES Y PRECIOS --- */
.pricing-section {
    background: #f8fafc;
    padding: 90px 0;
}

.plan-card-mockup {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.plan-card-mockup:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 83, 172, 0.12);
    border-color: #0253ac;
}

.plan-card-mockup.featured {
    border: 2px solid #0253ac;
    box-shadow: 0 16px 42px rgba(2, 83, 172, 0.18);
    background: #ffffff;
}

.plan-card-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #cbd5e1;
}

.plan-card-mockup.tier-basic::before {
    background: linear-gradient(90deg, #0253ac, #019fe5);
}

.plan-card-mockup.tier-recommended::before {
    background: linear-gradient(90deg, #0253ac, #17d597);
}

.plan-card-mockup.tier-advanced::before {
    background: linear-gradient(90deg, #1a1a2e, #334155);
}

@media (min-width: 992px) {
    .plan-card-mockup.featured {
        transform: scale(1.04);
        z-index: 2;
    }

    .plan-card-mockup.featured:hover {
        transform: scale(1.04) translateY(-8px);
    }
}

.popular-badge-blue {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #0253ac, #019fe5);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(2, 83, 172, 0.4);
    letter-spacing: 0.8px;
    z-index: 10;
    white-space: nowrap;
    transition: transform 0.35s ease;
}

.plan-featured-col:hover .popular-badge-blue {
    transform: translateX(-50%) translateY(-8px);
}

.plan-badge-pill {
    background: #e8f0fe;
    color: #0253ac;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 50px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.plan-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.plan-icon-circle.tier-basic {
    background: #e8f0fe;
    color: #0253ac;
}

.plan-icon-circle.tier-recommended {
    background: linear-gradient(135deg, #0253ac, #17d597);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 83, 172, 0.3);
}

.plan-icon-circle.tier-advanced {
    background: linear-gradient(135deg, #1a1a2e, #334155);
    color: #ffffff;
}

.pricing-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.pricing-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 0.93rem;
    color: #334155;
    line-height: 1.5;
}

.pricing-features li i {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
    color: #17d597;
}

.pricing-features li strong {
    color: #0f172a;
}

/* Sub-tabla de Precios por Material (Plan 1) */
.material-pricing-box {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 25px;
}

.material-pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.88rem;
}

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

.material-name {
    font-weight: 600;
    color: #334155;
}

.material-price {
    font-weight: 800;
    color: #0253ac;
    font-size: 1rem;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gift-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gift-icon {
    font-size: 1.8rem;
    color: #0253ac;
    flex-shrink: 0;
}

.gift-text {
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.3;
}

.gift-text strong {
    display: block;
    font-size: 0.9rem;
    color: #1e3a8a;
}

/* --- SECCIÓN CATÁLOGO DE CARNETS --- */
.catalog-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.catalog-nav-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.catalog-nav-btn:hover {
    border-color: #0253ac;
    color: #0253ac;
}

.catalog-nav-btn.active {
    background: #0253ac;
    border-color: #0253ac;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 83, 172, 0.3);
}

/* --- SUB-PESTAÑAS FRONTAL / POSTERIOR --- */
.carnet-face-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.face-tab-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 4px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.face-tab-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: #0253ac;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.face-tab-btn:hover {
    color: #0253ac;
}

.face-tab-btn.active {
    color: #0253ac;
}

.face-tab-btn.active::after {
    transform: scaleX(1);
}

/* --- REVERSO DEL CARNET (POSTERIOR) --- */
.carnet-face-front,
.carnet-face-back {
    display: flex;
    justify-content: center;
}

.carnet-face-back {
    display: none;
}

#carnetGrid.show-back .carnet-face-front {
    display: none;
}

#carnetGrid.show-back .carnet-face-back {
    display: flex;
}

.carnet-real-img {
    width: auto;
    max-width: 100%;
    height: 330px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.carnet-back-rendered {
    width: 210px;
    height: 330px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.carnet-back-rendered.horizontal {
    width: 320px;
    height: 200px;
}

.carnet-back-strip {
    height: 30px;
    flex-shrink: 0;
    background: repeating-linear-gradient(45deg, #1a1a2e, #1a1a2e 6px, #334155 6px, #334155 12px);
}

.carnet-back-body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carnet-back-terms {
    font-size: 0.58rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.carnet-back-emergency {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
}

.carnet-back-emergency i {
    color: #0253ac;
    font-size: 1rem;
    flex-shrink: 0;
}

.carnet-back-emergency strong {
    display: block;
    font-size: 0.56rem;
    color: #1a1a2e;
}

.carnet-back-emergency span {
    font-size: 0.58rem;
    color: #64748b;
}

.carnet-back-signature {
    margin-top: auto;
    text-align: center;
}

.signature-line {
    border-top: 1px dashed #94a3b8;
    margin-bottom: 4px;
}

.carnet-back-signature span {
    font-size: 0.55rem;
    color: #94a3b8;
}

.carnet-back-barcode-bar {
    padding: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* Card Mockup Visual Containers */
.carnet-mockup-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carnet-mockup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(2, 83, 172, 0.12);
    border-color: #019fe5;
}

.mockup-display-area {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 16px;
    padding: 25px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 330px;
    margin-bottom: 20px;
    position: relative;
}

/* CSS Carnet Templates Render */
.carnet-template-rendered {
    width: 210px;
    height: 330px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.carnet-template-rendered.horizontal {
    width: 320px;
    height: 200px;
}

.carnet-template-header {
    padding: 12px;
    color: white;
    text-align: center;
    position: relative;
}

.carnet-template-header.blue {
    background: linear-gradient(135deg, #0253ac, #019fe5);
}

.carnet-template-header.green {
    background: linear-gradient(135deg, #00875a, #17d597);
}

.carnet-template-header.dark {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.carnet-logo-text {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

.carnet-sublogo {
    font-size: 0.6rem;
    opacity: 0.85;
}

.carnet-photo-box {
    width: 90px;
    height: 105px;
    border-radius: 10px;
    margin: -15px auto 10px;
    background: #e2e8f0;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.carnet-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carnet-body-info {
    text-align: center;
    padding: 0 10px;
}

.carnet-student-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 2px;
}

.carnet-student-role {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.role-student {
    background: #e0f2fe;
    color: #0369a1;
}

.role-teacher {
    background: #fef3c7;
    color: #b45309;
}

.role-staff {
    background: #f1f5f9;
    color: #475569;
}

.carnet-details-grid {
    font-size: 0.68rem;
    color: #475569;
    line-height: 1.3;
    margin-bottom: 10px;
}

.carnet-qr-bar {
    margin-top: auto;
    background: #f8fafc;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
}

.carnet-qr-code {
    width: 38px;
    height: 38px;
}

.carnet-barcode {
    height: 25px;
    width: 110px;
    background: repeating-linear-gradient(
        90deg,
        #000,
        #000 2px,
        #fff 2px,
        #fff 4px
    );
}

/* --- SECCIÓN ACCESORIOS Y LANYARDS --- */
.accessory-pricing-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.accessory-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 83, 172, 0.1);
    border-color: #0253ac;
}

.accessory-img-container {
    height: 180px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.accessory-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #0253ac;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(2, 83, 172, 0.3);
}

/* Lanyard Render CSS Visual & Real Image Preview */
.lanyard-render-strip {
    width: 80%;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 3px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

.lanyard-blue {
    background: linear-gradient(90deg, #0253ac 0%, #019fe5 50%, #0253ac 100%);
}

.lanyard-green {
    background: linear-gradient(90deg, #00875a 0%, #17d597 50%, #00875a 100%);
}

.lanyard-black {
    background: linear-gradient(90deg, #1a1a2e 0%, #334155 50%, #1a1a2e 100%);
}

.lanyard-tricolor {
    background: linear-gradient(180deg, #ffe600 33%, #0033a0 33%, #0033a0 66%, #ce1126 66%);
}

/* --- ESTILOS DE MODELOS REALES DE LANYARDS --- */
.lanyard-model-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.lanyard-model-card:hover {
    border-color: #0253ac !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(2, 83, 172, 0.12) !important;
    transform: translateY(-2px);
}

.lanyard-strip-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);
    min-height: 85px;
    border: 1px solid rgba(255,255,255,0.08);
}

.lanyard-strip-img {
    width: 100%;
    max-height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lanyard-strip-container:hover .lanyard-strip-img {
    transform: scale(1.04);
}

.lanyard-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 83, 172, 0.82);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.lanyard-strip-container:hover .lanyard-zoom-overlay {
    opacity: 1;
}

/* --- CTA FINAL --- */
.cta-final-card {
    background: linear-gradient(135deg, #0d3b66 0%, #0253ac 55%, #019fe5 100%);
    border-radius: 28px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(2, 83, 172, 0.28);
}

.cta-final-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(23, 213, 151, 0.25) 0%, rgba(23, 213, 151, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-final-card::after {
    content: '';
    position: absolute;
    bottom: -70%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-final-photo {
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.cta-final-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.cta-final-phone:hover {
    opacity: 1;
    color: #ffffff;
}

@media (max-width: 767px) {
    .cta-final-card {
        padding: 2.25rem 1.5rem;
        border-radius: 24px;
    }
}

/* --- PASOS DE IMPLEMENTACIÓN --- */
.step-card-v2 {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    height: 100%;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
}

.step-number-badge {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0253ac, #019fe5);
    color: #ffffff;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(2, 83, 172, 0.3);
}

/* --- LISTA DE CHEQUEO (usada en Qué Incluye y Especificaciones) --- */
.check-list-v2 {
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.check-list-v2 li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.check-list-v2 li:last-child {
    margin-bottom: 0;
}

.check-list-v2 li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 1px;
    color: #17d597;
    font-weight: bold;
}

.check-list-v2 li strong {
    color: #1a1a2e;
}

/* --- NAV DE PASOS DE LA PROPUESTA --- */
.proposal-steps-sticky {
    z-index: 900;
    transition: box-shadow 0.2s ease;
}

.proposal-steps-sticky.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.proposal-steps-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 767px) {
    .proposal-steps-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .proposal-steps-nav::-webkit-scrollbar {
        display: none;
    }

    .proposal-step-link {
        flex-shrink: 0;
    }
}

.proposal-step-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.proposal-step-link span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #0253ac;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.proposal-step-link:hover {
    border-color: #0253ac;
    color: #0253ac;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 83, 172, 0.12);
}

.proposal-step-link.active {
    background: #0253ac;
    border-color: #0253ac;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 83, 172, 0.3);
}

.proposal-step-link.active span {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

#propuesta-digital,
#materiales,
#que-incluye,
#promociones,
#catalogo-carnets,
#catalogo-lanyards,
#cta-final {
    scroll-margin-top: 170px;
}

@media (max-width: 767px) {

    #propuesta-digital,
    #materiales,
    #que-incluye,
    #promociones,
    #catalogo-carnets,
    #catalogo-lanyards,
    #cta-final {
        scroll-margin-top: 130px;
    }
}

/* --- BLOQUES DE BENEFICIO (TARJETA DIGITAL) --- */
.benefit-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.benefit-check-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--benefit-accent, #0253ac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.benefit-check-item:hover::before {
    transform: scaleX(1);
}

.benefit-check-item:hover {
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.benefit-check-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--benefit-bg, #e8f0fe);
    color: var(--benefit-accent, #0253ac);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-check-item:hover .benefit-check-icon {
    transform: scale(1.1) rotate(-4deg);
}

.benefit-check-item h6 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.benefit-check-item p {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- MOCKUP DE TELÉFONO: TARJETA DIGITAL --- */
.propuesta-digital-glow {
    position: absolute;
    top: -10%;
    right: -8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(2, 83, 172, 0.08) 0%, rgba(2, 83, 172, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.digital-card-phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 10px 0 30px;
}

.phone-frame {
    width: 240px;
    background: #1a1a2e;
    border-radius: 38px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(2, 83, 172, 0.22), 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.digital-card-phone-mockup:hover .phone-frame {
    transform: rotate(0deg);
}

.phone-notch {
    width: 74px;
    height: 20px;
    background: #1a1a2e;
    border-radius: 0 0 14px 14px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.phone-screen {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen-top {
    background: linear-gradient(135deg, #0253ac, #019fe5);
    padding: 38px 18px 24px;
    text-align: center;
    position: relative;
}

.phone-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #17d597;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(23, 213, 151, 0.35);
}

.phone-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    margin: 0 auto 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.phone-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-screen-top h6 {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.phone-role {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    display: block;
}

.phone-screen-bottom {
    background: #ffffff;
    padding: 16px 14px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-link-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.phone-link-pill i {
    color: #0253ac;
    font-size: 0.9rem;
}

.phone-qr-floating {
    position: absolute;
    bottom: 6px;
    right: 4px;
    width: 58px;
    height: 58px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #0253ac;
    border: 2px solid #f1f5f9;
    z-index: 4;
}

@media (max-width: 991px) {
    .phone-frame {
        transform: rotate(0deg);
    }
}

/* --- SELECTOR DE COLOR PARA CINTAS --- */
.cinta-color-picker {
    margin-top: 2px;
}

.cinta-color-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.cinta-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #e2e8f0;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    background: var(--swatch-color, #f1f5f9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

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

.color-swatch.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0253ac;
    transform: scale(1.1);
}

.color-swatch.swatch-help {
    background: #ffffff;
    border: 2px dashed #94a3b8;
    color: #0253ac;
    font-weight: 700;
    box-shadow: none;
}

.color-swatch.swatch-help:hover {
    border-color: #0253ac;
}

.color-swatch.swatch-help.active {
    background: #0253ac;
    border-style: solid;
    border-color: #0253ac;
    color: #ffffff;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0253ac;
}

/* --- SELECCIÓN DE MODELOS (CARNET / LANYARD) --- */
.model-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #0253ac;
    color: #0253ac;
    font-weight: 700;
    font-size: 0.83rem;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.model-select-btn:hover {
    background: #0253ac;
    color: #ffffff;
}

.model-select-btn.selected {
    background: #17d597;
    border-color: #17d597;
    color: #ffffff;
}

.model-select-btn.selected:hover {
    background: #14b986;
    border-color: #14b986;
}

.carnet-mockup-card.is-selected {
    border-color: #17d597 !important;
    box-shadow: 0 0 0 3px rgba(23, 213, 151, 0.2), 0 20px 45px rgba(23, 213, 151, 0.15) !important;
}

.lanyard-model-card.is-selected {
    border-color: #17d597 !important;
    box-shadow: 0 0 0 3px rgba(23, 213, 151, 0.2), 0 12px 30px rgba(23, 213, 151, 0.15) !important;
}

/* --- BARRA FLOTANTE DE SELECCIÓN --- */
.selection-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d3b66 0%, #0253ac 60%, #019fe5 100%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1050;
}

.selection-bar.show {
    transform: translateY(0);
}

.selection-bar-label {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.selection-chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
}

.selection-chip.empty {
    opacity: 0.55;
    font-style: italic;
}

body.has-selection-bar .main-content-wrapper {
    padding-bottom: 78px;
}

@media (max-width: 767px) {
    .selection-bar .container {
        justify-content: center;
        text-align: center;
    }

    .selection-bar-label {
        width: 100%;
        text-align: center;
    }

    body.has-selection-bar .main-content-wrapper {
        padding-bottom: 130px;
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    .carnet-hero {
        padding: 120px 0 70px;
        text-align: center;
    }
    
    .carnet-hero-title {
        font-size: 2.2rem;
    }
    
    .hero-quick-features {
        justify-content: center;
    }

    .hero-carnet-preview-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .carnet-hero-title {
        font-size: 1.75rem;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .catalog-nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
