/* ==========================================================================
   JEDSTION CRM - Stylesheet Redesign
   Branding: Neon Green (#CCFF00) & Deep Blue (#2B38CB)
   Typography: Barlow & Outfit
   ========================================================================== */

:root {
    --jedstion-blue: #2B38CB;
    --jedstion-neon: #CCFF00;
    --jedstion-bg-light: #ffffff; /* Blanco puro para modo claro */
    --jedstion-text-dark: #121212;
    --jedstion-text-muted: #536281;
    --jedstion-white: #ffffff;
}

/* Base Styles */
.jedstion-page {
    font-family: var(--font-text) !important;
    color: #e0e6ed;
    background-color: #000010; /* Darker background for dark mode */
    line-height: 1.8;
    font-size: 1.15rem; /* Increased base font size */
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



body.light-mode.jedstion-page {
    color: #000000 !important;
    background-color: #ffffff !important;
}

body.light-mode .jedstion-page {
    background-color: #ffffff !important;
}

/* Alternancia de logo circular según modo de tema */
.logo-light-mode { display: none; }
.logo-dark-mode  { display: block; margin: 0 auto; }

body.light-mode .logo-dark-mode  { display: none; }
body.light-mode .logo-light-mode { display: block; margin: 0 auto; }

/* Unificar fuente de la navbar con el resto del sitio */
.jedstion-page .navbar,
.jedstion-page .navbar * {
    font-family: var(--font-text) !important;
}

.jedstion-page h1, 
.jedstion-page h2, 
.jedstion-page h3 {
    font-family: var(--font-heading);
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

body.light-mode.jedstion-page h1,
body.light-mode.jedstion-page h2,
body.light-mode.jedstion-page h3,
body.light-mode.jedstion-page h4,
body.light-mode.jedstion-page .info-block h3,
body.light-mode.jedstion-page .contact-jedstion h3,
body.light-mode.jedstion-page .feature-item h4 {
    color: #3244F5 !important; /* Color Azul Nuestra Empresa */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #3244F5 !important;
    letter-spacing: -0.01em;
}

body.light-mode .section-blue h2 {
    color: #ffffff !important; /* This should stay white on blue background */
}

/* Centered Layouts */
.centered-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.jedstion-logo-center {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

body.light-mode .jedstion-logo-center {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05)); /* Sombras suaves, color natural */
}

/* Hero Section */
.hero-jedstion {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000010;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('../assets/hero_bg2.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

body.light-mode .hero-jedstion {
    background-color: #ffffff !important;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url('../assets/hero_bg2.png') !important;
    background-size: cover;
    background-position: center;
}

.hero-jedstion::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 6px;
    background: #e0e6ed;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero-jedstion .progress-indicator {
    position: absolute;
    bottom: 2rem;
    left: 10%;
    width: 50%;
    height: 6px;
    background: #ff4d4d;
    border-radius: 10px;
    z-index: 2;
}

.hero-jedstion .tagline {
    font-size: 1.6rem;
    color: var(--jedstion-text-muted);
    margin-top: 1.5rem;
    font-weight: 500;
    max-width: 800px;
}

/* Sections Style */
.section-padding {
    padding: 5rem 0 !important; /* Espacio reducido entre secciones */
}

.section-blue {
    background-color: var(--jedstion-blue);
    color: #ffffff;
    padding: 4rem 0; /* Espacio azul reducido */
}

.section-blue h2 {
    color: #ffffff;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body.light-mode .section-blue {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

body.light-mode .section-blue h2 {
    color: #3244F5 !important;
}

/* Blocks styling from capture */
.info-block {
    margin-bottom: 5rem; /* Increased spacing */
}

body.light-mode .info-block {
    background-color: #ffffff !important;
}

.info-block h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--jedstion-neon); /* Accent color on headings */
}

body.light-mode .info-block h3 {
    color: #3244F5 !important;
}

/* Responsive Feature List */
@media (min-width: 1150px) {
    .feature-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem 2rem;
        max-width: 1200px;
        margin: 5rem auto 0;
        padding: 0;
        list-style: none;
    }
    
    .feature-item {
        flex: 0 1 calc(33.333% - 2rem);
        min-width: 280px;
        box-sizing: border-box;
        text-align: left;
        background: rgba(255, 255, 255, 0.08);
        padding: 2.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    }

}

