/* ============================================
   CALENDARIO COLOMBIA - PALETA OPTIMIZADA
   Mejor accesibilidad y comodidad visual
   ============================================ */

:root {
    /* PALETA PRINCIPAL - Colores suavizados */
    /* Amarillos cálidos menos saturados */
    --colombia-yellow: #F4D03F;
    --colombia-yellow-light: #F9E79F;
    --colombia-yellow-dark: #D4AC0D;
    
    /* Azules modernizados */
    --colombia-blue: #1E4D8C;
    --colombia-blue-light: #3498DB;
    --colombia-blue-dark: #154360;
    
    /* Rojos terracota (menos agresivos) */
    --colombia-red: #C0392B;
    --colombia-red-light: #E6B0AA;
    --colombia-red-dark: #922B21;
    
    /* Colores de apoyo */
    --bg-cream: #FEF9E7;
    --white: #FFFFFF;
    --gray-neutral: #5D6D7E;
    --gray-light: #EAECEE;
    --gray-medium: #D5D8DC;
    --gray-dark: #5D6D7E;
    
    /* Colores de estado */
    --today-green: #27AE60;
    --today-green-light: #ABEBC6;
    --today-green-dark: #1E8449;
    --bridge-orange: #E67E22;
    --bridge-orange-light: #F5B041;
    --bridge-orange-dark: #BA4A00;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(30, 77, 140, 0.15);
    --shadow-md: 0 4px 12px rgba(30, 77, 140, 0.15);
    --shadow-lg: 0 8px 24px rgba(30, 77, 140, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--colombia-yellow-light) 0%, var(--bg-cream) 50%, var(--colombia-blue-light) 100%);
    min-height: 100vh;
    padding: 10px;
    line-height: 1.6;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-x: hidden;
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
}

/* ============================================
   SKIP LINK (ACCESSIBILITY)
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--colombia-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   HEADER PRINCIPAL: Reloj | Título | Idioma
   ============================================ */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-image: url('../../assets/images/colombia-banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 200px;
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.header-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    z-index: 1;
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.header-center h1 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    margin: 0;
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-top: 5px;
    opacity: 0.95;
}

.header-right {
    display: flex;
    align-items: center;
    z-index: 1;
    flex: 0 0 auto;
}

/* Reloj compacto */
.clock-compact-new {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--colombia-blue);
}

.clock-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.clock-label-compact {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--colombia-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clock-time-compact {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--colombia-red);
    font-family: 'Courier New', monospace;
}

.clock-divider-compact {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, var(--colombia-yellow), transparent);
}

/* Botón de inicio arriba del reloj */
.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--colombia-blue);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--colombia-blue);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.home-btn:hover {
    background: var(--colombia-blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.home-icon {
    font-size: 0.9rem;
}

.home-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selector de idioma */
.language-selector-wrapper {
    position: relative;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 10px 16px;
    border: 2px solid var(--colombia-red);
    border-radius: 20px;
    background: var(--white);
    color: var(--colombia-blue);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background: rgba(206, 17, 38, 0.1);
}

.lang-toggle-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-arrow {
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 2px solid var(--colombia-blue);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: var(--white);
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: var(--colombia-yellow-light);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--colombia-blue-dark);
}

.lang-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--colombia-red);
    background: var(--colombia-yellow-light);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        padding: 12px 15px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .clock-compact-new {
        padding: 6px 10px;
    }
    
    .clock-time-compact {
        font-size: 0.75rem;
    }
    
    .home-btn {
        margin-bottom: 4px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .home-text {
        display: none;
    }
    
    .home-icon {
        font-size: 1rem;
    }
}

/* ============================================
   CONTROLES DEL CALENDARIO
   ============================================ */
.calendar-controls-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.calendar-controls-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(192, 57, 43, 0.3); /* Overlay rojo sutil */
    pointer-events: none;
}

.calendar-controls-new > * {
    position: relative;
    z-index: 1;
}

