/* service-page.css - ESTILOS UNIFICADOS PARA TODAS LAS PÁGINAS DE SERVICIO */

:root {
    /* Paleta Híbrida */
    --bg-dark-hero: #020617;  
    --bg-light: #ffffff;      
    --bg-light-alt: #f8fafc;  
    --text-main: #1e293b;     
    --text-muted: #64748b;    
    --accent-glow: #00d4ff;   
    --color-primary: #0056b3; 
    --bg-dark-section: #0f172a; 
    --electric-blue: #3b82f6; 
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* =========================================
   1. HERO GLOBAL
   ========================================= */
.service-hero {
    position: relative;
    height: 55vh; 
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    overflow: hidden;
    margin-bottom: 0;
    color: white; 
}

.service-hero.data-hero {
    background: linear-gradient(180deg, #020617 0%, #082f49 100%);
}

#service-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.service-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-glow);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.service-hero.data-hero .service-badge {
    color: #22d3ee;
    border-color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: white;
}

.service-hero p {
    font-size: 1.25rem;
    color: #cbd5e1; 
    line-height: 1.6;
    font-weight: 300;
}

/* =========================================
   2. ELEMENTOS COMUNES
   ========================================= */
.page-section {
    padding: 100px 0;
    position: relative;
}

.section-subtitle {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    color: #0f172a; 
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.strategy-block {
    background: #f8fafc; 
    border-left: 4px solid var(--color-primary); 
    padding: 40px 50px;
    border-radius: 12px; 
    margin-bottom: 80px;
    position: relative;
    border: 1px solid #e2e8f0;
    text-align: center; 
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.strategy-block h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.strategy-block p {
    font-size: 1.2rem; 
    color: var(--text-main); 
    font-weight: 400; 
    line-height: 1.7;
}

/* =========================================
   3. ESTILOS CLOUD & SAP
   ========================================= */
.service-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.service-feature-item {
    background: #ffffff;
    border: 1px solid #e2e8f0; 
    border-radius: 16px;
    padding: 40px 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%; 
}

.service-feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-feature-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.service-feature-item:hover .service-feature-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.service-feature-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a; 
    line-height: 1.3;
}

.service-feature-content p {
    font-size: 1rem;
    color: #64748b; 
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   4. ESTILOS INTEGRATE
   ========================================= */
.process-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
    position: relative;
}

.sticky-image-container {
    position: sticky;
    top: 120px;
    height: fit-content;
    z-index: 10;
}

.sticky-image-container img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12); 
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
}

.solid-process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    border-left: 3px solid #e2e8f0; 
    margin-left: 15px;
}

.solid-process-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
    z-index: 1;
}

.solid-process-item {
    position: relative;
    padding-left: 40px; 
    margin-bottom: 60px; 
}

.solid-process-item:last-child {
    margin-bottom: 0;
}

.solid-process-item::before {
    content: '';
    position: absolute;
    left: -10px; 
    top: 6px;
    width: 17px;
    height: 17px;
    background-color: #fff;
    border: 4px solid var(--color-primary); 
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px #fff;
}

.solid-process-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px #fff, 0 0 15px rgba(0, 86, 179, 0.4);
    background-color: var(--color-primary);
}

.solid-process-item h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.solid-process-item p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.section-title-clean {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 50px;
    line-height: 1.2;
}

/* =========================================
   5. ESTILOS DATA+AI
   ========================================= */
.dark-section {
    background-color: var(--bg-dark-section);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-bottom: 40px; 
}

.step-card {
    background: transparent; 
    border: none; 
    border-left: 1px solid #e2e8f0; 
    padding: 10px 20px; 
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px); 
    border-left-color: var(--accent-glow);
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.8), transparent);
}

.step-number {
    display: block;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-glow);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 1; 
    position: relative;
    top: auto; right: auto;
}

.step-number::before {
    content: '/ ';
    color: #cbd5e1;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.step-icon svg {
    width: 20px;
    height: 20px;
}

.step-title {
    font-size: 1.15rem; 
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.sidebar-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
}

.dark-solutions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dark-solution-item {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    gap: 25px;
    align-items: center;
}

.dark-solution-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-glow);
    transform: translateX(10px);
}

.ds-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ds-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.ds-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.ds-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-glow);
    letter-spacing: 1px;
}

/* =========================================
   6. ANIMACIONES
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   7. SECCIÓN CLOUD EXPLORER (CORREGIDO FINAL)
   ========================================= */