@media (max-width: 1150px) {
    .carousel-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin: 3rem 0 0;
        padding-bottom: 2rem; /* Espacio para dots */
    }

    .feature-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 0 !important;
        list-style: none;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
    }
    
    .feature-item {
        flex: 0 0 84% !important;
        margin: 0 8% !important;
        box-sizing: border-box;
        text-align: center !important; /* CENTRADO SOLICITADO */
        background: rgba(255, 255, 255, 0.08);
        padding: 2.5rem 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTRADO SOLICITADO */
    }

    .feature-item h4 {
        text-align: center !important;
        width: 100%;
        justify-content: center;
    }

    .feature-item ul {
        text-align: center !important;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .feature-item ul li {
        text-align: center !important;
        margin-bottom: 0.8rem;
        padding-left: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .feature-item ul li::before {
        content: '✔';
        position: static;
        display: inline-block;
        color: var(--accent);
    }

    .carousel-arrow {
        display: flex !important;
        position: absolute;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--accent);
        color: white;
        border: none;
        align-items: center;
        justify-content: center;
        z-index: 10;
        top: 50%;
        transform: translateY(-50%);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .carousel-arrow.prev { left: 0px; }
    .carousel-arrow.next { right: 0px; }
}

body.light-mode .feature-item {
    background: #ffffff;
    border: 1px solid rgba(43, 56, 203, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--jedstion-neon);
    background: rgba(255, 255, 255, 0.05);
}

body.light-mode .feature-item:hover {
    background: #ffffff;
    border-color: var(--jedstion-blue);
    box-shadow: 0 20px 40px rgba(43, 56, 203, 0.08);
}

.carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

@media (max-width: 1150px) {
    .carousel-dots {
        display: flex !important;
    }
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots span.active {
    background: #ffffff !important;
    transform: scale(1.2);
    opacity: 1 !important;
}

body.light-mode .carousel-dots span {
    background: rgba(43, 56, 203, 0.1);
}

body.light-mode .carousel-dots span.active {
    background: var(--jedstion-blue);
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

body.light-mode.jedstion-page .feature-item h4 {
    color: #3244F5 !important;
}

.feature-item ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.feature-item ul li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    opacity: 0.85;
    position: relative;
    padding-left: 1.5rem;
}

body.light-mode .feature-item ul li {
    color: #333333 !important;
    opacity: 1;
}

.feature-item ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1rem;
    top: 0.1rem;
}

body.light-mode .feature-item ul li::before {
    color: var(--accent);
}

/* Premium Card List for Intro */
.premium-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.premium-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter for dark mode */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

body.light-mode .premium-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
}

body.light-mode .premium-card:hover {
    background: #ffffff;
    border-color: var(--jedstion-blue);
    box-shadow: 0 15px 35px rgba(43, 56, 203, 0.08);
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: var(--jedstion-neon);
}

.premium-card i {
    color: var(--jedstion-neon);
    font-size: 1.4rem;
}

.premium-card p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
}

body.light-mode .premium-card p {
    color: var(--jedstion-text-dark);
}

/* Neon elements */
.neon-bullet {
    color: var(--jedstion-neon);
    margin-right: 0.5rem;
}

/* Philosophy adjustments */
.contact-jedstion {
    background: transparent;
    /* Reducimos 0.5rem adicionales al espaciado anterior */
    padding: 3.5rem 0;
    color: #ffffff;
    text-align: center;
}

body:not(.light-mode) .contact-jedstion {
    background: #000010;
}

body.light-mode .contact-jedstion {
    background: #ffffff;
}

.contact-jedstion h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.contact-jedstion p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-jedstion .circular-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-top: 0;
    opacity: 0.9;
    animation: rotate 20s linear infinite;
}

