.WidgetTutiempo { width:288px; font-family:Verdana,Arial,Helvetica,sans-serif; color:#000000; }
            .WidgetTutiempo table { width: 100%; border-collapse: separate; border-spacing: 6px; }
            .TitDia, .TitMax, .TitMin, .TitVie { font-weight: bold; font-size: 14px; display: block; }
            .TxtMax { color:#E86F6F; font-weight: bold; }
            .TxtMin { color:#71B9F0; font-weight: bold; }
            .w-icon-img { width:60px; height:60px; vertical-align: middle; }
            #WidgetTutiempo{all:initial;*{all:unset;}}
#WidgetTutiempo{font-family:sans-serif,Arial,Helvetica;font-size:14px;}
#WidgetTutiempo p{margin:0;padding:5px; padding-left:0; padding-right:0;}
#WidgetTutiempo .header{clear:both;float:none;}
#WidgetTutiempo .header h2{margin:0;margin-top:10px;}
#WidgetTutiempo .header p{margin:0;}
#WidgetTutiempo .date{margin:0;padding-top:10px;padding-bottom:5px;clear:both;float:none;}
#WidgetTutiempo .daydata{clear:both;float:none;}
#WidgetTutiempo .it{line-height:25px; float:left; margin-right:20px;height:50px;white-space:nowrap;}
#WidgetTutiempo .it img{float:left;margin-right:10px;}
#WidgetTutiempo .wind{float:left; margin-right:20px;line-height:50px;height:50px;white-space:nowrap;}
#WidgetTutiempo .wind img{float:left;margin-right:10px;}
#WidgetTutiempo .oc{float:left; margin-right:20px;height:50px;}
#WidgetTutiempo .moon{line-height:25px;float:left; height:50px;white-space:nowrap;}
#WidgetTutiempo .moon img{float:left;margin-right:10px;}
#WidgetTutiempo .time{margin:0; padding:0;clear:both;float:none;padding-top:10px;padding-bottom:5px;}
#WidgetTutiempo .linkTT{clear: both; float: none;}
/* Estilos por defecto */
        .WidgetTutiempo {
            color: #000000 !important;
        }
        /* Estilos para dark-skin */
        .dark-skin .WidgetTutiempo {
            color: #ffffff !important;
        }
.WidgetTutiempo {
    height: auto !important;
    width: 100% !important;
}
.WidgetTutiempo table {
    margin: auto;
    width: 100%;
}
.WidgetTutiempo table {
    border-width: 0;
}
.widget_weather_widget .widget-container {
    clear: both;
    margin-bottom: 25px !important;
}
.WidgetTutiempo .TxtMax, .WidgetTutiempo .TxtMin {
    font-weight: bold;
    display: inline-block;
    overflow: hidden;
}
.WidgetTutiempo .TxtMax {
    color:#f30000 !important;
}

.WidgetTutiempo .TitDia {
    display: inline-block;
    overflow: hidden;
}
.WidgetTutiempo td {
    text-align: center;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}
.WidgetTutiempo table td {
    border: none;
}

/* TÃ­tulos del Widget Front-End */
.weather-pro-container .widget-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #4f46e5;
    padding-left: 10px;
}

.weather-pro-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;   /* o el valor que quieras */
    margin: 0 auto;
    padding: 10px;      /* espacio interno para que se vean los bordes */
    box-sizing: border-box;
}

/* Card General (Transparente por defecto para 100% ancho) */
.weather-item-card {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 20px); /* restar el padding/margen */
    background: transparent !important;
    border-radius: 16px;
    padding: 15px;
    box-shadow: none !important;
}

/* --- MODO HORIZONTAL (Captura) --- */
.weather-pro-container.weather-pro-horizontal {
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: nowrap; /* evita que los Ã­tems salten de lÃ­nea */
}

.weather-pro-list.weather-pro-horizontal, .weather-pro-slider-container.weather-pro-horizontal {
    white-space: normal;
}
.weather-pro-slider-container.weather-pro-horizontal {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%; /* o el ancho que quieras limitar */
    margin: 0 auto;
}


.weather-item-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-radius: 12px;
    padding: 10px;
    width: 100%;         
    box-sizing: border-box;
    margin: 0;
}



.weather-item-horizontal .current-side {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #334155;
    padding-right: 30px;
}

.weather-item-horizontal .main-temp {
    text-align: center;
}

.weather-item-horizontal .main-temp .temp-val {
    font-size: 32px;
    font-weight: 800;
    color: inherit !important;
    line-height: 1;
}