.cloud-explorer-section {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(#e2e8f0 1px, transparent 1px),
        radial-gradient(#e2e8f0 1px, transparent 1px);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
    /* PADDING REDUCIDO para acercar a la sección anterior */
    padding: 0 0 120px 0;
    position: relative;
    overflow: hidden;
}

/* --- Contenedor Principal (Lienzo) --- */
.cloud-ecosystem-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 2 / 1; 
    margin: 0 auto;
    max-height: 600px; 
    /* Margen superior para despegar el título del gráfico */
    margin-top: 60px;
}

/* --- SVG y Líneas --- */
.cloud-connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

/* ESTILO DE LÍNEA: SÓLIDA Y ELÉCTRICA */
.cloud-path-bg {
    fill: none;
    /* Color Azul Eléctrico */
    stroke: var(--electric-blue); 
    stroke-width: 3px; /* Grosor aumentado */
    stroke-dasharray: none; /* Línea Sólida (Sin punteado) */
    opacity: 1;
    /* Resplandor Eléctrico */
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
}

/* Ocultamos la línea animada punteada antigua */
.cloud-path-animated {
    display: none;
}

/* --- Burbujas (Nodos) --- */
.cloud-bubble {
    position: absolute;
    width: 280px; 
    height: 280px;
    margin-left: -140px; 
    margin-top: -140px;
    
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.05),
        0 5px 15px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px; 
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* --- Posicionamiento (FORMA ARCO PRESERVADA) --- */
/* Estas son las coordenadas exactas que pediste mantener */
.pos-1 { top: 50%; left: 15%; }
.pos-2 { top: 20%; left: 37%; }
.pos-3 { top: 20%; left: 63%; }
.pos-4 { top: 50%; left: 85%; }


/* Animaciones */
.cloud-bubble { animation: gentleFloat 6s ease-in-out infinite; }
.pos-2 { animation-delay: 1.5s; }
.pos-3 { animation-delay: 0.5s; }
.pos-4 { animation-delay: 2s; }

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hover con Color Eléctrico */
.cloud-bubble:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.2),
        0 0 0 2px var(--electric-blue);
    z-index: 20;
    border-color: transparent;
}

/* Contenido Interno */
.bubble-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #eff6ff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cloud-bubble:hover .bubble-icon-wrapper {
    background: var(--electric-blue);
    transform: scale(1.1) rotate(5deg);
}

.bubble-icon {
    width: 36px; 
    height: 36px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.cloud-bubble:hover .bubble-icon {
    color: #ffffff;
}

.bubble-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.2;
    padding: 0 5px; 
}

.bubble-desc {
    font-size: 0.9rem; 
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* --- CTA Integrado --- */
.cloud-cta-integrated {
    position: absolute;
    /* Alineado con la línea recta en y=480/600 = 80% */
    top: 80%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    /* Fondo para ocultar la línea detrás del botón */
    background: #f8fafc; 
    padding: 10px 30px;
    border-radius: 50px; 
}

/* =========================================
   12. SAP WHITE CARDS (PYRAMID)
   ========================================= */

/* Sección de Servicios Blanca */
.sap-white-services-section {
    background-color: #ffffff; /* Fondo Blanco */
    padding: 80px 0;
    position: relative;
    /* Patrón sutil */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 25px 25px;
}

/* Grid Piramidal (Flexbox) */
.sap-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrado Horizontal */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo Tarjeta Clean White */
.sap-card-clean {
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Borde suave */
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    /* Dimensiones para 3 en fila (con gap de 30px) */
    flex: 0 1 calc(33.333% - 20px); 
    min-width: 320px; /* Ancho mínimo */
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sap-card-clean:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* Sombra elegante */
}

/* Icono dentro de la tarjeta */
.sap-card-clean-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff; /* Azul muy pálido */
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.sap-card-clean:hover .sap-card-clean-icon {
    background: var(--color-primary);
    color: white;
}

.sap-card-clean-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
}

.sap-card-clean h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sap-card-clean p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Sección Resultados Reales (Dark + Partículas) - MANTENIDA */
.sap-results-section {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: white;
    padding: 80px 0;
    position: relative; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Canvas de partículas para fondo */
.sap-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás del contenido */
    pointer-events: none;
    opacity: 0.5;
}

/* Lista de Resultados */
.sap-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.result-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-glow);
}

.result-marker {
    color: var(--accent-glow);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* RESPONSIVIDAD SAP */
@media (max-width: 768px) {
    /* OCULTAR ELEMENTOS DE ESCRITORIO */
    .sap-cards-grid,
    .sap-results-list {
        display: none;
    }
    
    .sap-card-clean {
        flex: 1 1 100%; /* Ocupar todo el ancho en móvil */
    }
    
    .sap-results-list {
        grid-template-columns: 1fr;
    }
}