/* ===========================
   UMBUSK CSS CONSOLIDADO FINAL
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0f;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(200, 200, 255, 0.9);
    --accent: rgba(255, 255, 255, 0.1);
}

/* ===========================
   ESTILOS BASE DEL BODY
   =========================== */
body {
    font-family: 'Helvetica Neue', sans-serif;
    background: radial-gradient(ellipse at center, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    cursor: default;
}

/* Body para HOME específicamente */
body.home-page {
    overflow-y: auto !important;
    min-height: 200vh;
    position: relative;
    cursor: crosshair;
}

/* ===========================
   CANVAS DEL COSMOS
   =========================== */
#cosmos {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 1;
    animation: fadeIn 4s ease forwards;
    z-index: 0;
    pointer-events: none;
}

/* Canvas interactivo SOLO en home */
body.home-page #cosmos {
    pointer-events: auto !important;
    z-index: 1;
}

/* Canvas decorativo en otras páginas */
body.workflow-page #cosmos,
body.design-page #cosmos,
body.politicas-page #cosmos,
body.experiencia-page #cosmos {
    pointer-events: none !important;
    opacity: 0.2;
    z-index: -1;
}

/* Canvas de partículas específicas */
#particles-canvas,
#particles-canvas-sepia {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

/* ===========================
   WRAPPER Y CONTENIDO PRINCIPAL
   =========================== */
.main-wrapper {
    position: relative;
    min-height: 100vh;
    z-index: 10;
}

.main-content,
.main-container {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 200px 40px 40px;
}

/* ===========================
   HEADER Y LOGO
   =========================== */
.header {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    width: auto;
    height: 60px;
    display: block;
}

.main-logo:hover {
    opacity: 0.5;
}

.umbusk-watermark {
    font-size: 14px;
    opacity: 1;
    letter-spacing: 3px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 200;
    transition: opacity 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

/* ===========================
   TICKER DE NAVEGACIÓN
   =========================== */
.ticker-container {
    position: relative;
    width: 33.33vw; /* un tercio del ancho de la pantalla */
    left: 50%;
    top: 145px;
    height: 37px;           /* ← alto exacto del rectángulo */
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    overflow: hidden;
    z-index: 500;
    backdrop-filter: blur(10px);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    align-self: center; /* Centrar contenido */
}

/* ===== HOVER PARA PAUSAR TICKER ===== */
.ticker-wrapper:hover .ticker-content,
.ticker-container:hover .ticker-content {
    animation-play-state: paused !important;
}

/* Ticker en páginas con header secundario */
.experiencia-page .ticker-container,
.workflow-page .ticker-container {
    z-index: 500;
}

.ticker-content {
    display: flex;
    align-items: center;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    padding-left: 0;  /* Sin padding inicial */
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Estilos para los items de navegación en el ticker */
.ticker-nav-item {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
}

.ticker-nav-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.ticker-nav-item a:hover {
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Sistema bilingüe para el ticker */
.ticker-nav-item .en { 
    display: none; 
}

body.en .ticker-nav-item .es { 
    display: none; 
}

body.en .ticker-nav-item .en { 
    display: inline; 
}

.ticker-separator {
    width: 10px;
    height: 10px;
    margin: 0 20px;
}


/* ===== TICKER CENTRADO EN PANTALLAS GRANDES ===== */
@media (min-width: 1024px) {
/* TICKER CENTRADO Y LIMITADO */
    .ticker-wrapper {
        position: relative !important;        
        width: 50% !important; /* Exactamente 1/2 */
/*         max-width: 600px !important; Límite máximo */
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 auto !important;
    }
    
    /* Asegurar que el contenido interno también respete el ancho */
    .ticker-wrapper .ticker-content {
        width: 100% !important;
    }
}

/* ===========================
   TÍTULOS DE SECCIÓN
   =========================== */
.workflow-title-section,
.experiencia-title-section {
    text-align: center;
    margin-top: 200px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.workflow-title-section h1,
.experiencia-title-section h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #fff;
}

.workflow-title-section p,
.experiencia-title-section p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.6;
}

/* ===========================
   PÁGINAS ESPECÍFICAS: HOME
   =========================== */
body.home-page .dialogue-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    z-index: 10;
    pointer-events: none;
}

body.home-page #dialogue-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: none;
}

.dialogue-line {
    opacity: 0;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    animation: fadeInUp 3s ease forwards;
    padding: 10px 20px;
    border-radius: 5px;
    pointer-events: auto;
}

