/*
Theme Name: Naranjaty FM
Theme URI: https://naranjatyfm.com
Author: Naranjaty FM
Author URI: https://naranjatyfm.com
Description: Tema moderno y responsive para Naranjaty FM (solo reproductor fijo)
Version: 1.0
License: GPL v2 or later
Text Domain: naranjatyfm
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(190deg, #FF6600, #006400);
    color: #333;
    height: 100vh;
    margin: 0;
}

/* Header con logo */
.site-header {
    width: 100%;
    padding: 10px 20px;
    background: #f2f2f2;
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

.site-logo img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .site-logo img {
        height: 50px;
        width: auto;
    }
    .site-header {
        padding: 8px 10px;
    }
}

/* Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* Reproductor fijo */
#live-radio {
    position: fixed;
    z-index: 99999;
    font-family: 'Arial', sans-serif;
    border-radius: 0;
}

#live-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2c2c2c;
    padding: 12px 16px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Ajustes PC */
@media (min-width: 768px) {
    #live-radio {
        top: 22px;
        right: 20px;
    }
    #live-controls {
        padding: 16px 24px;
    }
    #live-toggle {
        font-size: 1.2em;
    }
}

/* Ajustes móviles */
@media (max-width: 767px) {
    #live-radio {
        top: 16px;
        right: 13px;
    }
    #live-controls {
        padding: 10px 14px;
        gap: 8px;
    }
    #live-toggle {
        font-size: 1em;
    }
    #volume-control {
        width: 60px;
    }
    #volume-icon {
        width: 18px;
        height: 18px;
    }
}

/* Botón reproducción */
#live-toggle {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    color: #ff6600;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
}

#live-toggle:hover {
    color: #e65c00;
}

/* Pulse + halo inicial intenso por 5 segundos */
#live-radio.flash,
#live-toggle.playing {
    animation: pulse-button 1.5s infinite;
}

#live-radio.flash::before,
#live-toggle::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 0;
    background: rgba(255, 102, 0, 0.6); /* Intensidad aumentada */
    filter: blur(15px);
    opacity: 0.8;
    z-index: -1;
    animation: halo-pulse 1.5s infinite;
}

/* Animación halo */
@keyframes halo-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* Pulso del botón */
@keyframes pulse-button {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Texto estático */
#live-toggle .button-text {
    display: inline-block;
    transform: none !important;
    line-height: 1.2;
    color: #ff6600;
}

/* Contenedor de volumen */
#volume-wrapper {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Icono de volumen SVG */
#volume-icon {
    width: 22px;
    height: 22px;
    fill: #ff6600;
}

/* Slider minimalista */
#volume-control {
    width: 80px;
    -webkit-appearance: none;
    background: #555;
    height: 6px;
    border-radius: 3px;
    outline: none;
}

#volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
}

#volume-control::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
}

/* Mobile ajustes */
@media (max-width: 768px) {
    #live-controls {
        gap: 8px;
        padding: 8px 12px;
    }
    #volume-control {
        width: 60px;
    }
    #volume-icon {
        width: 18px;
        height: 18px;
    }
}

/* ===============================
   BANNER FRONT PAGE
================================ */
.front-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000; /* evita parpadeo mientras carga */
    margin: 0;
    padding: 0;
}

.front-banner img {
    width: 100%;
    max-width: 1920px;
    height: 851px;
    object-fit: cover;
    display: block;
}

/* El banner queda pegado al header */
.site-header + .front-banner {
    margin-top: 0;
}

/* Sin espacio entre banner y mural */
.front-banner + .mural-section {
    margin-top: 0;
    padding-top: 0;
}

/* Asegurar que no haya espacios */
.front-banner {
    margin-bottom: 0;
}

.mural-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===============================
   BARRA DE MENÚ FIXED BOTTOM CON BLUR
================================ */
.front-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(242, 242, 242, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.front-menu.hide {
    transform: translateY(100%); /* se oculta fuera de la pantalla */
    opacity: 0;
}

.front-menu ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 10px 0;
    margin: 0;
    flex-wrap: wrap;
}

