/* Reset y variables CSS para presentación ejecutiva */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #0ea5e9;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --node-bg: #ffffff;
    --connector-color: #cbd5e1;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.main-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%);
}

/* Centro del ecosistema */
.center-hub {
    position: absolute;
    z-index: 100;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-section {
    text-align: center;
    color: white;
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.logo-section h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.95;
}

.logo-section p {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Nodos de servicios - organizados radialmente con mejor espaciado */
.service-node {
    position: absolute;
    background: var(--node-bg);
    border: 2px solid var(--connector-color);
    border-radius: 12px;
    padding: 18px 22px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.service-node:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: #fefefe;
}

/* Estilos para modo edición */
.service-node.draggable {
    cursor: move;
    user-select: none;
}

.service-node.draggable:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.service-node.dragging {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.3);
    border-color: var(--accent-color);
    z-index: 1000;
    transition: none !important;
}

/* Handle de arrastre */
.drag-handle {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--connector-color);
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: grab;
    user-select: none;
}

.service-node.draggable .drag-handle {
    opacity: 1;
}

.service-node.dragging .drag-handle {
    cursor: grabbing;
}

/* Controles de edición */
.edit-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.edit-btn, .save-btn, .reset-btn, .copy-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-family: inherit;
}

.edit-btn {
    background: var(--primary-color);
    color: white;
}

.edit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.save-btn {
    background: #059669;
    color: white;
}

.save-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.reset-btn {
    background: #dc2626;
    color: white;
}

.reset-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.edit-help {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 250px;
    text-align: right;
    box-shadow: var(--shadow);
    border: 1px solid var(--connector-color);
}

/* Modo edición activo */
body.edit-mode {
    cursor: default;
}

body.edit-mode .service-node {
    border-style: dashed;
}

body.edit-mode .center-hub {
    border: 3px dashed var(--accent-color);
    opacity: 0.9;
}

/* Conectores dinámicos */
.connector {
    position: absolute;
    width: 2px;
    background: linear-gradient(to center, var(--primary-color), var(--connector-color));
    z-index: 1;
    transition: all 0.3s ease;
}

.connector.updating {
    background: var(--accent-color);
}

.service-node h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-node .url {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 6px;
    font-weight: 500;
}

/* Estilos para los enlaces */
.service-node a.url {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.service-node a.url:hover {
    color: var(--primary-color);
}

.service-node a.url:visited {
    color: var(--accent-color);
    text-decoration: none;
}

.service-node a.url:visited:hover {
    color: var(--primary-color);
}

.service-node .description {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
}

.service-node .features {
    margin-top: 10px;
}

.service-node .features span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    padding-left: 8px;
}

.service-node .features span.note {
    font-size: 0.7rem;
    font-style: italic;
    color: #94a3b8;
    padding-left: 20px;
    margin-top: -2px;
    margin-bottom: 2px;
}

.complex-node {
    max-width: 290px;
    padding: 16px 20px;
}

/* Posicionamiento de nodos - Generado automáticamente */

.node-1 {
    top: 16.15%;
    left: 45.78%;
    transform: translateX(-50%);
}

.node-2 {
    top: 20.91%;
    left: 61.04%;
}

.node-3 {
    top: 33.65%;
    left: 65.21%;
}

.node-4 {
    top: 48.77%;
    left: 63.75%;
}

.node-5 {
    top: 66.07%;
    left: 66.06%;
}

.node-6 {
    top: 75.95%;
    left: 55.68%;
    transform: translateX(-50%);
}

.node-7 {
    top: 79.57%;
    left: 40.50%;
}

.node-8 {
    top: 52.30%;
    left: 24.64%;
}

.node-9 {
    top: 34.07%;
    left: 24.38%;
}

.node-10 {
    top: 18.00%;
    left: 30.83%;
}



/* Conectores iniciales */
.connector {
    position: absolute;
    width: 2px;
    background: linear-gradient(to center, var(--primary-color), var(--connector-color));
    z-index: 1;
}

.c-1 {
    top: 23%;
    left: 50%;
    height: 90px;
    transform: translateX(-50%);
}

.c-2 {
    top: 28%;
    right: 32%;
    height: 75px;
    transform: translateX(-50%);
}

.c-3 {
    top: 40%;
    right: 25%;
    height: 65px;
    transform: translateX(-50%);
}

.c-4 {
    top: 55%;
    right: 25%;
    height: 70px;
    transform: translateX(-50%);
}

.c-5 {
    top: 70%;
    right: 28%;
    height: 75px;
    transform: translateX(-50%);
}

.c-6 {
    top: 77%;
    left: 50%;
    height: 90px;
    transform: translateX(-50%);
}

.c-7 {
    top: 70%;
    left: 28%;
    height: 75px;
    transform: translateX(-50%);
}

.c-8 {
    top: 55%;
    left: 25%;
    height: 70px;
    transform: translateX(-50%);
}

.c-9 {
    top: 40%;
    left: 25%;
    height: 65px;
    transform: rotate(-50deg);
}

.c-10 {
    top: 28%;
    left: 32%;
    height: 75px;
    transform: rotate(-25deg);
}

/* Footer para presentación */
.presentation-footer {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Animaciones suaves para presentación */
.service-node {
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

.node-1 { animation-delay: 0.1s; }
.node-2 { animation-delay: 0.15s; }
.node-3 { animation-delay: 0.2s; }
.node-4 { animation-delay: 0.25s; }
.node-5 { animation-delay: 0.3s; }
.node-6 { animation-delay: 0.35s; }
.node-7 { animation-delay: 0.4s; }
.node-8 { animation-delay: 0.45s; }
.node-9 { animation-delay: 0.5s; }
.node-10 { animation-delay: 0.55s; }

.connector {
    animation: drawLine 0.8s ease-out forwards;
    opacity: 0;
}

.c-1 { animation-delay: 0.2s; }
.c-2 { animation-delay: 0.25s; }
.c-3 { animation-delay: 0.3s; }
.c-4 { animation-delay: 0.35s; }
.c-5 { animation-delay: 0.4s; }
.c-6 { animation-delay: 0.45s; }
.c-7 { animation-delay: 0.5s; }
.c-8 { animation-delay: 0.55s; }
.c-9 { animation-delay: 0.6s; }
.c-10 { animation-delay: 0.65s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawLine {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Responsive para presentaciones */
@media (max-width: 1600px) {
    .center-hub {
        width: 240px;
        height: 240px;
    }
    
    .logo-section h1 {
        font-size: 2.2rem;
    }
    
    .logo-section h2 {
        font-size: 1.2rem;
    }
    
    .service-node {
        min-width: 200px;
        max-width: 260px;
        padding: 18px 20px;
    }
}

@media (max-width: 1200px) {
    .center-hub {
        width: 200px;
        height: 200px;
    }
    
    .logo-section h1 {
        font-size: 1.8rem;
    }
    
    .logo-section h2 {
        font-size: 1rem;
    }
    
    .service-node {
        min-width: 180px;
        max-width: 220px;
        padding: 15px 18px;
    }
    
    .service-node h3 {
        font-size: 1.1rem;
    }
}