.weather-item-horizontal .main-temp .wind-val {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.weather-item-horizontal .forecast-side {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 15px;
}

.weather-item-horizontal .forecast-day {
    text-align: center;
    min-width: 60px;
}

.weather-item-horizontal .fd-label {
    font-size: 11px;
    font-weight: bold;
    color: inherit;
    margin-bottom: 2px;
}

.weather-item-horizontal .fd-icon img {
    width: 40px !important;
    height: 40px !important;
    display: inline-block !important;
    position: relative;
}

.weather-item-horizontal .main-icon img {
    width: 70px !important;
    height: 70px !important;
    display: inline-block !important;
    position: relative;
}

.weather-item-horizontal .fd-temps {
    font-size: 11px;
    font-weight: 700;
    margin-top: -2px;
}

.weather-item-horizontal .fd-temps .max { color: #ff6b6b; }
.weather-item-horizontal .fd-temps .sep { color: #cbd5e1; margin: 0 2px; }
.weather-item-horizontal .fd-temps .min { color: #4dabf7; }

/* Margen para lista cuando no es slider */
.weather-pro-list .weather-item-card, .weather-pro-list .weather-item-horizontal {
    margin-bottom: 25px;
    position: relative !important;
    width: 100% !important;
}
.weather-pro-slider-container .weather-item-card, .weather-pro-slider-container .weather-item-horizontal {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .weather-item-horizontal {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .weather-item-horizontal .current-side {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
    .weather-item-horizontal .forecast-side {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

/*
 * Ajuste visual v4.8.0
 * Los valores se controlan con --weather-scale desde el panel de Clima.
 * Esto permite compactar el encabezado sin deformar las imágenes.
 */
.weather-pro-container {
    --weather-scale: 1;
    --weather-horizontal-padding: calc(8px * var(--weather-scale));
    --weather-layout-gap: calc(10px * var(--weather-scale));
    --weather-current-gap: calc(12px * var(--weather-scale));
    --weather-current-padding: calc(22px * var(--weather-scale));
    --weather-main-icon-size: calc(64px * var(--weather-scale));
    --weather-forecast-icon-size: calc(36px * var(--weather-scale));
    --weather-forecast-gap: calc(12px * var(--weather-scale));
    --weather-day-min-width: calc(58px * var(--weather-scale));
    --weather-temp-size: calc(30px * var(--weather-scale));
    --weather-city-size: calc(14px * var(--weather-scale));
    --weather-label-size: calc(11px * var(--weather-scale));
    --weather-temps-size: calc(11px * var(--weather-scale));
    min-width: 0;
    box-sizing: border-box;
}

.weather-pro-container *,
.weather-pro-container *::before,
.weather-pro-container *::after {
    box-sizing: border-box;
}

.weather-pro-container img {
    max-width: none !important;
}

.weather-pro-container.weather-pro-horizontal {
    white-space: normal;
}

.weather-pro-slider-container.weather-pro-horizontal {
    padding: calc(4px * var(--weather-scale));
}

.weather-pro-list .weather-item-horizontal {
    margin-bottom: calc(8px * var(--weather-scale)) !important;
}

.weather-item-horizontal {
    gap: var(--weather-layout-gap);
    padding: var(--weather-horizontal-padding);
    min-width: 0;
}

.weather-item-horizontal .current-side {
    gap: var(--weather-current-gap);
    padding-right: var(--weather-current-padding);
    min-width: 0;
}

.weather-item-horizontal .main-icon {
    width: var(--weather-main-icon-size);
    height: var(--weather-main-icon-size);
    flex: 0 0 var(--weather-main-icon-size);
    line-height: 0;
}

.weather-item-horizontal .main-icon img {
    width: var(--weather-main-icon-size) !important;
    height: var(--weather-main-icon-size) !important;
    max-width: var(--weather-main-icon-size) !important;
    object-fit: contain;
}

.weather-item-horizontal .main-temp .TitDia {
    font-size: var(--weather-city-size) !important;
    line-height: 1.1;
    margin-bottom: calc(4px * var(--weather-scale)) !important;
}

.weather-item-horizontal .main-temp .temp-val {
    font-size: var(--weather-temp-size);
    line-height: 1.05;
}

.weather-item-horizontal .forecast-side {
    gap: var(--weather-forecast-gap);
    min-width: 0;
}

.weather-item-horizontal .forecast-day {
    min-width: var(--weather-day-min-width);
    flex: 1 1 0;
}

.weather-item-horizontal .fd-label,
.weather-item-horizontal .fd-temps {
    font-size: var(--weather-label-size);
    line-height: 1.15;
}

.weather-item-horizontal .fd-icon {
    height: var(--weather-forecast-icon-size);
    line-height: 0;
}

.weather-item-horizontal .fd-icon img {
    width: var(--weather-forecast-icon-size) !important;
    height: var(--weather-forecast-icon-size) !important;
    max-width: var(--weather-forecast-icon-size) !important;
    object-fit: contain;
}

.weather-item-horizontal .fd-temps {
    font-size: var(--weather-temps-size);
    margin-top: calc(1px * var(--weather-scale));
}

.weather-item-card {
    padding: calc(12px * var(--weather-scale));
}

.weather-item-card > h4,
.weather-item-card .widget-top h4 {
    font-size: calc(16px * var(--weather-scale)) !important;
}

.weather-item-card .WidgetTutiempo table {
    border-spacing: calc(4px * var(--weather-scale));
}

.weather-item-card .WidgetTutiempo td img {
    width: calc(60px * var(--weather-scale)) !important;
    height: calc(60px * var(--weather-scale)) !important;
    max-width: calc(60px * var(--weather-scale)) !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .weather-pro-container {
        --weather-layout-gap: calc(8px * var(--weather-scale));
        --weather-current-gap: calc(8px * var(--weather-scale));
        --weather-current-padding: 0px;
        --weather-main-icon-size: calc(52px * var(--weather-scale));
        --weather-forecast-icon-size: calc(34px * var(--weather-scale));
        --weather-forecast-gap: calc(9px * var(--weather-scale));
        --weather-day-min-width: calc(56px * var(--weather-scale));
        --weather-temp-size: calc(28px * var(--weather-scale));
        --weather-city-size: calc(13px * var(--weather-scale));
    }

    .weather-item-horizontal {
        align-items: stretch;
        gap: var(--weather-layout-gap);
        padding: calc(6px * var(--weather-scale));
    }

    .weather-item-horizontal .current-side {
        width: 100%;
        justify-content: center;
        padding-right: 0;
        padding-bottom: calc(7px * var(--weather-scale));
    }

    .weather-item-horizontal .forecast-side {
        width: 100%;
        flex: 0 0 auto;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 3px;
        touch-action: pan-x;
        scrollbar-width: thin;
    }

    .weather-item-horizontal .forecast-day {
        flex: 0 0 var(--weather-day-min-width);
    }

    .weather-item-card .WidgetTutiempo table {
        border-spacing: 2px;
    }

    .weather-item-card .WidgetTutiempo .TitDia,
    .weather-item-card .WidgetTutiempo .TitMax,
    .weather-item-card .WidgetTutiempo .TitMin,
    .weather-item-card .WidgetTutiempo .TitVie {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .weather-pro-container {
        --weather-main-icon-size: calc(46px * var(--weather-scale));
        --weather-forecast-icon-size: calc(31px * var(--weather-scale));
        --weather-day-min-width: calc(52px * var(--weather-scale));
        --weather-temp-size: calc(26px * var(--weather-scale));
        --weather-city-size: calc(12px * var(--weather-scale));
    }

    .weather-item-horizontal {
        padding: calc(4px * var(--weather-scale));
    }
}

/* Corrección móvil: etiqueta, ícono y temperaturas quedan separados. */
@media (max-width: 768px) {
    .weather-item-horizontal .forecast-side {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .weather-item-horizontal .forecast-day {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-width: calc(58px * var(--weather-scale));
        white-space: nowrap;
    }

    .weather-item-horizontal .fd-label {
        min-height: calc(15px * var(--weather-scale));
        margin-bottom: calc(2px * var(--weather-scale));
        white-space: nowrap;
    }

    .weather-item-horizontal .fd-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: calc(35px * var(--weather-scale));
        margin-bottom: calc(2px * var(--weather-scale));
        line-height: 0;
        overflow: visible;
    }

    .weather-item-horizontal .fd-icon img {
        display: block !important;
        position: static !important;
        margin: 0 auto;
    }

    .weather-item-horizontal .fd-temps {
        display: block;
        margin-top: calc(3px * var(--weather-scale)) !important;
        line-height: 1.1;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .weather-item-horizontal .forecast-day {
        min-width: calc(54px * var(--weather-scale));
    }
}

/* Refuerzo para temas que aplican estilos propios a las imágenes del widget. */
@media (max-width: 768px) {
    .weather-pro-container .forecast-side {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .weather-pro-container .forecast-side .forecast-day {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .weather-pro-container .forecast-side .fd-icon {
        display: flex !important;
        min-height: 38px !important;
        margin-bottom: 3px !important;
        overflow: visible !important;
    }

    .weather-pro-container .forecast-side .fd-icon img {
        display: block !important;
        position: static !important;
    }

    .weather-pro-container .forecast-side .fd-temps {
        display: block !important;
        margin-top: 5px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        position: static !important;
    }
}

/* En móvil: clima actual y pronóstico quedan en una única fila horizontal. */
@media (max-width: 768px) {
    .weather-pro-container.weather-pro-horizontal {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        scrollbar-width: none;
    }

    .weather-pro-container.weather-pro-horizontal::-webkit-scrollbar {
        display: none;
    }

    .weather-pro-container.weather-pro-horizontal .weather-item-horizontal {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: max-content !important;
        min-width: 100% !important;
        overflow: visible !important;
    }

    .weather-pro-container.weather-pro-horizontal .current-side {
        width: auto !important;
        flex: 0 0 auto !important;
        border-right: 1px solid #cbd5e1 !important;
        border-bottom: none !important;
        padding-right: calc(9px * var(--weather-scale)) !important;
        padding-bottom: 0 !important;
        justify-content: flex-start !important;
    }

    .weather-pro-container.weather-pro-horizontal .forecast-side {
        width: auto !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .weather-pro-container.weather-pro-horizontal .forecast-day {
        flex: 0 0 var(--weather-day-min-width) !important;
    }
}