.front-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.front-menu ul li a:hover {
    color: #ff6600;
    transform: scale(1.05);
}

/* Mobile: centrar contenido horizontalmente */
@media (max-width: 768px) {
    .front-menu ul {
        justify-content: center; /* centrado horizontal */
        gap: 20px;
    }
}

/* ===============================
   MURAL + CLIMA
================================ */
.mural-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    height: 851px;
    overflow: hidden;
}

/* Imagen de fondo */
.mural-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1920px;
    height: 851px;
    background: url("images/banner-bg.jpg") center center / cover no-repeat;
    z-index: 1;
}

/* Contenido */
.mural-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    display: flex;
    gap: 30px;
    padding: 40px 20px;
    height: 100%;
    align-items: center;
    box-sizing: border-box;
}

/* ===============================
   CLIMA SECTION (NUEVA PAGINA)
================================ */
.clima-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    height: 851px;
    overflow: hidden;
}

/* Imagen de fondo para clima */
.clima-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1920px;
    height: 851px;
    background: url("images/banner-bg.jpg") center center / cover no-repeat;
    z-index: 1;
}

/* Contenido del clima */
.clima-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    height: 100%;
    box-sizing: border-box;
}

/* Mural y formulario */
.mural {
    width: 300px; /* Igualado exactamente al clima */
    background: rgba(255,255,255,0.75);
    padding: 20px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    max-height: calc(851px - 80px); /* Altura total menos padding vertical */
    box-sizing: border-box;
}


.mural h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

.mural-mensajes {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 rgba(0,0,0,0.1);
    /* Limitar altura para mostrar aproximadamente 3 mensajes */
    max-height: calc(3 * (60px + 15px)); /* 3 mensajes * (altura mensaje + margin) */
    min-height: calc(3 * (60px + 15px));
}

/* Scrollbar personalizado para WebKit */
.mural-mensajes::-webkit-scrollbar {
    width: 8px;
}

.mural-mensajes::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.mural-mensajes::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 4px;
}

.mural-mensajes::-webkit-scrollbar-thumb:hover {
    background: #e65c00;
}

.mensaje-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.6);
    border-left: 3px solid #ff6600;
    border-radius: 4px;
    animation: fadeIn 0.5s ease forwards;
    opacity: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 60px;
    box-sizing: border-box;
}

.mensaje-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
}

.mensaje-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 8px;
}

.mensaje-nombre {
    color: #ff6600;
    font-size: 1em;
    font-weight: 600;
}

.mensaje-fecha {
    color: #999;
    font-size: 0.85em;
    font-weight: normal;
}

.mensaje-texto {
    color: #333;
    font-size: 0.95em;
    line-height: 1.4;
    word-wrap: break-word;
    margin-top: 5px;
}

.mensaje-vacio {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    opacity: 1;
}

/* Formulario */
.form-mensaje {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-mensaje input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    min-width: 150px;
}

.form-mensaje button {
    padding: 10px 20px;
    background: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.form-mensaje button:hover {
    background: #e65c00;
}

/* Widget clima */
.clima-widget {
    width: 300px; /* Igualado al mural */
    background: rgba(255,255,255,0.75);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: calc(851px - 80px); /* Altura total menos padding vertical */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#clima-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.clima-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.clima-widget h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #333;
    text-align: center;
}

/* Contenedor principal del clima */
.clima-container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeInUp 0.6s ease forwards;
    max-height: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 rgba(0,0,0,0.1);
}

.clima-container::-webkit-scrollbar {
    width: 6px;
}

.clima-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.clima-container::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 3px;
}

.clima-location {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.clima-loaded {
    animation: fadeInUp 0.6s ease forwards;
}

/* Icono del clima con animación */
.clima-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: 80px;
}

.clima-icon {
    font-size: 4em;
    z-index: 2;
    position: relative;
    animation: weatherFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.clima-icon-bg {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.3;
    animation: weatherPulse 2s ease-in-out infinite;
}

/* Animaciones según el tipo de clima */
.weather-sunny .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite, sunRotate 20s linear infinite;
}