.controls-main-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.year-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.year-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--colombia-blue);
    border-radius: 50%;
    background: var(--white);
    color: var(--colombia-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.year-nav-btn:hover {
    background: var(--colombia-blue);
    color: var(--white);
    transform: scale(1.1);
}

.year-nav-btn svg {
    width: 18px;
    height: 18px;
}

.year-and-today {
    display: flex;
    align-items: center;
    gap: 8px;
}

#yearSelector {
    padding: 8px 15px;
    border: 2px solid var(--colombia-red);
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--white);
    color: var(--colombia-blue);
    cursor: pointer;
    min-width: 90px;
    text-align: center;
}

.btn-today {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 2px solid var(--colombia-red);
    border-radius: 20px;
    background: var(--white);
    color: var(--colombia-red);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-today:hover {
    background: var(--colombia-red);
    color: var(--white);
}

.btn-today svg {
    width: 16px;
    height: 16px;
}

.view-toggle-wrapper {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--colombia-red);
    border-radius: 20px;
    background: var(--white);
    color: var(--colombia-red);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(206, 17, 38, 0.1);
}

.view-btn.active {
    background: var(--colombia-red);
    color: var(--white);
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

.legend-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legend-item-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.3);
}

.legend-marker {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .controls-main-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .year-nav-wrapper {
        order: 1;
    }
    
    .view-toggle-wrapper {
        order: 2;
    }
    
    .view-btn span {
        display: none;
    }
    
    .btn-today span {
        display: none;
    }
    
    .legend-row {
        gap: 8px;
    }
    
    .legend-item-compact {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ============================================
   CELDAS DEL CALENDARIO
   ============================================ */
.month-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-top: 4px solid var(--colombia-yellow);
    min-width: 0;
    overflow: hidden;
}

.month-header {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--colombia-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--colombia-yellow);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
}

.day-header {
    text-align: center;
    font-weight: 700;
    color: var(--colombia-red);
    font-size: 0.7rem;
    padding: 3px 1px;
    text-transform: uppercase;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-cell:hover {
    background: var(--colombia-yellow-light);
    border-color: var(--colombia-yellow-dark);
    transform: scale(1.05);
    z-index: 10;
}

.day-cell.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.day-cell.empty:hover {
    transform: none;
}

.day-cell.weekend {
    background: linear-gradient(135deg, var(--colombia-yellow-light) 0%, var(--colombia-yellow) 100%);
    color: var(--colombia-blue-dark);
    font-weight: 600;
}

.day-cell.holiday {
    background: linear-gradient(135deg, var(--colombia-red-light) 0%, var(--colombia-red) 100%);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.day-cell.holiday:hover {
    background: var(--colombia-red-dark);
}

.day-cell.today {
    background: var(--today-green);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 0 0 2px var(--colombia-yellow), var(--shadow-md);
    animation: pulse 2s infinite;
}

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

.day-cell.holiday::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--colombia-yellow);
    border-radius: 50%;
}

@media (max-width: 480px) {
    .day-cell {
        font-size: 0.75rem;
        min-height: 24px;
    }
    
    .day-header {
        font-size: 0.6rem;
    }
    
    .month-card {
        padding: 8px;
    }
}

/* ============================================
   VISTA ANUAL
   ============================================ */
