/* Estilos específicos para comprobantes.html optimizados para Full HD 1920x1080 */

/* Variables CSS para dimensiones de recuadros */
:root {
    --node-width: 360px;
    --node-height: 280px;
    --complex-node-width: 420px;
    --complex-node-height: 320px;
    --node-padding: 10px;
    --node-border-radius: 12px;
    --node-border-width: 2px;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

/* Contenedor principal ajustado para Full HD */
.main-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centro del ecosistema - reducido para Full HD */
.center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-section {
    text-align: center;
    padding: 10px;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-section h2 {
    font-size: 21px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-section p {
    font-size: 15px;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Nodos de servicio optimizados para Full HD */
.service-node {
    position: absolute;
    background: #ffffff;
    border-radius: var(--node-border-radius);
    padding: var(--node-padding);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(102, 126, 234, 0.1);
    border: var(--node-border-width) solid var(--primary-color);
    cursor: move;
    transition: all 0.4s ease;
    width: var(--node-width);
    height: var(--node-height);
    z-index: 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-node:hover {
    box-shadow: 
        0 15px 45px rgba(102, 126, 234, 0.35),
        0 5px 15px rgba(102, 126, 234, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(102, 126, 234, 0.15);
    border-color: var(--secondary-color);
}

.service-node h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    line-height: 1.1;
    flex-shrink: 0;
    max-height: 45px;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Colores específicos para cada sección */
.node-1 h3 {
    color: #667eea; /* Azul para Comprobantes Emitidos */
}

.node-2 h3 {
    color: #43e97b; /* Verde para Comprobantes Recibidos */
}

.node-3 h3 {
    color: #fa7970; /* Coral para Todos los Comprobantes */
}

.node-4 h3 {
    color: #ffa726; /* Naranja para Ventajas Clientes */
}

.node-5 h3 {
    color: #9c27b0; /* Púrpura para IA */
}

.node-6 h3 {
    color: #26c6da; /* Cian para Retenciones */
}

.node-7 h3 {
    color: #ff7043; /* Naranja rojizo para Tendencias 2025 */
}

.service-node:hover h3 {
    filter: brightness(0.8);
}

.service-node .description {
    font-size: 14px;
    color: #4a5568;
    display: block;
    margin: 2px 0 0 0;
    padding: 0;
    line-height: 1.2;
    font-weight: 500;
    flex-shrink: 0;
    max-height: 35px;
    overflow: hidden;
}

.features {
    margin-top: 4px;
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
}

.features::-webkit-scrollbar {
    width: 8px;
}

.features::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.features::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.features::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.features span {
    display: block;
    font-size: 15px;
    color: #718096;
    margin-bottom: 4px;
    line-height: 1.3;
}

.complex-node {
    width: var(--complex-node-width);
    height: var(--complex-node-height);
}

.complex-node .features span {
    font-size: 12px;
    margin-bottom: 3px;
}

/* Posiciones específicas para 7 nodos en Full HD */
.node-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 80px;
    right: 20px;
}

.node-3 {
    top: 280px;
    right: 20px;
}

.node-4 {
    bottom: 20px;
    right: 120px;
}

.node-5 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.node-6 {
    bottom: 20px;
    left: 120px;
}

.node-7 {
    top: 280px;
    left: 20px;
}

/* Conectores */
.connector {
    position: absolute;
    width: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    opacity: 0.4;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.c-1 {
    height: 120px;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
}

.c-2 {
    width: 140px;
    height: 2px;
    top: 50%;
    left: -140px;
    transform: translateY(-50%) rotate(-30deg);
    transform-origin: right center;
}

.c-3 {
    width: 100px;
    height: 2px;
    top: 50%;
    left: -100px;
    transform: translateY(-50%) rotate(-60deg);
    transform-origin: right center;
}

.c-4 {
    width: 140px;
    height: 2px;
    top: 50%;
    left: -140px;
    transform: translateY(-50%) rotate(30deg);
    transform-origin: right center;
}

.c-5 {
    height: 120px;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
}

.c-6 {
    width: 140px;
    height: 2px;
    top: 50%;
    right: -140px;
    transform: translateY(-50%) rotate(30deg);
    transform-origin: left center;
}

.c-7 {
    width: 100px;
    height: 2px;
    top: 50%;
    right: -100px;
    transform: translateY(-50%) rotate(60deg);
    transform-origin: left center;
}

/* Controles de edición */
.edit-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-controls button {
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: #ffffff;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.edit-controls button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.edit-help {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #ffffff;
    border: 2px solid #667eea;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 220px;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Footer */
.presentation-footer {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    height: 25px;
}

.presentation-footer p {
    font-size: 12px;
    color: #667eea;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

/* Handles para arrastre y redimensionamiento */
.drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    color: var(--primary-color);
    cursor: move;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.service-node:hover .drag-handle {
    opacity: 0.9;
    color: var(--secondary-color);
}

.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0.7;
    cursor: se-resize;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.service-node:hover .resize-handle {
    background: var(--secondary-color);
    opacity: 0.9;
}

.resize-se {
    bottom: 4px;
    right: 4px;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 1600px) and (max-height: 900px) {
    .service-node {
        width: 300px;
        height: 280px;
        padding: 8px;
    }
    
    .complex-node {
        width: 350px;
        height: 320px;
    }
    
    .service-node h3 {
        font-size: 14px;
        max-height: 35px;
    }
    
    .service-node .description {
        font-size: 11px;
        max-height: 25px;
    }
    
    .features span {
        font-size: 11px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-node {
    animation: fadeIn 0.6s ease-out;
}

.center-hub {
    animation: fadeIn 0.8s ease-out;
}
/
* Estilos para acordeones */
.accordion-item {
    margin-bottom: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: var(--secondary-color);
}

.accordion-header i:first-child {
    margin-right: 6px;
    font-size: 11px;
}

.accordion-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.accordion-content.active {
    padding: 8px 12px;
    max-height: 300px;
    overflow-y: auto;
}

.accordion-content span {
    display: block;
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 5px;
    line-height: 1.4;
}

.accordion-content span:last-child {
    margin-bottom: 0;
}

.accordion-content span strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Barras de scroll mejoradas para acordeones */
.accordion-content::-webkit-scrollbar {
    width: 4px;
}

.accordion-content::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 2px;
}

.accordion-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 2px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Mejoras en las barras de scroll principales */
.features::-webkit-scrollbar {
    width: 6px;
}

.features::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 3px;
    margin: 4px 0;
}

.features::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animaciones suaves para acordeones */
@keyframes accordionSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-content.active {
    animation: accordionSlide 0.3s ease-out;
}

/* Responsive para acordeones */
@media (max-width: 1600px) and (max-height: 900px) {
    .accordion-header {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .accordion-content span {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .accordion-content.active {
        padding: 8px 12px;
        max-height: 280px;
    }
    
    .service-node h3 {
        font-size: 16px;
        max-height: 40px;
    }
    
    .service-node .description {
        font-size: 13px;
        max-height: 32px;
    }
    
    .features span {
        font-size: 14px;
    }
}