/* ===================================
   JORNADA IA STYLES - CSS PURO OPTIMIZADO
   GRAFIMÁTICA DIGITAL S.A.S.
   ================================== */

/* Variables CSS Nativas */
:root {
    /* Colores Principales */
    --azul-rey: rgb(6, 35, 129);
    --azul-claro: rgb(23, 128, 226);
    --dorado: rgb(245, 203, 87);
    --dorado-oscuro: rgb(168, 121, 10);
    --blanco: #ffffff;
    --gris-suave: #f3f4f6;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--azul-rey) 0%, var(--azul-claro) 100%);
    --gradient-secondary: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    --gradient-dorado: linear-gradient(135deg, var(--dorado) 30%, var(--dorado-oscuro) 120%);
    
    /* Sombras */
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 35px rgba(0,0,0,0.2);
    
    /* Espaciados */
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===================================
   CONTENEDOR PRINCIPAL
   ================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===================================
   SECCIÓN PRINCIPAL JORNADA IA
   ================================== */
.jornada-ia-section {
    background: var(--gradient-primary);
    padding: 120px 0 80px;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.jornada-ia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    animation: float-bg 20s infinite linear;
}

@keyframes float-bg {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(-100px); }
}

/* Hero Content */
.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-content .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.8;
}

/* ===================================
   ESTADÍSTICAS BANNER
   ================================== */
.stats-banner {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-item h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--blanco);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===================================
   NOTA DE INTEGRACIÓN
   ================================== */
.integration-note {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid #4ECDC4;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(10px);
}

.integration-note h4 {
    color: #4ECDC4;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.integration-note p {
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===================================
   GRID DE CARACTERÍSTICAS
   ================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--blanco);
    position: relative;
    z-index: 2;
}

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ===================================
   SECCIÓN DE PROCESO
   ================================== */
.process-section {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
}

.process-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--blanco);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    background: var(--gradient-secondary);
    color: var(--blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    z-index: -1;
    animation: rotate-ring 3s linear infinite;
}

@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--blanco);
}

.process-step p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ===================================
   SECCIÓN DE TESTIMONIOS
   ================================== */
.testimonial-section {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.testimonial-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--blanco);
}

.expert-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    transition: var(--transition);
}

.expert-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.02);
}

.expert-badge h3 {
    color: var(--blanco);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.expert-badge p {
    opacity: 0.9;
    font-style: italic;
    line-height: 1.6;
}

/* ===================================
   SECCIÓN CTA
   ================================== */
.cta-section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    margin: 60px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--blanco);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BOTONES
   ================================== */
.btn {
    background: var(--gradient-secondary);
    color: var(--blanco);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary {
    background: var(--gradient-secondary);
}

.btn-secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* ===================================
   SECCIÓN DE HERRAMIENTAS
   ================================== */
.tools-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tool-card {
    background: var(--blanco);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--azul-claro);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.tool-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-btn {
    background: var(--gradient-primary);
    color: var(--blanco);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.tool-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* ===================================
   BANNER DE CONTACTO
   ================================== */
.contact-banner {
    background: var(--gradient-primary);
    color: var(--blanco);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.contact-banner h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: rgba(255,255,255,0.2);
    color: var(--blanco);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ===================================
   ANIMACIONES AVANZADAS
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-card,
    .tool-card {
        padding: 20px;
    }
    
    .stats-banner {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
}

/* ===================================
   SCROLL SUAVE
   ================================== */
html {
    scroll-behavior: smooth;
}

/* ===================================
   UTILIDADES
   ================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid var(--azul-claro);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   CSS SELECTIVO PARA GRADIENTES CORPORATIVOS
   Agregar al final de public/css/jornada-ia.css
   ================================== */

/* METODOLOGÍA - Iconos de los 4 pasos */
.process-step .w-20.h-20.rounded-2xl {
    background: linear-gradient(135deg, var(--azul-rey) 0%, rgb(23, 128, 226) 100%) !important;
}

.process-step:nth-child(even) .w-20.h-20.rounded-2xl {
    background: linear-gradient(135deg, var(--dorado) 30%, var(--dorado-oscuro) 120%) !important;
}

/* METODOLOGÍA - Números de pasos */
.process-step .step-number,
.process-step .w-12.h-12.rounded-full {
    background: linear-gradient(135deg, var(--dorado) 30%, var(--dorado-oscuro) 120%) !important;
    color: var(--azul-rey) !important;
    font-weight: 700 !important;
}

/* CARACTERÍSTICAS - Iconos principales */
.feature-card .w-20.h-20.rounded-2xl {
    background: linear-gradient(135deg, var(--azul-rey) 0%, rgb(23, 128, 226) 100%) !important;
}

.feature-card:nth-child(even) .w-20.h-20.rounded-2xl {
    background: linear-gradient(135deg, var(--dorado) 30%, var(--dorado-oscuro) 120%) !important;
}

/* GUÍA DE USO - Si existe */
.guide-step .w-20.h-20.rounded-2xl {
    background: linear-gradient(135deg, var(--azul-rey) 0%, rgb(23, 128, 226) 100%) !important;
}

.guide-step:nth-child(even) .w-20.h-20.rounded-2xl {
    background: linear-gradient(135deg, var(--dorado) 30%, var(--dorado-oscuro) 120%) !important;
}

.guide-step .w-12.h-12.rounded-full {
    background: linear-gradient(135deg, var(--dorado) 30%, var(--dorado-oscuro) 120%) !important;
    color: var(--azul-rey) !important;
    font-weight: 700 !important;
}

/* ===================================
   EXCLUSIONES ESPECÍFICAS
   ================================== */

/* NO cambiar logos IA */
.bg-gray-200 {
    background: #e5e7eb !important;
}

/* NO cambiar hero sections existentes */
.hero-float .w-12.h-12,
.hero-float .w-16.h-16,
.hero-float .rounded-full {
    /* Mantener sus estilos actuales */
}

/* NO cambiar tags "Ideal para" */
.bg-gray-200[style*="color: var(--azul-rey)"] {
    background: #e5e7eb !important;
}

/* ===================================
   EFECTOS HOVER MEJORADOS
   ================================== */

.process-step .w-20.h-20.rounded-2xl:hover,
.feature-card .w-20.h-20.rounded-2xl:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 203, 87, 0.4);
    transition: all 0.3s ease;
}

.process-step .step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 203, 87, 0.5);
}

/* SOLO logos grandes de la sección de herramientas en blanco */
.py-20.bg-white .card-hover img[src*="logos/"] {
    filter: brightness(0) invert(1);
}

/* Hero section pequeños: mantener logos a color + fondos blancos */
.hero-float img[src*="logos/"] {
    filter: none !important;
}

.hero-float .w-12.h-12.rounded-xl {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}