.weather-sunny .clima-icon-bg {
    background: radial-gradient(circle, rgba(255,200,0,0.4), transparent);
}

.weather-partly-cloudy .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite, cloudMove 8s ease-in-out infinite;
}

.weather-partly-cloudy .clima-icon-bg {
    background: radial-gradient(circle, rgba(200,200,200,0.3), transparent);
}

.weather-cloudy .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite;
}

.weather-cloudy .clima-icon-bg {
    background: radial-gradient(circle, rgba(150,150,150,0.3), transparent);
}

.weather-rainy .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite, rainShake 0.5s ease-in-out infinite;
}

.weather-rainy .clima-icon-bg {
    background: radial-gradient(circle, rgba(100,150,200,0.3), transparent);
}

.weather-rainy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(100,150,255,0.1) 2px,
        rgba(100,150,255,0.1) 4px
    );
    animation: rainFall 1s linear infinite;
    pointer-events: none;
}

.weather-stormy .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite, stormFlash 2s ease-in-out infinite;
}

.weather-stormy .clima-icon-bg {
    background: radial-gradient(circle, rgba(50,50,100,0.4), transparent);
    animation: stormPulse 1.5s ease-in-out infinite;
}

.weather-snowy .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite, snowFloat 4s ease-in-out infinite;
}

.weather-snowy .clima-icon-bg {
    background: radial-gradient(circle, rgba(200,220,255,0.3), transparent);
}

.weather-foggy .clima-icon {
    animation: weatherFloat 3s ease-in-out infinite, fogDrift 6s ease-in-out infinite;
    opacity: 0.8;
}

.weather-foggy .clima-icon-bg {
    background: radial-gradient(circle, rgba(200,200,200,0.4), transparent);
    animation: fogPulse 3s ease-in-out infinite;
}

/* Información principal */
.clima-main {
    text-align: center;
    margin-bottom: 15px;
}

.clima-temp {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6600;
    line-height: 1;
    margin-bottom: 5px;
    animation: tempPulse 2s ease-in-out infinite;
}