.annual-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 15px;
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .annual-view {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .annual-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .annual-view {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1401px) {
    .annual-view {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ============================================
   VISTA MENSUAL
   ============================================ */
.monthly-view {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
    flex: 1;
}

.monthly-view .month-card {
    max-width: 100%;
    padding: 25px;
    border-top-width: 6px;
}

.monthly-view .month-header {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.monthly-view .month-grid {
    gap: 8px;
}

.monthly-view .day-header {
    font-size: 1rem;
    padding: 10px 5px;
}

.monthly-view .day-cell {
    font-size: 1.3rem;
    min-height: 50px;
    border-radius: 10px;
}

.month-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.month-navigation button {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid var(--colombia-blue);
    border-radius: 25px;
    background: var(--white);
    color: var(--colombia-blue);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.month-navigation button:hover {
    background: var(--colombia-blue);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .monthly-view {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .monthly-view .month-card {
        padding: 15px;
        margin: 0;
        max-width: 100%;
    }
    
    .monthly-view .month-header {
        font-size: 1.3rem;
    }
    
    .monthly-view .month-grid {
        gap: 3px;
    }
    
    .monthly-view .day-header {
        font-size: 0.75rem;
        padding: 5px 2px;
    }
    
    .monthly-view .day-cell {
        font-size: 0.9rem;
        min-height: 35px;
        min-width: 0;
    }
    
    .month-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .month-navigation button {
        width: 100%;
    }
}

/* ============================================
   MARKERS DE COLORES
   ============================================ */
.holiday-marker-bg {
    background: linear-gradient(135deg, var(--colombia-red-light) 0%, var(--colombia-red) 100%);
}

.weekend-marker-bg {
    background: linear-gradient(135deg, var(--colombia-yellow-light) 0%, var(--colombia-yellow) 100%);
}

.today-marker-bg {
    background: var(--today-green);
}

.bridge-marker-bg {
    background: linear-gradient(135deg, var(--bridge-orange-light) 0%, var(--bridge-orange) 100%);
}

/* ============================================
   LEYENDA DEL FOOTER
   ============================================ */
.footer-top {
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    padding: 25px 20px;
    border-top: 3px solid var(--colombia-red);
}

.legend-full {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.legend-full .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--colombia-blue-dark);
    background: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.legend-full .legend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.legend-full .legend-item:nth-child(1) {
    border-left-color: var(--colombia-red);
}

.legend-full .legend-item:nth-child(2) {
    border-left-color: var(--colombia-yellow);
}

.legend-full .legend-item:nth-child(3) {
    border-left-color: var(--today-green);
}

.legend-full .legend-item:nth-child(4) {
    border-left-color: var(--bridge-orange);
}

@media (max-width: 768px) {
    .legend-full {
        gap: 10px;
    }
    
    .legend-full .legend-item {
        font-size: 0.85rem;
        padding: 10px 16px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        padding: 20px 15px;
    }
    
    .legend-full {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .legend-full .legend-item {
        justify-content: flex-start;
        font-size: 0.9rem;
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .legend-marker {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 20px;
    background: var(--white);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-info {
    text-align: left;
}

.footer-main {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--colombia-blue);
    margin-bottom: 5px;
}

.footer-description {
    font-size: 0.85rem;
    color: var(--gray-dark);
    max-width: 300px;
    line-height: 1.4;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--colombia-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--colombia-red);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--colombia-red);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--colombia-blue);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--colombia-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   DONATION SECTION
   ============================================ */

.donation-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-message {
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.9;
    font-style: italic;
}

.donation-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFDD00 0%, #FFAA00 100%);
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 170, 0, 0.3);
    width: fit-content;
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.5);
    background: linear-gradient(135deg, #FFEE33 0%, #FFBB33 100%);
}

.crypto-addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.crypto-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

.crypto-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.crypto-name {
    font-weight: 700;
    color: #FFD700;
}

.crypto-address {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    opacity: 0.8;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-hint {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-left: 5px;
}

/* Toast notification for copy */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.footer-bottom {
    background: var(--colombia-blue);
    color: var(--white);
    padding: 15px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-made {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-navigation {
        align-items: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   PUBLICIDAD
   ============================================ */
.ad-container {
    margin: 15px auto;
    text-align: center;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--colombia-blue);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    position: relative;
    overflow: hidden;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(244, 208, 63, 0.1) 10px,
        rgba(244, 208, 63, 0.1) 20px
    );
}

.ad-label {
    background: var(--colombia-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--gray-dark);
    opacity: 0.6;
}

.ad-content svg {
    opacity: 0.5;
}

.ad-content p {
    font-size: 0.8rem;
    font-weight: 500;
}

.ad-sidebar-right {
    width: 300px;
    min-height: 600px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.ad-footer {
    max-width: 728px;
    min-height: 90px;
    margin: 20px auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .ad-sidebar-right {
        display: none !important;
    }
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 20px;
    flex: 1;
}

#main-content {
    min-width: 0;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
select:focus-visible,
.day-cell:focus-visible,
a:focus-visible {
    outline: 3px solid var(--colombia-yellow);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
select:focus:not(:focus-visible),
.day-cell:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   ORIENTACIÓN HORIZONTAL
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .annual-view {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================
   MODO OSCURO / DARK MODE
   ============================================ */

/* Botón toggle de modo oscuro */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 10px 16px;
    border: 2px solid var(--colombia-yellow);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--colombia-blue);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.dark-mode-toggle:hover {
    background: var(--colombia-yellow);
    transform: scale(1.05);
}

.dark-mode-icon {
    font-size: 1.1rem;
}

.dark-mode-text {
    display: inline;
}

@media (max-width: 400px) {
    .lang-toggle-btn span,
    .dark-mode-text {
        display: none;
    }
}

/* Variables y estilos para modo oscuro */
body.dark-mode {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.dark-mode .container {
    background: #1e1e1e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .header-main {
    background: linear-gradient(180deg, 
        rgba(244, 208, 63, 0.9) 0%, 
        rgba(244, 208, 63, 0.9) 50%, 
        rgba(30, 77, 140, 0.95) 50%, 
        rgba(30, 77, 140, 0.95) 75%, 
        rgba(192, 57, 43, 0.95) 75%, 
        rgba(192, 57, 43, 0.95) 100%);
}

body.dark-mode .calendar-controls-new::before {
    background: rgba(192, 57, 43, 0.6);
}

body.dark-mode .month-card {
    background: #2d2d2d;
    border-top-color: var(--colombia-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .month-header {
    color: var(--colombia-yellow);
    border-bottom-color: var(--colombia-yellow);
}

body.dark-mode .day-header {
    color: var(--colombia-red-light);
}

body.dark-mode .day-cell {
    color: #e0e0e0;
}

body.dark-mode .day-cell:hover {
    background: rgba(244, 208, 63, 0.2);
    border-color: var(--colombia-yellow);
}

body.dark-mode .day-cell.weekend {
    background: linear-gradient(135deg, rgba(249, 231, 159, 0.3) 0%, rgba(244, 208, 63, 0.4) 100%);
    color: #f0f0f0;
}

body.dark-mode .day-cell.holiday {
    background: linear-gradient(135deg, rgba(230, 176, 170, 0.8) 0%, rgba(192, 57, 43, 0.9) 100%);
}

body.dark-mode .day-cell.today {
    background: var(--today-green);
    box-shadow: 0 0 0 2px var(--colombia-yellow), 0 0 15px rgba(39, 174, 96, 0.5);
}

body.dark-mode .footer-top {
    background: linear-gradient(180deg, #2d2d2d 0%, #1e1e1e 100%);
    border-top-color: var(--colombia-red);
}

body.dark-mode .legend-full .legend-item {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .footer-content {
    background: #1e1e1e;
}

body.dark-mode .footer-main {
    color: var(--colombia-yellow);
}

body.dark-mode .footer-description {
    color: #b0b0b0;
}

body.dark-mode .footer-links a {
    color: var(--colombia-yellow-light);
}

body.dark-mode .social-links a {
    background: #2d2d2d;
    color: var(--colombia-yellow);
}

body.dark-mode .social-links a:hover {
    background: var(--colombia-yellow);
    color: #1e1e1e;
}

body.dark-mode .ad-placeholder {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-color: var(--colombia-blue-light);
}

body.dark-mode .ad-placeholder::before {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(244, 208, 63, 0.05) 10px,
        rgba(244, 208, 63, 0.05) 20px
    );
}

body.dark-mode .clock-compact-new {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--colombia-yellow);
}

body.dark-mode .clock-label-compact {
    color: var(--colombia-yellow);
}

body.dark-mode .clock-time-compact {
    color: var(--colombia-red-light);
}

body.dark-mode .home-btn {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--colombia-yellow);
    color: var(--colombia-yellow);
}

body.dark-mode .home-btn:hover {
    background: var(--colombia-yellow);
    color: #1e1e1e;
}

body.dark-mode .lang-toggle-btn {
    background: rgba(30, 30, 30, 0.95);
    color: var(--colombia-yellow);
    border-color: var(--colombia-yellow);
}

body.dark-mode .lang-dropdown {
    background: #2d2d2d;
    border-color: var(--colombia-yellow);
}

body.dark-mode .lang-option {
    background: #2d2d2d;
}

body.dark-mode .lang-option:hover {
    background: rgba(244, 208, 63, 0.2);
}

body.dark-mode .lang-name {
    color: #e0e0e0;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(30, 30, 30, 0.95);
    color: var(--colombia-yellow);
    border-color: var(--colombia-yellow);
}

body.dark-mode .year-nav-wrapper,
body.dark-mode .view-toggle-wrapper {
    background: rgba(30, 30, 30, 0.95);
}

body.dark-mode .year-nav-btn {
    background: #2d2d2d;
    color: var(--colombia-yellow);
    border-color: var(--colombia-yellow);
}

body.dark-mode .year-nav-btn:hover {
    background: var(--colombia-yellow);
    color: #1e1e1e;
}

body.dark-mode #yearSelector {
    background: #2d2d2d;
    color: var(--colombia-yellow);
    border-color: var(--colombia-red);
}

body.dark-mode .btn-today {
    background: #2d2d2d;
    color: var(--colombia-red-light);
    border-color: var(--colombia-red);
}

body.dark-mode .btn-today:hover {
    background: var(--colombia-red);
    color: #fff;
}

body.dark-mode .view-btn {
    background: #2d2d2d;
    color: var(--colombia-red-light);
    border-color: var(--colombia-red);
}

body.dark-mode .view-btn.active {
    background: var(--colombia-red);
    color: #fff;
}

body.dark-mode .legend-item-compact {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* Transiciones suaves */
body, .container, .month-card, .day-cell, .footer-content, 
.clock-compact-new, .lang-toggle-btn, .year-nav-wrapper, 
.view-toggle-wrapper, .legend-item-compact {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Soporte para preferencias del sistema */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    }
}

/* ============================================
   FIX PARA VISTA MENSUAL EN MÓVIL
   ============================================ */
@media (max-width: 480px) {
    .main-layout {
        padding: 10px;
        overflow-x: hidden;
    }
    
    #main-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .calendar-container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Prevenir scroll horizontal en móvil */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* ============================================
   COOKIE BANNER - GDPR/LGPD COMPLIANCE
   Estilo acorde al landing page principal
   ============================================ */

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    width: 90%;
    max-width: 900px;
    background: white;
    color: #333;
    padding: 25px 30px;
    z-index: 10000;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#cookie-banner:hover {
    border-color: var(--colombia-yellow, #F4D03F);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

.cookie-message strong {
    color: var(--colombia-blue, #1E4D8C);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--colombia-yellow, #F4D03F) 0%, #FFE135 100%);
    color: var(--colombia-blue, #1E4D8C);
    border: 2px solid transparent;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #FFE135 0%, #FFF570 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
    border-color: var(--colombia-blue, #1E4D8C);
}

.cookie-btn-reject {
    background: white;
    color: var(--colombia-blue, #1E4D8C);
    border: 2px solid #ddd;
}

.cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: var(--colombia-blue, #1E4D8C);
    transform: translateY(-2px);
}

.cookie-link {
    color: var(--colombia-blue, #1E4D8C);
    text-decoration: underline;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.cookie-link:hover {
    opacity: 1;
    color: var(--colombia-blue-dark, #003893);
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        bottom: 10px;
        width: 95%;
        padding: 20px 25px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-message {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

/* Modo oscuro */
body.dark-mode #cookie-banner {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: rgba(244, 208, 63, 0.3);
}

body.dark-mode #cookie-banner:hover {
    border-color: var(--colombia-yellow, #F4D03F);
}

body.dark-mode .cookie-message {
    color: #b0b0b0;
}

body.dark-mode .cookie-message strong {
    color: var(--colombia-yellow, #F4D03F);
}

body.dark-mode .cookie-btn-reject {
    background: #2d2d2d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .cookie-btn-reject:hover {
    background: #3d3d3d;
    border-color: var(--colombia-yellow, #F4D03F);
}

body.dark-mode .cookie-link {
    color: var(--colombia-yellow, #F4D03F);
}
