﻿/* ============================================
   Estilos para Página de Sistemas SaaS
   ============================================ */

/* Variables y Colores Base */
:root {
    --primary-color: #1e40ae;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tipografía y jerarquía */
#portafolio-servicios .heading-main-title {
    font-size: 40px;
    letter-spacing: 0.03em;
}

#portafolio-servicios .heading-paragraph {
    font-size: 17px;
}

/* Hero de Página de Sistemas */
.page-banner-area {
    background-color: var(--primary-color);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 120px 0;
    color: white;
}

.page-banner-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.page-banner-desc {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-banner-breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner-breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.page-banner-breadcrumb a:hover {
    text-decoration: underline;
}

/* Sección de Introducción */
.services-area {
    padding: 100px 0 70px;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-title p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Estilos de Sistema Detallado */
.sistema-detalle {
    padding: 100px 0;
}

.sistema-detalle + .sistema-detalle {
    position: relative;
    margin-top: 10px;
}

.sistema-detalle + .sistema-detalle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(90, 73, 248, 0.35), transparent);
}

.sistema-detalle + .sistema-detalle::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(90, 73, 248, 0.5);
}

.sistema-badge {
    display: inline-flex;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 auto 15px;
    text-align: center;
    width: fit-content;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sistema-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
    line-height: 1.2;
}

.sistema-subtitulo {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    max-width: 840px;
    line-height: 1.5;
}

.sistema-descripcion {
    background-color: rgba(90, 73, 248, 0.08);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
    border-radius: 4px;
}

.sistema-descripcion p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.sistema-imagen {
    margin-bottom: 30px;
}

.sistema-imagen img {
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: auto;
}

.sistema-contenido h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Navegacion rapida de sistemas */
.sistema-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.sistema-card:hover {
    text-decoration: none;
    color: inherit;
}

.sistema-card:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 10px;
}

.sistema-card-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.sistema-card-box:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.stagger-grid .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
}

.stagger-grid .stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-grid .stagger-item:nth-child(2) { animation-delay: 0.12s; }
.stagger-grid .stagger-item:nth-child(3) { animation-delay: 0.19s; }
.stagger-grid .stagger-item:nth-child(4) { animation-delay: 0.26s; }

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

.sistema-card-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.sistema-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sistema-card-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.sistema-card-cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    background: rgba(30, 64, 174, 0.08);
}

.sistema-card-cta::after {
    content: '\2192';
    font-size: 14px;
}

.sistema-card--ventanilla .sistema-card-icon {
    color: #0f62fe;
}

.sistema-card--ventanilla .sistema-card-cta {
    color: #0f62fe;
    background: rgba(15, 98, 254, 0.12);
}

.sistema-card--banco .sistema-card-icon {
    color: #0f766e;
}

.sistema-card--banco .sistema-card-cta {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
}

.sistema-card--planeacion .sistema-card-icon {
    color: #d97706;
}

.sistema-card--planeacion .sistema-card-cta {
    color: #d97706;
    background: rgba(217, 119, 6, 0.14);
}

.sistema-card--sigpro .sistema-card-icon {
    color: #7c3aed;
}

.sistema-card--sigpro .sistema-card-cta {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
}

.sistemas-navegacion .section-title p {
    max-width: 680px;
    margin: 0 auto;
}

#portafolio-servicios .sistemas-navegacion {
    margin-bottom: 40px;
    position: relative;
}

#portafolio-servicios .sistemas-navegacion::after {
    content: '';
    display: block;
    width: 70%;
    height: 2px;
    margin: 40px auto 0;
    background: linear-gradient(90deg, transparent, rgba(90, 73, 248, 0.35), transparent);
}

#portafolio-servicios .sistema-detalle:first-of-type {
    margin-top: 40px;
}

.sistemas-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.sistema-contenido {
    max-width: 980px;
    margin: 0 auto;
}

.sistema-descripcion p {
    font-size: 16px;
}

.sistema-acordeon {
    margin-top: 24px;
}

.sistema-details {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-light);
}

.sistema-details summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    list-style: none;
    position: relative;
}

.sistema-details summary::-webkit-details-marker {
    display: none;
}

.sistema-details summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--primary-color);
}