.clima-description {
    font-size: 0.95em;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.clima-feels {
    font-size: 0.85em;
    color: #999;
}

/* Detalles del clima */
.clima-details {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.clima-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.clima-detail-icon {
    font-size: 1.5em;
    animation: detailBounce 2s ease-in-out infinite;
}

.clima-detail-value {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

/* Saludo */
.clima-greeting {
    text-align: center;
    font-size: 0.9em;
    color: #ff6600;
    font-weight: 600;
    font-style: italic;
    margin-top: 10px;
}

/* Pronóstico extendido */
.clima-forecast {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.clima-forecast-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.clima-forecast-days {
    display: flex;
    flex-direction: row; /* Cambiado a horizontal */
    gap: 12px; /* Espacio entre días */
    overflow-x: auto; /* Scroll horizontal */
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 rgba(0,0,0,0.1);
    padding-bottom: 5px;
    padding-right: 10px;
    min-height: 120px; /* Altura mínima para alineación */
}

.clima-forecast-days::-webkit-scrollbar {
    width: 4px;
}

.clima-forecast-days::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
}

.clima-forecast-days::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 2px;
}

.clima-forecast-day {
    display: flex;
    flex-direction: column; /* Cambiado a vertical para cada día */
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 80px; /* Ancho mínimo para cada día */
    flex-shrink: 0; /* Evita que se compriman */
}

.clima-forecast-day:hover {
    background: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

.forecast-date {
    font-size: 0.8em;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    white-space: nowrap;
}

.forecast-icon {
    font-size: 1.8em;
    margin-bottom: 8px;
    display: block;
}

.forecast-temps {
    display: flex;
    flex-direction: column; /* Cambiado a vertical */
    gap: 4px; /* Espacio reducido */
    align-items: center;
    width: 100%;
}

.forecast-max {
    font-size: 0.9em;
    font-weight: 600;
    color: #ff6600;
    padding: 4px 8px;
    background: rgba(255,102,0,0.1);
    border-radius: 4px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.forecast-min {
    font-size: 0.8em;
    color: #999;
    padding: 4px 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Estados de carga y error */
.clima-loading,
.clima-error {
    text-align: center;
    padding: 20px;
}

.clima-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,102,0,0.2);
    border-top-color: #ff6600;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

.clima-loading-text {
    color: #666;
    font-size: 0.9em;
}

.clima-error-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.clima-error-text {
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 5px;
}

.clima-error-hint {
    color: #999;
    font-size: 0.85em;
}

/* Animaciones keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes weatherFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes weatherPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes sunRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes cloudMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes rainShake {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px);
    }
    75% {
        transform: translateY(2px);
    }
}

@keyframes rainFall {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(100%);
    }
}

@keyframes stormFlash {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
}

@keyframes stormPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes snowFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes fogDrift {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(10px);
        opacity: 0.6;
    }
}

@keyframes fogPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes tempPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes detailBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .front-banner img {
        height: auto;
        min-height: 300px;
        object-fit: cover;
    }

    .mural-section {
        height: auto;
        min-height: 500px;
    }

    .mural-bg {
        height: 100%;
        min-height: 500px;
    }

    .mural-content {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    .mural {
        max-height: 400px;
        width: 100%;
        background: rgba(255,255,255,0.85); /* Más opaco en móvil */
    }

    .mensaje-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mensaje-fecha {
        font-size: 0.8em;
    }

    .programacion-widget {
        width: 100%;
        margin-top: 20px;
        max-height: none;
        padding: 15px; /* Padding reducido para móvil */
        background: rgba(255,255,255,0.85); /* Más opaco en móvil */
    }

    .programacion-image {
        height: 140px; /* Un poco más pequeño en móvil */
    }

    .programacion-controls {
        padding: 0 5px;
    }

    .programacion-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .programacion-dots {
        bottom: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .clima-widget {
        width: 100%;
        margin-top: 20px;
        max-height: none;
        padding: 15px; /* Padding reducido para móvil */
        background: rgba(255,255,255,0.85); /* Más opaco en móvil */
    }

    .clima-forecast-days {
        flex-direction: column; /* En móvil vuelve a ser vertical */
        gap: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 250px;
        padding-right: 5px;
        padding-bottom: 0;
    }

    .clima-forecast-day {
        flex-direction: row; /* En móvil los días son horizontales */
        justify-content: space-between;
        min-width: auto;
        width: 100%;
        padding: 10px;
    }

    .forecast-date {
        min-width: 70px;
        font-size: 0.8em;
        text-align: left;
    }

    .forecast-icon {
        font-size: 1.6em;
        margin: 0 8px;
        margin-bottom: 0;
    }

    .forecast-temps {
        flex-direction: row; /* En móvil las temperaturas son horizontales */
        gap: 8px;
    }

    .forecast-max, .forecast-min {
        width: auto; /* En móvil no ocupan todo el ancho */
        padding: 3px 6px;
        font-size: 0.8em;
    }

    .clima-icon {
        font-size: 3em;
    }

    .clima-temp {
        font-size: 2em;
    }

    .clima-details {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile para nueva sección de clima */
    .clima-section {
        height: auto;
        min-height: 500px;
    }

    .clima-bg {
        height: 100%;
        min-height: 500px;
    }

    .clima-content {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }
}

/* Animación fade-in mensajes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-mensaje input[type="text"] {
    flex: 1;
    padding: 8px;
}

.form-mensaje {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.form-mensaje button {
    padding: 8px 12px;
    background: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
}

.form-mensaje button:hover {
    background: #e65c00;
}

@media (max-width: 768px) {
    .form-mensaje {
        flex-direction: column;
    }

    .form-mensaje input[type="text"] {
        flex: 100%;
        width: 100%;
    }

    .mural-mensajes {
        max-height: calc(2 * (60px + 15px)); /* 2 mensajes en móvil */
        min-height: calc(2 * (60px + 15px));
    }
}

