/* CONFIGURACIÓN BÁSICA DE UN ARCHIVO CSS */

/* 1. TIPOGRAFÍAS */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* 2. ICONOS */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

* {
    font-family: 'Nunito', sans-serif;
}

:root {
    --color-primario: #007bff;
    --color-secundario: #0c498a;
    --blanco-color: #ffffff;
    --gris-proyecto: #969696;
    --tercer-azul: #1a73d3;
    --titulo-principal: 48px;
    --subtitulo-seccion: 32px;
    --titulo-bloque: 24px;
    --subtitulo-menor: 18px;
    --parrafos: 16px;
    --texto-auxiliar: 14px;
}

.btn-azul {
    border-radius: 25%;
    width: auto;
    background-color: var(--color-primario);
    height: auto;
    padding: 10px;
}

.btn-rojo {
    border-radius: 25%;
    width: auto;
    background-color: red;
    height: auto;
    padding: 10px;
}

.campos-formulario {
    border-radius: 17%;
    background: #BFD2F8;
}

#hero .fondo-hero {
    filter: blur(0);
}

#hero::before {
    content: "";
    width: 100%;
    height: 100%;
    background: #bfd2f86e;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
}

#hero::after {
    content: "";
    width: 350px;
    height: 10px;
    background: #bfd2f8;
    z-index: 1;
    position: absolute;
    bottom: -10px;
    left: 0;
}

#hero h3 {
    color: var(--color-secundario);
    letter-spacing: 0;
    font-size: var(--subtitulo-menor);
    font-weight: 400;
}

#hero .rectangulo {
    position: absolute;
}

#hero .rectangulo.rectangulo-1 {
    bottom: -8px;
    left: 350px;
}

#hero .rectangulo.rectangulo-2 {
    right: 0;
    bottom: -12px;
    width: 349px;
}

#news {
    padding: 120px 0 120px 0;
}

/* Artículos principales */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primario);
}

.news-meta i {
    font-size: 16px;
    color: var(--color-primario);
}

.news-meta .ojo {
    color: #526AE9;
}

.news-meta .corazon {
    color: red;
}

.news-title {
    font-size: var(--subtitulo-seccion);
    color: var(--color-secundario);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--color-secundario);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secundario);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    background: #BFD2F8;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--tercer-azul);
    color:  var(--blanco-color);
    gap: 12px;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Sidebar */
.sidebar-widget {
    background: var(--blanco-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: var(--titulo-bloque);
    color: var(--color-secundario);
    margin-bottom: 25px;
    padding-bottom: 15px;
}

/* Buscador */
.search-box {
    position: relative;
    display: flex;
}

.search-box .form-control {
    padding: 12px 50px 12px 20px;
    border: 1px solid var(--blanco-color);
    border-radius: 5px;
    font-size: 15px;
    background: var(--color-primario);
    margin-bottom: 24px;
    color: var(--blanco-color);
}

.search-box .form-control::placeholder {
    color: var(--blanco-color);
}

.search-box .form-control:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.1);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 35%;
    transform: translateY(-50%);
    border: none;
    color: var(--blanco-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

/* Publicaciones recientes */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
}

.recent-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-content {
    flex: 1;
}

.post-date {
    font-size: 12px;
    color: var(--color-primario);
    display: block;
    margin-bottom: 5px;
}

.post-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secundario);
    text-decoration: none;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #0066ff;
}

/* Categorías */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 15px;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-secundario);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: var(--subtitulo-menor);
}

.categories-list a:hover {
    background: #e8f2ff;
    color: var(--tercer-azul);
}

.categories-list .badge {
    background: var(--color-primario);
    color: var(--blanco-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Paginación */
.news-pagination {
    margin-top: 60px;
    padding-top: 40px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
}

.page-item {
    list-style: none;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent !important;
    color: var(--color-primario);
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
    transition: color 0.3s ease;
}

.page-link:hover {
    color: var(--color-secundario);
}

/* Números de página */
.page-item:not(:first-child):not(:last-child) .page-link {
    padding: 0 8px;
}

/* Página activa */
.page-item.active .page-link {
    color: var(--color-secundario);
    font-weight: 700;
}

/* Botones Anterior/Siguiente */
.page-prev,
.page-next {
    color: var(--color-primario) !important;
    font-weight: 400;
    font-size: 16px;
}

.page-prev:hover,
.page-next:hover {
    color: var(--color-secundario) !important;
}

/* Flechas */
.page-prev i,
.page-next i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-link {
        font-size: 15px;
    }
    
    .page-prev,
    .page-next {
        font-size: 13px;
    }
    
    .page-prev i,
    .page-next i {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .pagination {
        gap: 3px;
    }
    
    .page-link {
        font-size: 14px;
    }
    
    .page-prev,
    .page-next {
        font-size: 12px;
    }

    /* Ocultar algunos números en móvil para ahorrar espacio */
    .page-item:nth-child(4),
    .page-item:nth-child(5) {
        display: none;
    }
    
    /* Simplificar texto en móvil */
    .page-prev span,
    .page-next span {
        display: none;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .news-img {
        height: 300px;
    }

    .news-title {
        font-size: 24px;
    }

    .sidebar-widget {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    #news {
        padding: 60px 0;
    }

    .news-img {
        height: 250px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 22px;
    }

    .news-meta {
        gap: 15px;
        font-size: 13px;
    }

    .btn-read-more {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ESTILOS RESPONSIVE */
/* 📱 Tablets verticales (iPad Mini, Galaxy Tab en vertical) */
@media screen and (min-width: 768px) and (max-width: 899px) {
    #hero .rectangulo.rectangulo-1 {
        display: none;
    }

    #hero .rectangulo.rectangulo-2 {
        display: none;
    }

    #hero::after {
        width: 100%;
    }
}

/* ESTILOS RESPONSIVE MOVIL */
@media screen and (min-width: 320px) and (max-width: 767px) {
    #hero .rectangulo.rectangulo-1 {
        display: none;
    }

    #hero .rectangulo.rectangulo-2 {
        display: none;
    }

    #hero::after {
        width: 100%;
    }
}