.dialogue-line.voice-1 {
    align-self: flex-start;
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.dialogue-line.voice-2 {
    align-self: flex-end;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
    color: var(--text-secondary);
    background: rgba(200, 200, 255, 0.03);
    border-right: 2px solid rgba(200, 200, 255, 0.1);
}

/* Botones de modo cosmos */
.cosmos-mode-selector {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 50;
}

.mode-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', sans-serif;
    backdrop-filter: blur(10px);
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mode-info-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mode-info-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mode-info-icon svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.6);
}

.mode-info-panel {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mode-info-panel.active {
    opacity: 1;
    visibility: visible;
}

.mode-info-bubble {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    position: relative;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.mode-info-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ===========================
   PÁGINAS ESPECÍFICAS: WORKFLOW
   =========================== */
.workflow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.connector-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent,
        rgba(59, 130, 246, 0.3),
        rgba(59, 130, 246, 0.5),
        rgba(59, 130, 246, 0.3),
        transparent
    );
    transform: translateX(-50%);
    z-index: 0;
}

.stage {
    position: relative;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.stage:nth-child(1) { animation-delay: 0.1s; }
.stage:nth-child(2) { animation-delay: 0.2s; }
.stage:nth-child(3) { animation-delay: 0.3s; }
.stage:nth-child(4) { animation-delay: 0.4s; }
.stage:nth-child(5) { animation-delay: 0.5s; }

.stage-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stage-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.stage-number {
    position: absolute;
    left: -60px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.stage-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 400;
    color: #fff;
}

.stage-subtitle {
    font-size: 18px;
    color: #3b82f6;
    margin-bottom: 10px;
}

.stage-description {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.stage-details {
    list-style: none;
    padding-left: 0;
}

.stage-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.stage-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.process-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 80px;
    padding: 0 20px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: #3b82f6;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
}

.feature p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Mouse gradient */
.mouse-gradient,
.mouse-gradient-sepia {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
    z-index: 5;
    transition: transform 0.2s ease-out;
}

.mouse-gradient-sepia {
    background: radial-gradient(circle, rgba(160, 130, 109, 0.1) 0%, transparent 70%);
}

/* ===========================
   PÁGINAS ESPECÍFICAS: EXPERIENCIA
   =========================== */
body.experiencia-page {
    background: linear-gradient(
        180deg,
        #1a1a1f 0%,
        #141418 15%,
        #0f0f12 30%,
        #0a0a0d 50%,
        #050507 75%,
        #000000 100%
    );
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    cursor: default !important;
}

.strata-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 80px;
    z-index: 10;
}

.stratum {
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: emerge 1s ease forwards;
}

.stratum:nth-child(1) { animation-delay: 0.5s; }
.stratum:nth-child(2) { animation-delay: 0.7s; }
.stratum:nth-child(3) { animation-delay: 0.9s; }
.stratum:nth-child(4) { animation-delay: 1.1s; }
.stratum:nth-child(5) { animation-delay: 1.3s; }
.stratum:nth-child(6) { animation-delay: 1.5s; }
.stratum:nth-child(7) { animation-delay: 1.7s; }
.stratum:nth-child(8) { animation-delay: 1.9s; }

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 30px;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-thumbnail {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.project-thumbnail:hover {
    transform: scale(1.05);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(0.8);
    transition: filter 0.3s ease;
}

.project-thumbnail:hover img {
    filter: sepia(0%) contrast(1);
}

.project-content {
    flex: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Helvetica Neue', sans-serif;
}

.project-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.project-icons {
    display: flex;
    gap: 10px;
}

.project-history-icon,
.tech-details-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-history-icon:hover,
.tech-details-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.project-history-icon svg,
.tech-details-icon svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.6);
}

.company-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85em;
    font-family: 'Helvetica Neue', sans-serif;
}

.history-panel,
.tech-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 20px;
}

.history-panel.active {
    max-height: 500px;
    overflow-y: auto;
}

.tech-panel.active {
    max-height: 200px;
}

.history-content,
.tech-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.9em;
}

.history-section {
    margin-bottom: 20px;
}

.history-section:last-child {
    margin-bottom: 0;
}

.history-section h4 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 400;
}

.history-section p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tech-item {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.85em;
}

/* Modal de imagen */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===========================
   PÁGINAS ESPECÍFICAS: POLÍTICAS
   =========================== */
