/* Sistema de Diseño Mejorado */
:root {
    --brand-primary: #ff7a00;
    --brand-primary-hover: #e56d00;
    --brand-secondary: #006699;
    --brand-secondary-hover: #004d73;
    --brand-accent: #dc3545;
    --brand-dark: #084b80;
    --brand-dark-light: #13b6ff;
    --surface: #ffffff;
    --background: #f8f9fa;
    --border: #dee2e6;
    --text: #0f172a;
    --text-2: #5b6b7a;
    --muted: #9aa6b2;
    --success: #198754;
    --warning: #ffc107;
    --radius: 12px;
    --shadow-2: 0 10px 30px rgba(2, 26, 44, 0.12);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(19, 182, 255, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    padding-top: 0;
}

/* Mejoras de Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

#ref-container,
[ id^="ref-"] {
  scroll-margin-top: 80px; /* Altura de tu navbar + espacio extra */
}

/* ============ STICKY LOGO HEADER - COMPACTO ============ */
.sticky-navbar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 15px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(14px);
    background: rgba(8, 75, 128, 0.75);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.sticky-navbar .sticky-logo {
    background: var(--surface);
    border-radius: 12px;
    padding: 6px 25px; /* Reducido de 12px 35px */
    transition: transform 0.3s ease;

}
.sticky-navbar:hover .sticky-logo {
    transform: scale(1.05);
}

.sticky-navbar.visible {
    top: 0;
}

.nav-link-custom {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.nav-link-custom:hover {
    color: #ffc107;
}

.sticky-logo {
    height: 40px;
}

/* Componentes Globales */
.card-siac {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.card-siac:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(2, 26, 44, 0.15);
}

.hero-siac {
    background: url("/static/app/landing_page/fondos/Fondo2.png") center center / cover no-repeat;
    color: var(--surface);
    padding: 100px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Overlay oscuro para que el texto sea legible */
.hero-siac::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.25) 25%,
        rgba(0, 0, 0, 0.10) 50%,
        rgba(0, 0, 0, 0.05) 75%
    );
}

.hero-siac .container {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transform: perspective(1200px) rotateY(-5deg);
}

.btn-primary-siac {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.875rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-siac:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Mejoras de Formulario */
.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: var(--focus-ring);
}

.form-label {
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

/* Wizard Logic */
.step-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Indicador de Progreso del Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    color: var(--text-2);
    transition: var(--transition);
}

.wizard-step.active .step-circle {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.wizard-step.completed .step-circle {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-2);
    font-weight: 500;
}

.wizard-step.active .step-label {
    color: var(--brand-primary);
    font-weight: 600;
}

/* Inputs de Código */
.code-input-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.code-input {
    width: 60px;
    height: 70px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: var(--transition);
}

.code-input:focus {
    border-color: var(--brand-primary);
    box-shadow: var(--focus-ring);
    transform: scale(1.05);
}

/* Mejoras para la tabla */
.dataTables_wrapper .table thead {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-light) 100%);
    color: white;
}

.table {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: scale(1.01);
    transition: var(--transition);
}

/* Sticky CTA Mobile */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.show {
    transform: translateY(0);
}

/* MODAL DE RESUMEN REDUCIDO UN 10% */
.modal-siac .modal-dialog.modal-lg.modal-dialog-centered {
    max-width: calc(800px * 0.9); /* Reducido de 800px a 720px aprox */
}

.modal-siac .modal-header {
    background: rgba(8, 75, 128, 0.75);
    color: white;
    padding: 1.2rem 1.8rem;
}

.modal-siac .modal-body {
    padding: 1.5rem; /* Reducido de 2rem */
}

.modal-siac .modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.2rem 1.8rem; /* Reducido de 1.5rem 2rem */
}

/* Ajustes específicos para el modal de resumen */
#summaryModal .modal-header h5 {
    font-size: 1.25rem; /* Reducido ligeramente */
}