.sistema-details[open] summary::after {
    content: '–';
}

.sistema-details summary:focus-visible {
    outline: 3px solid rgba(90, 73, 248, 0.4);
    outline-offset: 2px;
}

.sistema-details-body {
    padding: 0 18px 16px;
    background: #ffffff;
}

.sistema-details-body p {
    margin-bottom: 10px;
    color: #555;
}

.sistema-details-body .sistema-caracteristicas li {
    position: relative;
    padding-left: 24px;
}

.sistema-details-body .sistema-caracteristicas li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--success-color);
    font-size: 14px;
}

.sistema-details-body .sistema-caracteristicas i {
    display: none;
}

.sistema-cta {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

#portafolio-servicios {
    padding-bottom: 60px;
}

.sistema-detalle:last-of-type {
    padding-bottom: 40px;
}

/* Características del Sistema */
.sistema-caracteristicas {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sistema-caracteristicas li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.sistema-caracteristicas li:last-child {
    border-bottom: none;
}

.sistema-caracteristicas i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 16px;
}

.sistema-caracteristicas strong {
    color: #333;
}

/* Beneficios Grid */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.beneficio-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.beneficio-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.beneficio-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.beneficio-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Stack Tecnológico */
.tech-stack {
    background-color: #f0f0f0;
    padding: 15px 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    border-left: 3px solid var(--primary-color);
}

/* Casos de Uso */
.casos-uso {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 30px;
}

.casos-uso li {
    padding: 10px 0;
    color: #555;
    break-inside: avoid;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.casos-uso li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 16px;
}

/* Marcos Normativos */
.marcos-normativos {
    list-style: none;
    padding: 0;
}

.marcos-normativos li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.marcos-normativos li:last-child {
    border-bottom: none;
}

.marcos-normativos strong {
    color: var(--primary-color);
}

/* Tabla Comparativa */
.comparison-table {
    margin-top: 30px;
    font-size: 14px;
}

.comparison-table thead {
    background-color: #333;
    color: white;
}

.comparison-table thead th {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    border-color: #333;
}

.comparison-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(90, 73, 248, 0.02);
}

.comparison-table tbody tr:hover {
    background-color: rgba(90, 73, 248, 0.08);
}

.comparison-table .text-success {
    color: var(--success-color);
}

/* Fases de Implementación */
.phase-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-light);
}

.phase-box:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.phase-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.phase-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

.phase-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Sección CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
}

.cta-box {
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-box p {
    font-size: 16px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-buttons .btn-primary:hover {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
}

.cta-buttons .btn-outline-primary {
    color: white;
    border-color: white;
}

.cta-buttons .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

/* Sección FAQ */
.faq-section {
    padding: 100px 0;
}

.accordion .card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion .card-header {
    background-color: white;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.accordion .card-header .btn {
    padding: 20px;
    text-align: left;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    display: block;
    width: 100%;
}

.accordion .card-header .btn:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.accordion .card-header .btn:not(.collapsed) {
    color: var(--primary-color);
}

.accordion .card-body {
    padding: 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    background-color: rgba(90, 73, 248, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner-title {
        font-size: 32px;
    }

    .page-banner-desc {
        font-size: 16px;
    }

    .sistema-titulo {
        font-size: 24px;
    }

    #portafolio-servicios .heading-main-title {
        font-size: 30px;
    }

    #portafolio-servicios .heading-paragraph {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .casos-uso {
        columns: 1;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 5px;
    }
}

@media (max-width: 576px) {
    .page-banner-title {
        font-size: 24px;
    }

    .sistema-titulo {
        font-size: 20px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .tech-stack {
        font-size: 12px;
        overflow-x: auto;
    }

    .sistemas-cta {
        flex-direction: column;
        width: 100%;
    }

    .sistemas-cta .item-btn {
        width: 100%;
    }

    .sistema-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .sistema-cta .item-btn {
        width: 100%;
    }

    #portafolio-servicios .sistemas-navegacion .row {
        row-gap: 18px;
    }

    #portafolio-servicios .sistema-card-box {
        padding: 26px 20px;
    }

    #portafolio-servicios .sistema-card-title {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stagger-grid .stagger-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