.contact-jedstion .logo-light-mode {
    width: 110px;
    height: 110px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Philosophy & Manifesto Refinement */
.philosophy-tagline {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 4rem;
    color: var(--jedstion-text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Garantizar el centrado */
}

body.light-mode .philosophy-tagline {
    color: #222222 !important;
}

body:not(.light-mode) .philosophy-tagline {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}

.philosophy-main-card {
    background: rgba(43, 56, 203, 0.05);
    border: 1px solid rgba(43, 56, 203, 0.1);
    border-radius: 40px;
    padding: 4rem 2rem;
    backdrop-filter: blur(10px);
}

body.light-mode .philosophy-main-card {
    background: transparent;
    box-shadow: none;
    border: none;
}

.philosophy-main-card h4 {
    font-size: 2.2rem; /* Un poco más grande para impacto */
    margin-bottom: 3rem;
    color: var(--jedstion-blue);
    text-align: center;
}

body:not(.light-mode) .philosophy-main-card h4 {
    color: var(--jedstion-neon);
}

/* Permitir que gradient-text funcione en el h4 sin ser sobreescrito */
/* Quitar transparencia tras eliminar degrading */
/* Visibilidad restaurada tras quitar degrade */
.philosophy-main-card h4.gradient-text {
    color: var(--jedstion-neon) !important;
    -webkit-text-fill-color: initial !important;
    font-size: clamp(2rem, 6vw, 2.8rem);
}

body.light-mode .philosophy-main-card h4.gradient-text,
body.light-mode .manifesto-title {
    color: #000000 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

.philosophy-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1150px) {
    .philosophy-cards-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 0 0 2rem 0 !important;
        margin: 0 !important;
        list-style: none;
        transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        width: 100%;
    }

    .phi-card {
        flex: 0 0 84% !important; /* Forzar ancho para que no se compriman */
        width: 84% !important;
        margin: 0 8% !important;
        text-align: center !important;
        align-items: center;
        justify-content: center;
        min-height: 250px;
    }
}

.phi-card {
    background: rgba(43, 56, 203, 0.03); /* Fondo azulado muy tenue */
    border: 1px solid rgba(43, 56, 203, 0.08);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.light-mode .phi-card {
    background: #ffffff;
    border: 1px solid rgba(43, 56, 203, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.phi-card:hover {
    transform: translateY(-10px);
    background: rgba(204, 255, 0, 0.05);
    border-color: var(--jedstion-neon);
    box-shadow: 0 15px 30px rgba(204, 255, 0, 0.1);
}

body.light-mode .phi-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: var(--jedstion-blue);
    box-shadow: 0 15px 40px rgba(43, 56, 203, 0.12);
}

.phi-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.phi-card p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Manifesto Section */
.manifesto {
    margin-top: 8rem;
    position: relative;
}

.hero-glow,
.jedstion-section::before,
.hero-jedstion::after {
    display: block;
}

body.light-mode .hero-glow,
body.light-mode .jedstion-section::before,
body.light-mode .hero-jedstion::after {
    display: none !important;
}

.manifesto-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(43, 56, 203, 0.1) 0%, rgba(0, 0, 16, 0.8) 100%);
    border-radius: 50px;
    border: 2px solid var(--accent); /* Volver al rojo corporativo */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    text-align: center; /* Centrar todo el contenido */
}

body.light-mode .manifesto-content {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 30px 70px rgba(43, 56, 203, 0.1);
}

.manifesto-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--jedstion-neon) !important;
}

body.light-mode .manifesto-title {
    color: #000000 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

.manifesto-text {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

body.light-mode .manifesto-text {
    color: #222222 !important;
    opacity: 1;
}

.manifesto-footer {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .manifesto-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.gradient-text {
    color: var(--jedstion-neon);
    font-size: 1.8rem;
    font-weight: 800;
}

body.light-mode .gradient-text {
    color: #000000 !important;
}

body.light-mode .manifesto-footer p.gradient-text {
    color: #000000 !important;
}

/* Texto final del manifiesto en verde sólido (sin degrade) */
.manifesto-footer p.gradient-text {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--jedstion-neon) !important;
    color: var(--jedstion-neon) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .philosophy-cards-container {
        grid-template-columns: 1fr;
    }
    
    .manifesto-content {
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }
    
    .gradient-text {
        font-size: 1.4rem;
    }
}

/* Footer Styling */
.footer {
    padding: 2rem 1rem 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000010;
}

body.light-mode .footer {
    background: #ffffff;
    border-top: 1px solid rgba(43, 56, 203, 0.05);
}

.footer .rights {
    font-size: 0.9rem;
    opacity: 0.6;
    color: var(--jedstion-white);
}

body.light-mode .footer .rights {
    color: var(--jedstion-text-dark);
}





body.light-mode .tagline {
    color: #444;
}

/* Specific adjustments for certain dark text elements in dark mode */
.highlight-text {
    line-height: 1.3;
}

body:not(.light-mode) .highlight-text {
    color: var(--jedstion-neon) !important;
}

body:not(.light-mode) .section-blue {
    background: var(--bg-main);
    border: none;
}

/* Unificar fondos finales para evitar cuadros/divisiones */
.jedstion-philosophy, .contact-jedstion, .footer {
    background-color: var(--bg-main) !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

body.light-mode .jedstion-philosophy,
body.light-mode .contact-jedstion, 
body.light-mode .footer {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Forzar simetría y eliminar separaciones */
.jedstion-philosophy {
    padding-bottom: 0 !important; /* Eliminar el exceso del contenedor de arriba */
}

.contact-jedstion {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.footer {
    padding-top: 0 !important; /* El espacio inferior del icono lo da el padding-bottom de arriba */
    padding-bottom: 2.5rem !important;
    border: none !important;
}

.footer, .contact-jedstion, .jedstion-philosophy {
    border-top: none !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .jedstion-intro-text p {
        text-align: center !important;
    }
}