#summaryModal .modal-body h4 {
    font-size: 1.5rem; /* Reducido de ~1.75rem */
    margin-bottom: 0.75rem; /* Reducido de 1rem */
}

#summaryModal .modal-body .display-6 {
    font-size: 2.5rem; /* Reducido de ~2.75rem */
}

#summaryModal .modal-body .card-siac {
    padding: 1.25rem; /* Reducido de 1.5rem */
    margin-bottom: 1.25rem; /* Reducido de 1.5rem */
}

#summaryModal .modal-body h6 {
    font-size: 1rem; /* Reducido de ~1.125rem */
    margin-bottom: 0.75rem; /* Reducido de 1rem */
}

#summaryModal .modal-body .table {
    font-size: 0.9rem; /* Reducir tamaño de fuente de la tabla */
    margin-bottom: 1.25rem; /* Reducido de 1.5rem */
}

#summaryModal .modal-body .alert {
    padding: 0.875rem; /* Reducido de 1rem */
    margin-bottom: 0; /* Eliminar margen inferior extra */
}

#summaryModal .modal-body .alert .fs-4 {
    font-size: 1.25rem !important; /* Reducir icono */
}

#summaryModal .modal-footer button {
    padding: 0.5rem 1rem; /* Reducir padding de botones */
    font-size: 0.9rem;
}

#summaryModal .modal-body .d-flex .me-3 {
    margin-right: 0.75rem !important; /* Reducir margen del icono */
}

/* Altura controlada del modal */
#summaryModal .modal-dialog {
    max-height: 90vh;
}

/* Scroll SOLO en el body */
#summaryModal .modal-body {
    overflow-y: auto;
}

/* Header fijo */
#summaryModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 1055;
}

/* Footer fijo */
#summaryModal .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    z-index: 1055;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-siac {
        padding: 120px 20px 100px;
        border-radius: 0 0 30px 30px;
    }

    .hero-logo {
        height: 70px;
    }

    .sticky-logo-header {
        height: 50px;
        padding: 6px 0;
    }

    .sticky-logo {
        height: 25px;
    }

    .card-siac {
        padding: 1.5rem;
    }

    .wizard-progress::before {
        left: 20px;
        right: 20px;
    }

    .code-input {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
    }

    .modal-siac .modal-body {
        padding: 1.5rem;
    }

    .sticky-cta {
        display: block;
    }

    /* Ajustes responsive para el modal reducido */
    #summaryModal .modal-body {
        padding: 1rem; /* Reducido para móviles */
    }

    #summaryModal .modal-body .row {
        margin-bottom: 1rem; /* Reducir espacio entre filas */
    }

    #summaryModal .modal-body .display-6 {
        font-size: 2rem; /* Más pequeño en móviles */
    }

    #summaryModal .modal-footer {
        padding: 1rem;
    }

    #summaryModal .modal-footer button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-siac h1 {
        font-size: 2rem;
    }

    .hero-logo-background {
        padding: 15px 25px;
    }

    .hero-logo {
        height: 60px;
    }

    .sticky-logo-header {
        height: 45px;
        padding: 5px 0;
    }

    .logo-background {
        padding: 4px 15px;
        min-width: 160px;
        height: 35px;
    }

    .sticky-logo {
        height: 22px;
    }

    .btn-primary-siac {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .code-input-container {
        gap: 0.5rem;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.25rem;
    }
}

