#margen_inicio h1, #margen_inicio p {
    text-align: center !important;
}

#imagen_inicio {
    pointer-events: none;
    user-select: none;
    width: 40%;
    position: absolute;
}

/*
#inicio {
    padding: 2rem 15rem;
    background: var(--fondo);
}

#inicio #ruta {
    color: var(--color_p);  
}

#inicio h1, #inicio p, #inicio #ruta a {
    text-align: center;
    color: var(--color_p);
}

*/

#inicio {
    border-bottom: none;
}

#seccion a {
    background: var(--background_div);
    border-radius: 16px;
    overflow: hidden;
    color: var(--color_p);
    text-decoration: none;
}

#seccion a:hover {
    background: rgba(196, 196, 196, 0.1);
}

.texto_noticia {
    padding: 1rem;
}

#difuminado_uno {
    position: fixed;
    width: 190rem;
    height: 190rem;
    top: -110rem;
    right: -80rem;
    background: radial-gradient(circle, grey 0%, rgba(255, 0, 0, 0) 50%);
    pointer-events: none;
    opacity: 0.4;
    overflow: hidden;
}


.imagen_articulo {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.imagen_noticia_secundaria {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.usuario {
    box-sizing: border-box;
    width: 100%;
    position: absolute;
    bottom: 0rem;
    left: 0rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;

    background: linear-gradient(to top, var(--background_div) 10%, transparent 100%);
}

.imagen_usuario {
    margin-right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
}

 #buscador {
     border: none;
 }

 /* SERVICIOS */
#contenido {
	position: relative;
	background: var(--fondo);
}

#busqueda {
    background: var(--background_div);
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: sticky;
    top: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    border: var(--border);
    z-index: 999;
    padding: 1rem;
    border-radius: 16px;
}

#categorias_drones {
    width: 100%;
    overflow-x: auto;
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.a_drones {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    border: var(--border);
    background: var(--background_div);
    text-decoration: none;
}

.a_drones h3 {
    color: var(--color_p);
    text-decoration: none;
}


.imagen_dron {
    width: 8rem;
}

#categorias {
    overflow-x: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.categoria {
    cursor: pointer;
    border: var(--border);
    background: transparent;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--color_p);
    font-weight: 600;
    font-size: 1rem;
}

.categoria:hover {
    background: white;
    color: black;
}

.noticia_categoria {
    width: fit-content;
    margin: 0 0 0.5rem 0;
    display: inline-block;
    border-radius: 16px;
    padding: 0.2rem 0.5rem;
    border: var(--border);
}

#noticias {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 0 0 0;
}

/* SECCION */
#seccion {
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    color: var(--color_p);
}


/* NOTICIAS RELEVANTES */
#noticias_relevantes {
    width: 100%;
    padding-bottom: 4rem;
}

#noticias_relevantes .noticia_categoria {
    border-color: var(--border);
    color: var(--color_p);
}

#crear_noticia {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: inline-block;
    padding: 2rem;
    color: white;
    text-decoration: none;
    width: 100%;
    height: 10rem;
    border-radius: 16px;
    border: var(--border);
}

#crear_noticia #difuminado {
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    padding: 2rem;
    color: black;
    
    backdrop-filter: blur(8px);
    -webkit-mask-image: radial-gradient(circle at left center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
    will-change: backdrop-filter, -webkit-mask-image;
}

#difuminado h2, #difuminado p {
    font-size: 1.6rem;
    z-index: 9999;
}

#imagen_crear_noticia {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

/* NOTICIA PRINCIPAL */
#noticias_principales {
    display: flex;
    gap: 2rem;
    flex-direction: row;
}

#noticias_principales_dos {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#noticia_principal {
    border: var(--border);
    width: 50%;
    display: flex;
    flex-direction: column;
}

#noticia_principal:hover {
    background: rgba(196, 196, 196, 0.1);
}

#imagen_noticia_principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia_principal_dos {
    border: var(--border);
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 33%;
}

.noticia_texto_principal_dos {
    padding: 1rem;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.imagen_noticia_principal_dos {
    border-left: var(--border);
    overflow: hidden;
    position: relative;
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: -webkit-fill-available;
}

.imagen_noticia_entero {
    border-bottom: var(--border);
    width: 100%;
    object-fit: cover;
    height: 12rem;
}



#texto_noticia_principal {
    width: 30%;
    margin-top: 1rem;
    margin-left: 1rem;
}

#noticia_principal h2 {
    font-size: 2.5rem;
}