.policy-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 30px;
}

.policy-tab {
    padding: 10px 20px;
    text-align: center;
    background: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.policy-tab.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.policy-tab:hover {
    background: rgba(59, 130, 246, 0.05);
}

.policy-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.policy-content.active {
    display: block;
}

.policy-section {
    margin: 40px 0;
}

.policy-section h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 300;
}

.policy-section h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    font-weight: 400;
}

.policy-section ul {
    margin: 15px 0 15px 30px;
}

.policy-section li {
    margin: 8px 0;
    line-height: 1.6;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 3px solid #3b82f6;
}

/* ===========================
   HISTORIAL
   =========================== */
.history-trigger {
    position: fixed;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 31;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
}

.history-trigger:hover {
    color: rgba(255, 255, 255, 0.8);
}

.history-container {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(20px);
}

.history-container.active {
    display: block;
}

.history-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    background: none;
    border: none;
}

.history-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   NAVEGACIÓN Y LINKS
   =========================== */
.back-link-experiencia {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 100;
}

.back-link-experiencia a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.back-link-experiencia a:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Selector de idioma */
.lang-selector-home {
    position: fixed;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-selector-home:hover {
    color: rgba(255, 255, 255, 1);
}

.lang-selector-home a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.lang-selector-home a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Subrayado para ES activo */
.lang-selector-home.active-es a:first-child::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00a8ff;
}

/* Subrayado para EN activo */
.lang-selector-home.active-en a:last-child::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00a8ff;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: rgba(0, 0, 0, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 40px;
    margin-top: 100px;
    position: relative;
    z-index: 1000 !important;
    pointer-events: auto;
}

body.home-page .footer {
    margin-top: 100vh;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 200px;
    gap: 60px;
    align-items: start;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-family: 'Helvetica Neue', sans-serif;
}

.footer-info {
    line-height: 1.8;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', sans-serif;
}

.footer-info a {
    color: #4CAF50;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-info a:hover {
    opacity: 0.8;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-nav a:hover::after {
    width: 100%;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: block;
}

.qr-label {
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Helvetica Neue', sans-serif;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
}

/* ===========================
   SISTEMA DE IDIOMAS
   =========================== */
.lang-en,
.ticker-nav-item .en,
span.lang-en,
div.lang-en, 
p.lang-en, 
h1.lang-en, 
h2.lang-en, 
h3.lang-en, 
h4.lang-en {
    display: none !important;
}

.lang-es,
.ticker-nav-item .es,
span.lang-es,
div.lang-es,
p.lang-es,
h1.lang-es,
h2.lang-es,
h3.lang-es,
h4.lang-es {
    display: block !important;
}

span.lang-es,
span.ticker-nav-item .es {
    display: inline !important;
}

body.en .lang-es,
body.en .ticker-nav-item .es,
body.en span.lang-es,
body.en div.lang-es,
body.en p.lang-es,
body.en h1.lang-es,
body.en h2.lang-es,
body.en h3.lang-es,
body.en h4.lang-es {
    display: none !important;
}

body.en .lang-en,
body.en .ticker-nav-item .en,
body.en span.lang-en,
body.en div.lang-en,
body.en p.lang-en,
body.en h1.lang-en,
body.en h2.lang-en,
body.en h3.lang-en,
body.en h4.lang-en {
    display: block !important;
}

body.en span.lang-en,
body.en span.ticker-nav-item .en {
    display: inline !important;
}

/* ===========================
   OTROS ELEMENTOS
   =========================== */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 200;
}

.loading-indicator.active {
    opacity: 1;
    z-index: 20;
}