/* Estados de carga */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mejoras de accesibilidad */
:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===== Sección planes ===== */
.pricing-card {
    border: 0.5px solid #4d88b3;
    background: solid #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}


.plan-title:first-of-type {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.plan-title:nth-of-type(2) {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.plan-icon {
    font-size: 2.2rem;
    color: var(--brand-secondary);
}

.plan-icon.gold {
    color: #c9a227;
}


.enterprise {
    border: 1px solid #c9a227;
    background: linear-gradient(145deg, #ffffff, #fff1d6);
}

.enterprise .price {
    color: #b38f00;
}

.enterprise .plan-title:nth-of-type(2) {
    color: #c9a227;
}




.plan-sub {
    font-size: 0.85rem;
    color: #6c757d;
    min-height: 48px;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 10px;
}

.price span {
    font-size: 0.9rem;
}

.price-note {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.feature-list li {
    margin-bottom: 6px;
}

.ideal-profile {
    font-size: 0.8rem;
    color: #6c757d;
    min-height: 40px;
}

/* PLAN RECOMENDADO */
.recommended {
    border: 2px solid #198754;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(25,135,84,0.25);
    z-index: 2;
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #198754;
    color: #fff;
    padding: 5px 14px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}


/* ===== Lista de modulos ===== */

    /* Transición para el icono */
    .icon-transition {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .icon-rotate {
        transform: rotate(180deg);
    }

/*
    /* Transición para la tabla */
    .modules-table-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, opacity 0.3s ease;
        opacity: 0;
    }

    .modules-table-container.show {
        max-height: 2000px;
        opacity: 1;
        transition: max-height 0.5s ease-in, opacity 0.3s ease;
    }

    .modules-table-wrapper {
        margin-top: 40px;
        transition: all 0.4s ease;
    }

.modules-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 12px;
    align-items: center;
    text-align: center;
}

.modules-grid div {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

#modulesTable tbody tr td {
    background-color: transparent !important;
}

#modulesTable .th-brand {
    min-width: 200px;
    color: var(--brand-dark);
}

.plan-subtitle {
    font-size: 0.8rem;
    padding: 12px 10px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.3;
}

.plan-subtitle strong {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.plan-subtitle small {
    font-size: 0.75rem;
    color: #6c757d;
}


.features-table .check {
  color: #16a34a;
  font-weight: bold;
  font-size: 1.05rem;
}

.modal-siac .modal-body {
  max-height: 70vh;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 2;
}

/*
.modules-grid div:contains("✔") {
    color: #198754;
    font-weight: 600;
}

.modules-grid div:contains("—") {
    color: #9aa6b2;
}
*/

.modules-grid div:first-child {
    text-align: left;
    font-weight: 500;
}

.grid-header {
    font-weight: 700;
    color: var(--brand-dark);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 15px;
}


/* ===== Primer Carrusel ===== */
.carousel-indicators {
    position: static;
    margin-top: 35px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--brand-dark);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.4;
}

.carousel-indicators .active {
    opacity: 1;
}

#infoCarousel h4 {
    font-size: 1.35rem;
}

#infoCarousel p {
    font-size: 1.05rem;
}


/* ===== Segundo Carrusel ===== */

        :root {
            --frn-carousel-height: 100px;
        }

.frn-carousel-wrapper {
    width: 100%;
}
        .frn-carousel-wrapper {
            width: 100%;
            text-align: center;
        }

        .frn-carousel-title {
            padding: 1rem;
            font-size: 1rem;
            font-weight: 500;
            color: #333;
            margin: 0;
            font-family: sans-serif;
        }

        .frn-carousel-container {
            height: var(--frn-carousel-height);
            overflow: hidden;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .frn-carousel-track {
            display: flex;
            gap: 2rem;
            animation: frn-carousel-slide 60s linear infinite;
            width: max-content;
        }

        .frn-carousel-track img {
            height: calc(var(--frn-carousel-height) * 0.75);
            object-fit: contain;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: all 0.3s ease;
        }

.frn-carousel-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

        @keyframes frn-carousel-slide {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }


/* ===== SECCIÓN CLIENTES ===== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.client-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.client-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

/* Hover Effect */
.client-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-image {
        transform: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }
}


/* ===== ESPACIADO DE SECCIÓNES ===== */

.section-spacing {
    padding: 25px 0;
}

.section-spacing-sm {
    padding: 70px 0;
}

.section-spacing-lg {
    padding: 120x;
}
