/* ====================================================
   NOVAFIRMA - PLATAFORMA INTEGRAL DE FIRMA DIGITAL
   by Novacert S.A.C.S.
   Paleta de colores oficial:
   - Verde primario: #A4DD4C
   - Verde acento/hover: #8fc93a
   - Verde secundario: #C8EB94
   - Azul institucional: #024664
   - Azul marino profundo: #013a52 / #001f2d
   ==================================================== */

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

code {
    font-family: 'Fira Code', monospace;
    background: rgba(2, 70, 100, 0.08);
    color: #024664;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== BOTONES ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #A4DD4C;
    color: #024664;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(164, 221, 76, 0.35);
}

.btn-primary:hover {
    background: #93cf3b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(164, 221, 76, 0.5);
    color: #013a52;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #A4DD4C;
    color: #ffffff;
    transform: translateY(-3px);
}

.btn-nav {
    display: inline-block;
    background: #A4DD4C;
    color: #024664;
    font-weight: 700;
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-nav:hover,
.btn-nav.active {
    background: #ffffff;
    color: #024664;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ========== NAVBAR ========== */
.navbar {
    background: #024664;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(2, 70, 100, 0.35);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.navbar .logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.navbar .logo-sub small {
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 500;
    margin-top: 1px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s, font-weight 0.2s;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #A4DD4C;
}

.nav-links a.active {
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ========== HERO SLIDER SECTION ========== */
.hero-slider-section {
    background: linear-gradient(145deg, #024664 0%, #013146 60%, #001f2d 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-slider-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(164, 221, 76, 0.12) 0%, rgba(2, 70, 100, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.slider-container {
    width: 100%;
    position: relative;
    padding: 60px 0 80px;
}

.slide {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.slide-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.component-tag {
    display: inline-block;
    background: rgba(164, 221, 76, 0.15);
    color: #A4DD4C;
    border: 1px solid rgba(164, 221, 76, 0.3);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-content h1 span {
    color: #A4DD4C;
    background: linear-gradient(120deg, #A4DD4C, #e1ff9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    max-width: 580px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-content .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-content .badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content .badge.badge-tech {
    background: rgba(2, 116, 168, 0.35);
    border-color: rgba(64, 185, 255, 0.3);
    color: #9fe2ff;
}

.hero-content .badge.badge-accent {
    background: rgba(164, 221, 76, 0.18);
    border-color: rgba(164, 221, 76, 0.4);
    color: #C8EB94;
}

.hero-content .badge i {
    margin-right: 5px;
    color: #A4DD4C;
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

.slide-meta span i {
    color: #A4DD4C;
    margin-right: 6px;
}

/* ========== HERO VISUAL / MOCKUPS ========== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 1. Terminal / API Mockup (SAS) */
.code-terminal-mockup {
    width: 100%;
    max-width: 480px;
    background: #081a24;
    border-radius: 14px;
    border: 1px solid rgba(164, 221, 76, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(2, 70, 100, 0.3);
    overflow: hidden;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    text-align: left;
}

.terminal-header {
    background: #0d2838;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-dots span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.terminal-badge {
    background: #024664;
    color: #A4DD4C;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.terminal-body {
    padding: 14px 16px;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: left;
}

.terminal-line {
    margin-bottom: 4px;
    word-break: break-all;
    text-align: left;
    color: #cbd5e1;
}

.t-keyword {
    color: #f43f5e;
    font-weight: 700;
}

.t-url {
    color: #38bdf8;
    font-weight: 600;
}

.t-header {
    color: #94a3b8;
}

.terminal-json {
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 8px 0 10px;
    color: #e2e8f0;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.76rem;
    line-height: 1.4;
    text-align: left;
    white-space: pre;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-json code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    display: block;
    text-align: left;
}

.t-key {
    color: #7dd3fc;
}

.t-string {
    color: #A4DD4C;
}

.t-bool {
    color: #f59e0b;
}

.t-number {
    color: #c084fc;
}

.t-comment {
    color: #64748b;
    font-style: italic;
}

.terminal-response {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(39, 201, 63, 0.12);
    border: 1px solid rgba(39, 201, 63, 0.25);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    text-align: left;
}

.t-status {
    color: #4ade80;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-res-info {
    color: #cbd5e1;
}

/* 2. Mobile Device Mockup (APP) */
.hero-image-wrapper {
    position: relative;
}

.mobile-device-card {
    position: relative;
    display: inline-block;
}

.mobile-device-card img {
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    max-height: 480px;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.floating-pill {
    position: absolute;
    background: rgba(2, 70, 100, 0.9);
    color: #ffffff;
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(164, 221, 76, 0.4);
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-pill i {
    color: #A4DD4C;
}

.pill-nfc {
    top: 15%;
    left: -20px;
}

.pill-cert {
    bottom: 18%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes floatAnim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* 3. Desktop App Mockup (SIGN) */
.desktop-app-mockup {
    width: 100%;
    max-width: 500px;
    background: #0f172a;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.desktop-header {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.ctrl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.window-title {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.window-title i {
    color: #A4DD4C;
    margin-right: 6px;
}

.desktop-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    background: #f1f5f9;
    min-height: 290px;
}

.desktop-sidebar {
    background: #e2e8f0;
    padding: 14px 10px;
    border-right: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    font-size: 0.75rem;
    color: #334155;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-item i {
    color: #024664;
}

.sidebar-item.active {
    background: #024664;
    color: #ffffff;
}

.sidebar-item.active i {
    color: #A4DD4C;
}

.cert-box {
    margin-top: auto;
    background: #ffffff;
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #A4DD4C;
    font-size: 0.7rem;
    color: #1e293b;
}

.cert-box small {
    display: block;
    color: #64748b;
    font-size: 0.65rem;
}

.cert-box strong {
    display: block;
    margin: 2px 0;
    color: #024664;
}

.cert-box span {
    color: #16a34a;
    font-weight: 700;
}

.desktop-preview {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.doc-page {
    width: 90%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.doc-line {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    width: 100%;
}

.doc-line.title-line {
    height: 10px;
    width: 60%;
    background: #94a3b8;
    margin-bottom: 4px;
}

.doc-line.short {
    width: 40%;
}

.signature-stamp-mockup {
    margin-top: 10px;
    align-self: flex-end;
    background: rgba(164, 221, 76, 0.12);
    border: 1.5px dashed #8fc93a;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.stamp-icon {
    font-size: 1.4rem;
    color: #024664;
}

.stamp-text {
    font-size: 0.62rem;
    color: #1e293b;
    line-height: 1.25;
}

.stamp-text strong {
    display: block;
    color: #024664;
}

.stamp-text small {
    display: block;
    color: #64748b;
}

.desktop-footer-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-mock {
    background: #024664;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-mock i {
    color: #A4DD4C;
}

/* 4. Crypto Engine Mockup (LIB) */
.crypto-card-mockup {
    width: 100%;
    max-width: 460px;
    background: rgba(8, 26, 36, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(164, 221, 76, 0.3);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.crypto-header i {
    color: #A4DD4C;
    font-size: 1.4rem;
}

.crypto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.crypto-node {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.crypto-node:hover {
    background: rgba(164, 221, 76, 0.08);
    border-color: #A4DD4C;
    transform: translateY(-2px);
}

.crypto-node i {
    font-size: 1.5rem;
    color: #A4DD4C;
    margin-bottom: 8px;
}

.crypto-node h5 {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.crypto-node p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.crypto-compliance {
    background: rgba(2, 70, 100, 0.6);
    border: 1px solid rgba(164, 221, 76, 0.25);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-compliance i {
    color: #A4DD4C;
    font-size: 1.1rem;
}

/* ========== CONTROLES DEL SLIDER ========== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #A4DD4C;
    color: #024664;
    border-color: #A4DD4C;
    transform: translateY(-50%) scale(1.08);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    position: relative;
    z-index: 5;
}

.indicator {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.indicator-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: #A4DD4C;
    color: #ffffff;
}

.indicator.active .indicator-bar {
    background: #A4DD4C;
}

/* ========== SECCIÓN GENERALES ========== */
section {
    padding: 85px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #024664;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* ========== ECOSISTEMA / CARDS OVERVIEW ========== */
.components-overview {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.components-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.comp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.comp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(2, 70, 100, 0.1);
    border-color: #A4DD4C;
}

.comp-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.sas-icon { background: rgba(2, 70, 100, 0.1); color: #024664; }
.app-icon { background: rgba(164, 221, 76, 0.2); color: #62991e; }
.sign-icon { background: rgba(2, 116, 168, 0.15); color: #0274a8; }
.lib-icon { background: rgba(15, 23, 42, 0.1); color: #0f172a; }

.comp-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.comp-card h3 {
    color: #024664;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.comp-card p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

.comp-features {
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.comp-features li {
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comp-features li i {
    color: #16a34a;
    font-size: 0.75rem;
}

.comp-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #024664;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.comp-card:hover .comp-link {
    color: #62991e;
    gap: 10px;
}

/* ========== CARACTERÍSTICAS ========== */
.features {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8fafc;
    padding: 34px 26px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(2, 70, 100, 0.08);
    border-color: #C8EB94;
    background: #ffffff;
}

.feature-card i {
    font-size: 2.6rem;
    color: #A4DD4C;
    margin-bottom: 18px;
}

.feature-card h3 {
    color: #024664;
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== CÓMO FUNCIONA (TABS SYSTEM) ========== */
.how-it-works {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.component-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tab-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-btn i {
    font-size: 1.1rem;
    color: #024664;
    transition: color 0.3s;
}

.tab-btn:hover {
    border-color: #024664;
    color: #024664;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #024664;
    border-color: #024664;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 70, 100, 0.25);
}

.tab-btn.active i {
    color: #A4DD4C;
}

.tab-content-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tab-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-info {
    max-width: 750px;
}

.tab-info .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-tech {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-accent {
    background: rgba(164, 221, 76, 0.2);
    color: #4d7a12;
}

.tab-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #024664;
    margin-bottom: 8px;
}

.tab-info p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.tab-cta-badges, .pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 6px;
}

.pill-tag i {
    color: #024664;
}

/* Sub-tabs para Novafirma-SIGN */
.subtabs-nav {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
}

.subtab-btn {
    background: none;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.subtab-btn.active {
    background: #024664;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 70, 100, 0.2);
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
}

.subtab-banner {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subtab-banner i {
    font-size: 1.3rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #A4DD4C;
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 70, 100, 0.06);
}

.step-badge {
    display: inline-block;
    background: #024664;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.step-icon {
    width: 52px;
    height: 52px;
    background: rgba(164, 221, 76, 0.18);
    color: #024664;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
}

.step-card h4 {
    color: #024664;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer Callout */
.tab-footer-callout {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.callout-icon i {
    font-size: 1.5rem;
    color: #024664;
}

.callout-text {
    font-size: 0.92rem;
    color: #334155;
}

/* SAS Visual Styles Box */
.sas-visual-styles-box {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

.sas-visual-styles-box h4 {
    font-size: 0.95rem;
    color: #024664;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.styles-pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.style-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.style-pill strong {
    background: #024664;
    color: #A4DD4C;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
}

.style-pill span {
    color: #334155;
    font-weight: 500;
}

/* LIB Features Grid */
.lib-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.lib-feature-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lf-icon {
    width: 44px;
    height: 44px;
    background: rgba(2, 70, 100, 0.08);
    color: #024664;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.lf-text h4 {
    color: #024664;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.lf-text p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ========== BENEFICIOS ========== */
.benefits {
    background: #024664;
    color: #ffffff;
}

.benefits .section-title {
    color: #ffffff;
}

.benefits .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #A4DD4C;
}

.benefit-item i {
    font-size: 2.5rem;
    color: #A4DD4C;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ========== PREGUNTAS FRECUENTES (FAQ) ========== */
.faq {
    background: #f8fafc;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #C8EB94;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #024664;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question i {
    color: #024664;
    transition: transform 0.3s;
    font-size: 0.95rem;
    margin-left: 12px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: #62991e;
}

.faq-answer {
    padding: 0 24px 22px;
    color: #475569;
    display: none;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 24px;
    margin-top: 8px;
}

.faq-answer ul li {
    margin-bottom: 6px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========== CTA FINAL ========== */
.cta-final {
    background: linear-gradient(145deg, #024664 0%, #013a52 60%, #001f2d 100%);
    color: #ffffff;
    text-align: center;
    padding: 85px 0;
}

.cta-final h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.cta-final > .container > p {
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
}

.cta-solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.cta-card-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 34px 28px;
    text-align: center;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.cta-card-option.highlight {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(164, 221, 76, 0.4);
}

.cta-icon {
    font-size: 2.2rem;
    color: #A4DD4C;
    margin-bottom: 14px;
}

.cta-card-option h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-card-option p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.btn-download {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-download img {
    height: 48px;
    width: auto;
    display: block;
}

.cta-legal {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.65;
}

.cta-legal i {
    margin-right: 6px;
    color: #A4DD4C;
}

/* ========== FOOTER ========== */
.footer {
    background: #001722;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 24px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer .brand {
    max-width: 320px;
}

.footer .brand img {
    height: 38px;
    margin-bottom: 14px;
}

.footer .brand p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer .links {
    display: flex;
    gap: 45px;
    flex-wrap: wrap;
}

.footer .links div h5 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.footer .links div a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    margin-bottom: 8px;
    transition: color 0.25s;
}

.footer .links div a:hover {
    color: #A4DD4C;
}

.footer .links div a i {
    margin-right: 6px;
    width: 16px;
}

.footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .slide-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin: 0 auto 24px;
    }

    .hero-content .badges {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .slide-meta {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .lib-features-grid {
        grid-template-columns: 1fr;
    }

    .cta-solutions-grid {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        display: none; /* En tablet/móvil se usan indicadores y swipe */
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 16px 16px;
        gap: 12px;
        background: #02364c;
        border-radius: 12px;
        margin-top: 14px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .nav-links a {
        padding: 8px 16px;
        border-radius: 8px;
        display: block;
        text-align: center;
        transition: all 0.25s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #A4DD4C;
    }

    .nav-links a.active:not(.btn-nav) {
        background: rgba(164, 221, 76, 0.15);
        font-weight: 700;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .tab-content-wrapper {
        padding: 24px 16px;
    }

    .tab-header-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .subtabs-nav {
        width: 100%;
        flex-direction: column;
        border-radius: 12px;
    }

    .subtab-btn {
        width: 100%;
        justify-content: center;
    }

    .component-tabs-nav {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .links {
        justify-content: center;
        gap: 30px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary, .btn-outline {
        width: 100%;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .slider-indicators {
        flex-wrap: wrap;
    }

    .indicator {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .styles-pills-grid {
        grid-template-columns: 1fr;
    }
}