#noticia_principal p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 1.5rem;
}

/* NOTICIAS SECUNDARIAS */
#noticias_secundarias {
    display: flex;
    flex-direction: row;
    margin: 2rem 0 2rem 0;
    gap: 2rem;
    justify-content: center;
}

#noticias_secundarias a {
    border: var(--border);
    width: 50%;
    height: 100%;
    text-decoration: none;
    color: var(--color_p);
}

#noticias_secundarias a .imagen_noticia {
    max-height: 30rem;
    object-fit: cover;
    width: 100%;
}


/* CADA NOTICIA*/
.noticia {
    background: var(--background_div);
    border: var(--border);
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color_p);
}

.noticia:hover {
    background: rgba(196, 196, 196, 0.1);
}

.noticia a {
    color: var(--color_p);
    text-decoration: none;
}

.noticia_texto {
    padding: 1rem;
}

.noticia .imagen_noticia {
    object-fit: cover;
    width: 100%;
    height: 20rem;
}

.imagen_noticia {
    height: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: var(--border);
}



.paginacion {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.boton_paginacion {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--color_p);
    border: var(--border);
    border-radius: 16px;
    transition: background-color 0.3s;
}

.boton_paginacion:hover {
    color: black;   
    background-color: white;
}

.boton_paginacion.activo {
    background-color: var(--background_div);
    color: var(--color_p);
    border: var(--border);
}

#fondo_estrellas {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.estrella {
  position: absolute;
  background: grey;
  border-radius: 50%;
  pointer-events: none;
  animation: animate 5s linear infinite;
  z-index: 1;
}

@keyframes animate {
  0% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  100% {
    transform: scale(1) translateX(-2000%) translateY(-2000%);
    opacity: 0;
  }
}

/* CARROUSEL */
            #carrusel_noticias {
                position: relative;
                width: 100%;
                padding: 40px 0;
                background: transparent;
            }
            
            




            
/* METAR */
.tiempo-panel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    
}

.dia-tiempo {
    min-width: 150px;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.dia-tiempo img {
    width: 60px;
}

.volar-si {
    border: 2px solid #2ecc71;
    background: #eafaf1;
}

.volar-no {
    border: 2px solid #e74c3c;
    background: #fdecea;
}

.flecha {
    display: inline-block;
    font-size: 1.5rem;
    margin-left: 5px;
}

.weather_widget {
    overflow-x: hidden;
    padding: 1rem;
    border-radius: 16px;
    height: auto !important;
    background: radial-gradient(circle, #21395f, #4177B5) !important;
}

#weather_days {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.weather_day {
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    padding: 1rem;
    border: solid white 2px;
    border-radius: 16px;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
    


/* === CARD BASE (APPLE STYLE) === */
.metar_card {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* === DÍA === */
.metar_day {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 0.4rem;
}

/* === TEXTO === */
.metar_row {
    font-size: 0.8rem;
    margin: 0.25rem 0;
    opacity: 0.95;
}

/* === PROBABILIDADES === */
.metar_prob {
    margin-top: 0.45rem;
    font-size: 0.7rem;
    opacity: 0.85;
}

.prob_bar {
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    overflow: hidden;
    height: 6px;
    margin-top: 4px;
}

.prob_fill {
    height: 100%;
    border-radius: 999px;
}

.rain {
    background: linear-gradient(90deg, #5dade2, #3498db);
}

.storm {
    background: linear-gradient(90deg, #af7ac5, #8e44ad);
}

/* === ESTADO FINAL === */
.metar_status {
    margin-top: 0.7rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}


/* RESPONSIVE */
@media (max-width: 800px) {
    #busqueda {
        top: 5rem;
        padding: 1rem;
    }
    
    #noticia_principal h2 {
        font-size: 1.6rem;
    }
    
    #noticias_principales {
        flex-direction: column;
    }
    
    #noticia_principal, #noticias_principales_dos {
        width: 100%;
    }
    
    #noticias_secundarias {
        flex-direction: column;
    }
    
    #noticias_secundarias a {
        width: 80%;
    }
    
    #texto_noticia_principal{
        width: 80%;
    }
    
    #buscador, .categoria {
        font-size: 0.8rem;
    }
    
    #noticias {
        padding: 1rem;
        grid-template-columns: repeat(1, 1fr);
    }
    
    #seccion {
        padding: 1rem;
    }
    
    #drones {
        display: none;
    }
    
    #noticias_relevantes {
        width: 100%;
    }

}
.adsense-center {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
