* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #1a1a1a;
    font-size: 16px;
}

.weather-container {
    min-height: 100vh;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: background 0.5s ease;
    overflow-y: auto;
}

.weather-container.sunny {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}

.weather-container.cloudy {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

.weather-container.rainy {
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
}

.weather-container.stormy {
    background: linear-gradient(135deg, #373b44 0%, #4286f4 100%);
}

.weather-container.snowy {
    background: linear-gradient(135deg, #e0e0e0 0%, #efefef 100%);
    color: #333;
}

.weather-container.misty {
    background: linear-gradient(135deg, #757f9a 0%, #d7dde8 100%);
}

.weather-container.night {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 20%, #2c5364 100%);
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: white;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1.5rem;
    font-weight: 300;
}

.weather-content {
    color: white;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-header {
    text-align: center;
    margin-bottom: 3rem;
}

.weather-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.current-weather {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.temperature-section {
    text-align: center;
}

.temperature-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1rem;
}

#temperature {
    font-size: 8rem;
    font-weight: 300;
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.temperature-unit {
    font-size: 3rem;
    margin-top: 1rem;
    opacity: 0.8;
}

.feels-like {
    font-size: 1.3rem;
    opacity: 0.9;
}

.weather-condition {
    text-align: center;
}

.weather-icon {
    width: 200px;
    height: 200px;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#weather-description {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 2.5rem;
    font-weight: 600;
}

.uv-value {
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 10px;
}

.uv-low { background: #4caf50; }
.uv-moderate { background: #ffeb3b; color: #333; }
.uv-high { background: #ff9800; }
.uv-very-high { background: #f44336; }
.uv-extreme { background: #9c27b0; }

.hourly-forecast, .daily-forecast {
    margin-bottom: 2rem;
}

.hourly-forecast h2, .daily-forecast h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hourly-container, .daily-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.daily-container {
    flex-direction: column;
    gap: 0.8rem;
    overflow-x: visible;
}

.hourly-container::-webkit-scrollbar {
    height: 8px;
}

.hourly-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hourly-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.hourly-item, .daily-item {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    min-width: 100px;
}

.daily-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr 100px;
    align-items: center;
    text-align: left;
    padding: 1rem 1.5rem;
    min-width: auto;
    gap: 1rem;
}

.hourly-time {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hourly-icon {
    width: 50px;
    height: 50px;
    margin: 0.5rem 0;
}

.hourly-temp {
    font-size: 1.3rem;
    font-weight: 600;
}

.hourly-rain {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.update-info {
    text-align: center;
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Estilos para pronóstico diario */
.daily-date {
    font-weight: 600;
    font-size: 1.1rem;
}

.daily-day {
    font-size: 0.9rem;
    opacity: 0.8;
}

.daily-icon {
    width: 50px;
    height: 50px;
    justify-self: center;
}

.daily-description {
    font-size: 1rem;
    text-transform: capitalize;
    font-weight: 500;
}

.daily-temps {
    text-align: right;
}

.daily-temp-max {
    font-size: 1.4rem;
    font-weight: 600;
}

.daily-temp-min {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.daily-rain {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.error-message, .error-content {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.error-message h2, .error-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff5252;
}

.error-message p, .error-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .weather-container {
        padding: 1rem;
    }
    
    .weather-header h1 {
        font-size: 2.5rem;
    }
    
    .current-weather {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #temperature {
        font-size: 6rem;
    }
    
    .weather-icon {
        width: 150px;
        height: 150px;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-value {
        font-size: 2rem;
    }
}

/* Media queries para pantallas portrait */
@media (orientation: portrait) {
    .weather-container {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .current-weather {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas portrait medianas (tablets) */
@media (orientation: portrait) and (min-height: 1024px) {
    .weather-header h1 {
        font-size: 3rem;
    }
    
    #temperature {
        font-size: 8rem;
    }
    
    .weather-icon {
        width: 200px;
        height: 200px;
    }
    
    .weather-details {
        grid-template-columns: repeat(3, 1fr);
        padding: 1.5rem;
    }
    
    .detail-value {
        font-size: 2.2rem;
    }
}

/* Pantallas portrait altas (>1400px) - Incluye 1077, 1078, 1079, 1080 */
@media (orientation: portrait) and (min-height: 1400px) and (max-width: 1080px) {
    body {
        font-size: 18px;
    }
    
    .weather-container {
        height: 100vh;
        padding: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .weather-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .weather-header {
        flex-shrink: 0;
        padding-bottom: 2rem;
    }
    
    .weather-header h1 {
        font-size: 4rem;
    }
    
    .weather-header p {
        font-size: 1.5rem;
    }
    
    .current-weather {
        flex-shrink: 0;
        margin-bottom: 2rem;
    }
    
    #temperature {
        font-size: 10rem;
    }
    
    .temperature-unit {
        font-size: 3.5rem;
    }
    
    .feels-like {
        font-size: 1.5rem;
    }
    
    .weather-icon {
        width: 250px;
        height: 250px;
    }
    
    #weather-description {
        font-size: 2rem;
    }
    
    .weather-details {
        flex-shrink: 0;
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .detail-label {
        font-size: 1.2rem;
    }
    
    .detail-value {
        font-size: 2.8rem;
    }
    
    .hourly-forecast,
    .daily-forecast {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .hourly-forecast h2,
    .daily-forecast h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hourly-container {
        flex: 1;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .hourly-item {
        min-width: 110px;
        padding: 1.2rem;
    }
    
    .daily-container {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .daily-item {
        padding: 1.2rem 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .update-info {
        flex-shrink: 0;
        padding-top: 1.5rem;
        font-size: 1.1rem;
    }
}

/* Estilos específicos para pantallas más grandes que 1080 (Full HD Portrait) */
@media (min-width: 1081px) and (orientation: portrait) and (min-height: 1920px) {
    body {
        font-size: 20px;
        background: #000;
    }
    
    .weather-container {
        height: 100vh;
        max-height: 1920px;
        padding: 3rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-width: none;
        width: 100%;
    }
    
    .weather-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .weather-header {
        flex-shrink: 0;
        padding: 2rem 0;
        border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    }
    
    .weather-header h1 {
        font-size: 5rem;
        margin-bottom: 1rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }
    
    .weather-header p {
        font-size: 2rem;
        font-weight: 300;
        opacity: 0.9;
    }
    
    .current-weather {
        flex-shrink: 0;
        padding: 3rem 0;
        border-bottom: 3px solid rgba(255, 255, 255, 0.2);
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #temperature {
        font-size: 14rem;
        font-weight: 200;
        letter-spacing: -0.03em;
        line-height: 0.9;
    }
    
    .temperature-unit {
        font-size: 5rem;
        margin-top: 2.5rem;
    }
    
    .feels-like {
        font-size: 2rem;
        margin-top: 1.5rem;
        opacity: 0.9;
    }
    
    .weather-icon {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    
    #weather-description {
        font-size: 3rem;
        font-weight: 500;
        margin-top: 1.5rem;
    }
    
    .weather-details {
        flex-shrink: 0;
        padding: 2.5rem;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 2.5rem;
        border-bottom: 3px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        border-radius: 30px;
    }
    
    .detail-value {
        font-size: 4rem;
        font-weight: 700;
    }
    
    .detail-label {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 500;
        opacity: 0.9;
    }
    
    .hourly-forecast {
        flex: 1;
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }
    
    .hourly-forecast h2,
    .daily-forecast h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        font-weight: 700;
        text-align: left;
        padding-left: 1rem;
    }
    
    .hourly-container {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1.5rem 0;
        display: flex;
        gap: 1.2rem;
    }
    
    .hourly-item {
        min-width: 140px;
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 220px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 20px;
    }
    
    .hourly-time {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 1.2rem;
        opacity: 0.9;
    }
    
    .hourly-icon {
        width: 80px;
        height: 80px;
        margin: 1.2rem 0;
    }
    
    .hourly-temp {
        font-size: 2.2rem;
        font-weight: 700;
        margin: 1.2rem 0;
    }
    
    .hourly-rain {
        font-size: 1.3rem;
        font-weight: 500;
        opacity: 0.8;
    }
    
    .daily-forecast {
        flex: 1.5;
        min-height: 500px;
        display: flex;
        flex-direction: column;
    }
    
    .daily-container {
        flex: 1;
        gap: 1.2rem;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 1.5rem;
    }
    
    .daily-item {
        padding: 2rem 2.5rem;
        min-height: 100px;
        grid-template-columns: 2.5fr 100px 2.5fr 150px;
        gap: 2.5rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        margin-bottom: 1rem;
    }
    
    .daily-date {
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    .daily-day {
        font-size: 1.3rem;
        margin-top: 0.4rem;
        opacity: 0.8;
    }
    
    .daily-icon {
        width: 80px;
        height: 80px;
    }
    
    .daily-description {
        font-size: 1.5rem;
        font-weight: 500;
        align-self: center;
    }
    
    .daily-temp-max {
        font-size: 2.2rem;
        font-weight: 700;
    }
    
    .daily-temp-min {
        font-size: 1.7rem;
        margin-left: 1.2rem;
        opacity: 0.7;
    }
    
    .daily-rain {
        font-size: 1.3rem;
        margin-top: 0.6rem;
        opacity: 0.8;
    }
    
    .update-info {
        flex-shrink: 0;
        padding: 2rem 0;
        font-size: 1.4rem;
        border-top: 3px solid rgba(255, 255, 255, 0.2);
        font-weight: 500;
        opacity: 0.8;
    }
    
    /* Mejoras en scrollbars para mejor visibilidad */
    .hourly-container::-webkit-scrollbar,
    .daily-container::-webkit-scrollbar {
        height: 14px;
        width: 14px;
    }
    
    .hourly-container::-webkit-scrollbar-track,
    .daily-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 7px;
    }
    
    .hourly-container::-webkit-scrollbar-thumb,
    .daily-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 7px;
    }
    
    .hourly-container::-webkit-scrollbar-thumb:hover,
    .daily-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6);
    }
    
    /* Ajustes para loading y errores */
    .loading-indicator {
        height: 100vh;
    }
    
    .spinner {
        width: 120px;
        height: 120px;
        border-width: 10px;
    }
    
    .loading-indicator p {
        font-size: 2rem;
    }
    
    .error-message h2,
    .error-content h2 {
        font-size: 4rem;
    }
    
    .error-message p,
    .error-content p {
        font-size: 2rem;
    }
}

/* Media query adicional para pantallas portrait muy altas (>2000px) */
@media (orientation: portrait) and (min-height: 2000px) {
    body {
        font-size: 22px;
    }
    
    .weather-container {
        padding: 4rem;
    }
    
    .weather-header h1 {
        font-size: 6rem;
    }
    
    .weather-header p {
        font-size: 2.2rem;
    }
    
    #temperature {
        font-size: 16rem;
    }
    
    .temperature-unit {
        font-size: 5.5rem;
    }
    
    .weather-icon {
        width: 350px;
        height: 350px;
    }
    
    .detail-value {
        font-size: 4.5rem;
    }
    
    .hourly-item {
        min-width: 160px;
        min-height: 240px;
    }
    
    .daily-item {
        min-height: 110px;
    }
}

/* Ajustes específicos para pantallas pequeñas en portrait */
@media (orientation: portrait) and (max-width: 768px) {
    .weather-container {
        height: 100vh;
        padding: 1rem;
    }
    
    .weather-content {
        gap: 1rem;
    }
    
    .weather-header h1 {
        font-size: 2rem;
    }
    
    .weather-header p {
        font-size: 1rem;
    }
    
    .current-weather {
        padding: 1rem 0;
    }
    
    #temperature {
        font-size: 5rem;
    }
    
    .temperature-unit {
        font-size: 2rem;
    }
    
    .weather-icon {
        width: 120px;
        height: 120px;
    }
    
    #weather-description {
        font-size: 1.2rem;
    }
    
    .weather-details {
        padding: 1rem;
        gap: 1rem;
    }
    
    .detail-label {
        font-size: 0.9rem;
    }
    
    .detail-value {
        font-size: 1.5rem;
    }
    
    .hourly-forecast h2,
    .daily-forecast h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .hourly-item {
        min-width: 80px;
        padding: 0.8rem;
        min-height: 140px;
    }
    
    .hourly-icon {
        width: 40px;
        height: 40px;
    }
    
    .hourly-temp {
        font-size: 1.1rem;
    }
    
    .daily-item {
        padding: 0.8rem;
        gap: 0.8rem;
        grid-template-columns: 2fr 50px 2fr 80px;
    }
    
    .daily-icon {
        width: 40px;
        height: 40px;
    }
    
    .daily-temp-max {
        font-size: 1.3rem;
    }
    
    .daily-temp-min {
        font-size: 1rem;
    }
    
    .update-info {
        font-size: 0.9rem;
        padding: 1rem 0;
    }
}

/* Animaciones para lluvia */
.weather-container.rainy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 3px
        );
    animation: rain 0.6s linear infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes rain {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Gotas adicionales para lluvia */
.weather-container.rainy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            85deg,
            transparent,
            transparent 3px,
            rgba(200, 220, 255, 0.15) 3px,
            rgba(200, 220, 255, 0.15) 4px
        );
    animation: rain 0.8s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

/* Animaciones para clima soleado */
.weather-container.sunny::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: sunPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.weather-container.sunny::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: 
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.1) 2deg,
            transparent 4deg
        );
    animation: sunRays 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes sunRays {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Animaciones para tormenta */
.weather-container.stormy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            88deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.2) 2px,
            rgba(255, 255, 255, 0.2) 3px
        );
    animation: stormyRain 0.4s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}

.weather-container.stormy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    animation: lightning 3s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes stormyRain {
    0% { transform: translateY(-100vh) translateX(-20px); }
    100% { transform: translateY(100vh) translateX(20px); }
}

@keyframes lightning {
    0%, 90%, 100% { opacity: 0; }
    1%, 3%, 5% { 
        opacity: 0.1; 
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Animaciones para nieve */
.weather-container.snowy::before,
.weather-container.snowy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.7), transparent);
    background-repeat: repeat;
    background-size: 100px 100px, 120px 120px, 150px 150px;
    pointer-events: none;
}

.weather-container.snowy::before {
    animation: snowfall 8s linear infinite;
    opacity: 0.8;
}

.weather-container.snowy::after {
    animation: snowfall 12s linear infinite;
    opacity: 0.6;
    background-size: 80px 80px, 100px 100px, 130px 130px;
}

@keyframes snowfall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Animaciones para niebla */
.weather-container.misty::before,
.weather-container.misty::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

.weather-container.misty::before {
    animation: mist 15s ease-in-out infinite;
    opacity: 0.3;
}

.weather-container.misty::after {
    animation: mist 20s ease-in-out infinite reverse;
    opacity: 0.2;
}

@keyframes mist {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(50%); }
}

/* Animaciones para clima nocturno */
.weather-container.night::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.6), transparent);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: stars 8s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes stars {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Estilos específicos para modo kiosk */
body.kiosk-mode {
    overflow: hidden;
    cursor: none;
}

/* Forzar estilos portrait cuando se detecta kiosk mode */
body.kiosk-mode.force-portrait .weather-container {
    height: 100vh;
    max-width: 1080px;
    overflow-y: auto;
    overflow-x: hidden;
}

body.kiosk-mode.force-portrait .weather-header h1 {
    font-size: 4rem;
}

body.kiosk-mode.force-portrait .weather-header p {
    font-size: 1.5rem;
}

body.kiosk-mode.force-portrait .current-weather {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 2rem;
}

body.kiosk-mode.force-portrait #temperature {
    font-size: 10rem;
}

body.kiosk-mode.force-portrait .temperature-unit {
    font-size: 3.5rem;
}

body.kiosk-mode.force-portrait .feels-like {
    font-size: 1.5rem;
}

body.kiosk-mode.force-portrait .weather-icon {
    width: 250px;
    height: 250px;
}

body.kiosk-mode.force-portrait #weather-description {
    font-size: 2rem;
}

body.kiosk-mode.force-portrait .weather-details {
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
}

body.kiosk-mode.force-portrait .detail-label {
    font-size: 1.2rem;
}

body.kiosk-mode.force-portrait .detail-value {
    font-size: 2.8rem;
}

body.kiosk-mode.force-portrait .hourly-forecast h2,
body.kiosk-mode.force-portrait .daily-forecast h2 {
    font-size: 2rem;
}

body.kiosk-mode.force-portrait .hourly-item {
    min-width: 110px;
    padding: 1.2rem;
}

body.kiosk-mode.force-portrait .daily-item {
    padding: 1.2rem 1.5rem;
}

/* Estilos específicos para kiosk en 1080x1920 */
@media screen and (max-width: 1080px) {
    body.kiosk-mode.force-portrait {
        font-size: 18px;
    }
    
    body.kiosk-mode.force-portrait .weather-container {
        max-width: 100%;
        width: 100vw;
        height: 100vh;
        padding: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    body.kiosk-mode.force-portrait .weather-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    body.kiosk-mode.force-portrait .weather-header {
        flex-shrink: 0;
        padding-bottom: 2rem;
    }
    
    body.kiosk-mode.force-portrait .current-weather {
        flex-shrink: 0;
    }
    
    body.kiosk-mode.force-portrait .weather-details {
        flex-shrink: 0;
        margin-bottom: 2rem;
    }
    
    body.kiosk-mode.force-portrait .hourly-forecast,
    body.kiosk-mode.force-portrait .daily-forecast {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    body.kiosk-mode.force-portrait .hourly-container {
        flex: 1;
        overflow-x: auto;
    }
    
    body.kiosk-mode.force-portrait .daily-container {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    body.kiosk-mode.force-portrait .update-info {
        flex-shrink: 0;
        padding-top: 1.5rem;
    }
}