.pulse {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
    margin: 0 auto;
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes emerge {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .header {
        position: relative !important;
        top: 0 !important;
        width: 100%;
        z-index: 1000 !important;
        background: rgba(0, 0, 0, 0.95);
        padding-bottom: 5px;
    }
    
    .ticker-wrapper,
    .ticker-container {
        position: fixed !important;
        top: 90px !important;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        z-index: 999 !important;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .main-content,
    .main-container {
        padding-top: 150px;
    }
    
    .workflow-title-section,
    .experiencia-title-section {
        margin-top: 120px;
    }
    
    .cosmos-mode-selector {
        bottom: 20px !important;
        gap: 5px;
    }
    
    .history-trigger {
        top: 115px !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .stage-number {
        position: static;
        width: auto;
        height: auto;
        background: none;
        color: #3b82f6;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* ===========================
   CORRECCIONES FINALES
   =========================== */

/* 1. REDUCIR ESPACIADO DE TÍTULOS */
.workflow-title-section,
.experiencia-title-section {
    margin-top: 180px !important; /* Reducido de 200px */
    margin-bottom: 40px !important; /* Reducido de 60px */
}

/* Para las páginas de diseño, workflow y políticas específicamente */
body.diseno-page .workflow-title-section,
body.workflow-page .workflow-title-section,
body.politicas-page .workflow-title-section {
    margin-top: 160px !important; /* Aún menos espacio */
    margin-bottom: 30px !important;
}

/* 2. LAYOUT HORIZONTAL PARA WORKFLOW */
body.workflow-page .workflow-container {
    max-width: 1200px;
    padding: 40px 20px;
}

/* Cambiar de vertical a horizontal */
body.workflow-page .workflow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

/* Ocultar línea conectora en layout horizontal */
body.workflow-page .connector-line {
    display: none !important;
}

/* Ajustar stages para layout horizontal */
body.workflow-page .stage {
    flex: 0 1 calc(33.333% - 20px); /* 3 columnas */
    max-width: 350px;
    margin-bottom: 30px;
}

/* Para 5 elementos, hacer 3 arriba y 2 abajo */
body.workflow-page .stage:nth-child(4),
body.workflow-page .stage:nth-child(5) {
    flex: 0 1 calc(50% - 15px);
}

/* Ajustar número de stage para layout horizontal */
body.workflow-page .stage-number {
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: #3b82f6;
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 15px;
    text-align: center;
}

/* 3. LAYOUT HORIZONTAL PARA DISEÑO */
body.diseno-page .workflow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    padding: 40px 20px;
}

body.diseno-page .connector-line {
    display: none !important;
}

/* 3 servicios en horizontal */
body.diseno-page .stage {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 380px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

body.diseno-page .stage-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.diseno-page .stage-number {
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: #3b82f6;
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 15px;
    text-align: center;
}

/* 4. AJUSTAR CONTENEDOR PRINCIPAL */
.main-content,
.main-container {
    padding-top: 20px !important; /* Mucho menos padding superior */
}

/* 5. ASEGURAR QUE EL TICKER SEA VISIBLE */
.ticker-content {
    min-height: 20px; /* Altura mínima para debug */
}

/* 6. RESPONSIVE PARA TABLETS */
@media (max-width: 1024px) {
    body.workflow-page .stage,
    body.diseno-page .stage {
        flex: 0 1 calc(50% - 15px); /* 2 columnas en tablet */
    }
    
    body.workflow-page .stage:nth-child(5) {
        flex: 0 1 100%; /* Último elemento ancho completo */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 7. RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
    body.workflow-page .workflow-container,
    body.diseno-page .workflow-container {
        flex-direction: column;
    }
    
    body.workflow-page .stage,
    body.diseno-page .stage,
    body.workflow-page .stage:nth-child(4),
    body.workflow-page .stage:nth-child(5) {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .workflow-title-section,
    body.diseno-page .workflow-title-section,
    body.workflow-page .workflow-title-section,
    body.politicas-page .workflow-title-section {
        margin-top: 120px !important;
        margin-bottom: 30px !important;
    }
    
    .main-content,
    .main-container {
        padding-top: 10px !important;
    }
}

/* ===========================
   ALINEACIÓN HORIZONTAL PARA LAPTOPS
   =========================== */

/* DISEÑO: 3 cajas en una fila para laptops */
@media (min-width: 1024px) {
    body.diseno-page .workflow-container {
        display: flex;
        flex-wrap: nowrap; /* No wrap en laptops */
        gap: 20px;
        justify-content: center;
        align-items: stretch;
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }
    
    body.diseno-page .stage {
        flex: 1 1 33.333%; /* Distribuir equitativamente */
        max-width: none; /* Quitar límite de ancho */
        min-width: 300px; /* Ancho mínimo */
    }
}

/* WORKFLOW: 5 cajas en una fila para laptops */
@media (min-width: 1024px) {
    body.workflow-page .workflow-container {
        display: flex;
        flex-wrap: nowrap; /* No wrap en laptops */
        gap: 20px;
        justify-content: center;
        align-items: stretch;
        max-width: 1600px; /* Más ancho para 5 elementos */
        margin: 0 auto;
        padding: 40px 20px;
    }
    
    body.workflow-page .stage {
        flex: 1 1 20%; /* 5 elementos = 20% cada uno */
        max-width: none;
        min-width: 250px; /* Ancho mínimo más pequeño */
        margin-bottom: 0;
    }
    
    /* Resetear las reglas anteriores de 4to y 5to elemento */
    body.workflow-page .stage:nth-child(4),
    body.workflow-page .stage:nth-child(5) {
        flex: 1 1 20%; /* Igual que los demás */
    }
    
    /* Ajustar tamaño de fuente para que quepa mejor */
    body.workflow-page .stage-title {
        font-size: 20px;
    }
    
    body.workflow-page .stage-subtitle {
        font-size: 14px;
    }
    
    body.workflow-page .stage-description {
        font-size: 12px;
    }
    
    body.workflow-page .stage-details li {
        font-size: 13px;
    }
}

/* POLÍTICAS: 4 botones en una fila para laptops */
@media (min-width: 1024px) {
    body.politicas-page .policy-tabs {
        display: flex;
        flex-direction: row; /* Horizontal */
        flex-wrap: nowrap; /* No wrap */
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding-bottom: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    body.politicas-page .policy-tab {
        flex: 1 1 25%; /* 4 elementos = 25% cada uno */
        min-width: 200px;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* TABLETS: Permitir wrap */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Diseño: 2 columnas en tablet */
    body.diseno-page .workflow-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    body.diseno-page .stage {
        flex: 0 1 calc(50% - 10px);
    }
    
    /* Workflow: 3 arriba, 2 abajo en tablet */
    body.workflow-page .workflow-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    body.workflow-page .stage {
        flex: 0 1 calc(33.333% - 15px);
    }
    
    body.workflow-page .stage:nth-child(4),
    body.workflow-page .stage:nth-child(5) {
        flex: 0 1 calc(50% - 10px);
    }
    
    /* Políticas: 2x2 en tablet */
    body.politicas-page .policy-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    body.politicas-page .policy-tab {
        flex: 0 1 calc(50% - 5px);
    }
}

/* MÓVILES: Todo vertical */
@media (max-width: 767px) {
    body.diseno-page .workflow-container,
    body.workflow-page .workflow-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    body.diseno-page .stage,
    body.workflow-page .stage,
    body.workflow-page .stage:nth-child(4),
    body.workflow-page .stage:nth-child(5) {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    body.politicas-page .policy-tabs {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    body.politicas-page .policy-tab {
        width: 100%;
        max-width: 100%;
    }
}

<!-- ===================================
     SOLO CSS - MEJORAS RESPONSIVE MÓVILES
     =================================== -->

/* ===========================
   AJUSTES RESPONSIVE MÓVILES
   =========================== */

/* MÓVILES: Reorganizar layout superior */
@media (max-width: 768px) {
    
    /* 1. AJUSTE PARA "DIÁLOGOS GENERADOS" EN HOME */
    body.index-page .history-trigger {
        top: 130px !important; /* 10px debajo del ticker */
    }
    
    /* 2. TÍTULOS DE SECCIÓN 20PX DEBAJO DEL TICKER */
    .workflow-title-section,
    .experiencia-title-section {
        margin-top: 140px !important; /* ticker en 120px + 20px */
        margin-bottom: 30px !important;
    }
    
    /* 3. REORGANIZAR NAVEGACIÓN SUPERIOR EN SECCIONES */
    
    /* Selector de idioma - moverlo arriba a la derecha */
    body.workflow-page .lang-selector-home,
    body.experiencia-page .lang-selector-home,
    body.diseno-page .lang-selector-home,
    body.politicas-page .lang-selector-home {
        position: fixed !important;
        top: 35px !important;
        right: 20px !important;
        left: auto !important;
        z-index: 1002 !important;
    }
    
    /* Back link - mantenerlo arriba a la izquierda */
    body.workflow-page .back-link-experiencia,
    body.experiencia-page .back-link-experiencia,
    body.diseno-page .back-link-experiencia,
    body.politicas-page .back-link-experiencia {
        position: fixed !important;
        top: 35px !important;
        left: 20px !important;
        z-index: 1002 !important;
    }
    
    /* Header/Logo - centrarlo */
    body.workflow-page .header,
    body.experiencia-page .header,
    body.diseno-page .header,
    body.politicas-page .header {
        position: fixed !important;
        top: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1001 !important;
    }
    
    /* Ticker - posicionarlo debajo del header */
    body.workflow-page .ticker-container,
    body.experiencia-page .ticker-container,
    body.diseno-page .ticker-container,
    body.politicas-page .ticker-container {
        position: fixed !important;
        top: 100px !important; /* Debajo del logo */
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
        z-index: 1000 !important;
    }
    
    /* Ajustar tamaño de fuente para móviles */
    .back-link-experiencia a {
        font-size: 11px !important;
        padding: 5px;
    }
    
    .lang-selector-home {
        font-size: 11px !important;
    }
    
    /* Hacer el logo un poco más pequeño en móvil */
    .main-logo {
        height: 40px !important;
    }
    
    .umbusk-watermark {
        font-size: 11px !important;
        margin-top: 5px !important;
    }
}

/* TABLETS: Ajustes intermedios */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* En tablets, mantener layout similar a desktop pero más compacto */
    body.workflow-page .header,
    body.experiencia-page .header,
    body.diseno-page .header,
    body.politicas-page .header {
        top: 30px !important;
    }
    
    .workflow-title-section,
    .experiencia-title-section {
        margin-top: 160px !important;
    }
    
    /* Selector de idioma en su posición original */
    .lang-selector-home {
        top: 30px !important;
        right: 40px !important;
    }
    
    /* Back link en su posición original */
    .back-link-experiencia {
        top: 30px !important;
        left: 40px !important;
    }
}

/* DESKTOP: Mantener diseño original */
@media (min-width: 1025px) {
    
    /* Asegurar que en desktop todo esté en su lugar */
    body.workflow-page .header,
    body.experiencia-page .header,
    body.diseno-page .header,
    body.politicas-page .header {
        position: fixed;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .workflow-title-section,
    .experiencia-title-section {
        margin-top: 180px;
    }
    
    /* Back link mantiene su posición */
    .back-link-experiencia {
        position: fixed;
        top: 30px;
        left: 40px;
    }
    
    /* Selector de idioma mantiene su posición */
    .lang-selector-home {
        position: fixed;
        top: 30px;
        right: 40px;
    }
}

/* ===========================
   MEJORAS VISUALES MÓVILES
   =========================== */

@media (max-width: 768px) {
    
    /* Crear una barra superior semi-transparente para mejor legibilidad */
    body.workflow-page::before,
    body.experiencia-page::before,
    body.diseno-page::before,
    body.politicas-page::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 90px;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 70%,
            transparent 100%
        );
        z-index: 999;
        pointer-events: none;
    }
    
    /* Mejorar hover/touch en móviles */
    .back-link-experiencia a {
        padding: 10px;
        margin: -10px; /* Aumentar área táctil */
        display: inline-block;
    }
    
    .lang-selector-home a {
        padding: 10px 5px;
        margin: -10px -5px;
        display: inline-block;
    }
    
    /* Mejorar contraste */
    .back-link-experiencia a,
    .lang-selector-home,
    .lang-selector-home a {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .back-link-experiencia a:hover,
    .lang-selector-home a:hover {
        color: rgba(255, 255, 255, 1) !important;
    }
    
    /* Ajustar contenido principal para no quedar detrás del header fijo */
    .main-content,
    .main-container {
        padding-top: 150px !important; /* Espacio para header + ticker */
    }
}

/* ===========================
   ANIMACIONES SUAVES
   =========================== */

/* Transiciones suaves al cambiar de orientación */
.header,
.back-link-experiencia,
.lang-selector-home,
.ticker-container {
    transition: all 0.3s ease;
}

/* ===========================
   FIX PARA PÁGINA DE INICIO
   =========================== */

/* En la página de inicio, mantener el diseño original */
@media (max-width: 768px) {
    body.index-page .lang-selector-home {
        position: fixed !important;
        top: 30px !important;
        right: 20px !important;
        left: auto !important;
    }
    
    body.index-page .header {
        position: fixed !important;
        top: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px 20px;
        border-radius: 8px;
    }
    
    body.index-page .ticker-container {
        position: fixed !important;
        top: 100px !important;
        width: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ===========================
   AJUSTE FINAL DE Z-INDEX
   =========================== */

/* Asegurar orden correcto de capas */
.header { z-index: 1001 !important; }
.back-link-experiencia { z-index: 1002 !important; }
.lang-selector-home { z-index: 1002 !important; }
.ticker-container { z-index: 1000 !important; }
.history-trigger { z-index: 999 !important; }
#cosmos { z-index: 1 !important; }

<!-- =======================================
     CORRECCIÓN 1: ELIMINAR BOTÓN COMPARTIR
     ======================================= -->

<!-- OPCIÓN A: CSS (Agregar a style_experience.css) -->
<style>
/* OCULTAR COMPLETAMENTE EL BOTÓN DE COMPARTIR */
#share-dialogue,
.share-dialogue-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* También ocultar el modal de compartir por si acaso */
#share-modal,
.share-modal {
    display: none !important;
}
</style>

<!-- OPCIÓN B: JavaScript (Agregar a app.js) -->
<script>
// Eliminar completamente la funcionalidad de compartir
document.addEventListener('DOMContentLoaded', function() {
    // Eliminar el botón de compartir
    const shareBtn = document.getElementById('share-dialogue');
    if (shareBtn) {
        shareBtn.remove();
    }
    
    // Eliminar el modal de compartir
    const shareModal = document.getElementById('share-modal');
    if (shareModal) {
        shareModal.remove();
    }
});

// También comentar o eliminar estas líneas en displayDialogue() en app.js:
// Buscar y comentar/eliminar:
/*
// Mostrar botón de compartir
setTimeout(() => {
    if (shareBtn) {
        shareBtn.classList.add('show');
    }
}, 1000);
*/

// Y también comentar/eliminar:
/*
// Ocultar botón de compartir
if (shareBtn) {
    shareBtn.classList.remove('show');
}

<!-- =======================================
     CORRECCIÓN 2: ESTILOS DEL HISTORIAL
     ======================================= -->

<!-- Agregar estos estilos a style_experience.css -->
<style>
/* ESTILOS MEJORADOS PARA EL HISTORIAL DE DIÁLOGOS */

/* Contenedor principal del historial */
.history-container {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    max-height: 70vh;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.98),
        rgba(5, 5, 10, 0.98)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.history-container.active {
    display: block;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* Título del historial */
.history-container h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
}

/* Botón de cerrar */
.history-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    padding: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Mensaje cuando no hay historial */
.no-history {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 14px;
    padding: 40px 20px;
}

/* Contenedor de fechas */
.date-item {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

/* Header de fecha */
.date-header {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 10px;
}

.date-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.date-header.active {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

.date-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.date-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.date-header.active .date-arrow {
    transform: rotate(180deg);
}

/* Contenedor de diálogos */
.dialogues-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.dialogues-content.active {
    max-height: 1000px;
    padding: 0 10px;
}

/* Grupo de diálogo individual */
.dialogue-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dialogue-group:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Fila de diálogo */
.dialogue-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.dialogue-row:last-child {
    margin-bottom: 10px;
}

/* Label de voz (Claude/GPT) */
.voice-label {
    flex-shrink: 0;
    width: 80px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 2px;
    font-family: 'Helvetica Neue', sans-serif;
}

/* Colores específicos por voz */
.dialogue-row:first-child .voice-label {
    color: rgba(150, 150, 255, 0.8);
}

.dialogue-row:nth-child(2) .voice-label {
    color: rgba(255, 150, 150, 0.8);
}

/* Texto del diálogo */
.voice-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.7;
    font-family: Georgia, serif;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Bordes de color por voz */
.dialogue-row:first-child .voice-text {
    border-left-color: rgba(150, 150, 255, 0.3);
}

.dialogue-row:nth-child(2) .voice-text {
    border-left-color: rgba(255, 150, 150, 0.3);
}

/* Hover en texto */
.voice-text:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Acciones del diálogo */
.dialogue-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tiempo del diálogo */
.dialogue-time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 0.5px;
}

/* Botón de compartir en historial */
.share-history-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', sans-serif;
}

.share-history-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.share-history-btn svg {
    width: 12px;
    height: 12px;
}

/* Scrollbar personalizado */
.history-container::-webkit-scrollbar {
    width: 8px;
}

.history-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .history-container {
        width: 95%;
        padding: 20px 15px;
        top: 150px;
    }
    
    .dialogue-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .voice-label {
        width: auto;
        margin-bottom: 5px;
    }
    
    .voice-text {
        font-size: 13px;
    }
    
    .dialogue-group {
        padding: 15px;
    }
}

