@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Playfair+Display:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');
/* ==========================================
   PERIÓDICO DIGITAL ESCOLAR COBAEJ
   PROYECTO PAEC
   ========================================== */


/* 1. CONFIGURACIÓN GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #555555;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* 2. ENCABEZADO INSTITUCIONAL */

header {
    background-color: #2e2b2dca;
    width: 100%;
    min-height: 75px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px 0 0;

    box-shadow: 0 2px 6px #bcb6b6;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* 3. LOGOTIPO COBAEJ */

.logo {
    background-color: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px;
}

.logo img {
    height: 95px;
    width: auto;
    display: block;
    object-fit: contain;
}


/* 4. MENÚ SUPERIOR */

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav button {
    background-color: transparent;
    border: none;

    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 18px;
    font-weight: 600;

    padding: 10px;
    cursor: pointer;

    transition: 0.3s;
}

nav button:hover {
    color: #ee367c;
}


/* 5. MENÚ LATERAL DERECHO */

.menu-lateral {
    position: fixed;

    right: 0;
    top: 110px;

    width: 240px;

    display: flex;
    flex-direction: column;

    gap: 12px;

    z-index: 100;

    max-height: calc(100vh - 95px);
    overflow-y: auto;
}


/* 6. DISEÑO DE LAS PESTAÑAS */

.menu-lateral button {
    background-color: #9C2382;
    color: white;

    border: 5px solid #331422be;
    border-right: none;

    border-radius: 35px 0 0 0;

    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0.3px;

    text-align: center;

    padding: 15px 10px;
    min-height: 70px;

    cursor: pointer;

    transition: 0.3s ease;
}


/* 7. EFECTO AL PASAR EL CURSOR */

.menu-lateral button:hover {
    background-color: #9C2382;

    transform: translateX(-8px);

    box-shadow: 0 4px 8px #dddddd;
}


/* 8. PESTAÑA SELECCIONADA */

.menu-lateral button.activa {
    background-color: #9C2382;
    border-color: #721456;
}


/* 9. CONTENIDO PRINCIPAL */

main {
    flex: 1;

    margin-right: 260px;

    padding: 55px 25px;

    min-height: 80vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* 10. CARRUSEL DE NOTICIAS */

.carrusel {
    width: 100%;
    max-width: 1150px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
}


/* 11. TARJETA DE NOTICIAS */

.noticia {
    width: 900px;
    max-width: 100%;
    min-width: 0;

    padding: 25px;

    background-color: #ffffff;

    border-radius: 15px;

    box-shadow: inset 0 2px 12px #cccccc;

    text-align: center;

    overflow: hidden;
}


/* 12. IMÁGENES DE LAS NOTICIAS */

.noticia img {
    width: 100%;
    height: 400px;

    object-fit: cover;

    border-radius: 12px;

    display: block;

    transition: 0.4s ease;
}


/* EFECTO SOBRE LAS IMÁGENES */

.noticia img:hover {
    filter: brightness(1.05);
}


/* 13. TÍTULOS DE LAS NOTICIAS */

.noticia h1 {
    font-size: 35px;
    font-weight: 900;

    color: #595e68;

    margin-top: 25px;
    margin-bottom: 15px;
}


/* 14. DESCRIPCIÓN DE LAS NOTICIAS */

.noticia p {
    font-size: 18px;

    color: #666666;

    line-height: 1.6;

    margin: 10px 15px 20px;
}


/* 15. FLECHAS DEL CARRUSEL */

.flecha {
    background-color: transparent;

    border: none;

    color: #170121;

    font-size: 45px;

    cursor: pointer;

    padding: 5px;

    flex-shrink: 0;

    transition: 0.3s;
}


/* EFECTO SOBRE LAS FLECHAS */

.flecha:hover {
    color: #ee367c;

    transform: scale(1.15);
}


/* 16. PIE DE PÁGINA */

footer {
    background-color: #2e2b2dca;

    color: white;

    text-align: center;

    padding: 25px 15px;

    font-size: 16px;
    font-weight: bold;

    width: 100%;

    margin-top: auto;
}


/* 17. SELECCIÓN DE TEXTO */

::selection {
    background-color: #9C2382;
    color: blueviolet;
}


/* 18. NAVEGACIÓN CON TECLADO */

button:focus-visible {
    outline: 3px solid #555555;
    outline-offset: -5px;
}


/* ==========================================
   19. ADAPTACIÓN PARA TABLETAS
   ========================================== */

@media (max-width: 1000px) {

    .menu-lateral {
        width: 200px;
    }

    .menu-lateral button {
        font-size: 17px;
        min-height: 65px;
    }

    main {
        margin-right: 215px;
        padding: 35px 15px;
    }

    .noticia img {
        height: 300px;
    }

    .noticia h1 {
        font-size: 28px;
    }

    .noticia p {
        font-size: 16px;
    }

    .flecha {
        font-size: 30px;
    }

    .carrusel {
        gap: 10px;
    }

}


/* ==========================================
   20. ADAPTACIÓN PARA CELULARES
   ========================================== */

@media (max-width: 700px) {

    header {
        flex-direction: column;
        padding: 10px;
        position: static;
    }

    .logo {
        border-radius: 8px;
    }

    .logo img {
        width: 170px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    nav button {
        font-size: 16px;
    }

    .menu-lateral {
        position: static;

        width: 100%;
        max-height: none;

        padding: 15px;

        display: flex;
        flex-direction: column;

        gap: 8px;
    }

    .menu-lateral button {
        border-radius: 12px;

        border: 3px solid #ffcc00;

        font-size: 16px;

        min-height: 45px;

        padding: 10px;
    }

    .menu-lateral button:hover {
        transform: none;
    }

    main {
        margin-right: 0;

        padding: 15px 5px;

        min-height: auto;
    }

    .carrusel {
        gap: 5px;
    }

    .noticia {
        padding: 12px;
    }

    .noticia img {
        height: 220px;
    }

    .noticia h1 {
        font-size: 24px;
    }

    .noticia p {
        font-size: 15px;
        margin: 10px 0;
    }

    .flecha {
        font-size: 22px;
    }

    footer {
        font-size: 14px;
    }

}
/* ==========================================
   DISEÑO EDITORIAL DE LAS NOTICIAS
   ========================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #555555;
}

/* Espacio del contenido principal */

main {
    padding: 35px 30px;
    min-width: 0;
    align-items: flex-start;
}

/* Contenedor del artículo */

.lectura-noticia {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Título principal */

.lectura-noticia h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1.2;
    color: #292929;
    margin: 25px 0;
}

/* Nombre de los autores */

.autor-noticia {
    font-size: 15px;
    color: #777777;
    margin-bottom: 25px;
}

/* Fotografía principal */

.foto-principal {
    display: block;
    width: 100%;
    max-width: 850px;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    margin: 25px auto;
    border-radius: 8px;
}

/* Texto de la noticia */

.articulo-completo {
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.8;
    color: #333333;
    overflow-wrap: anywhere;
}

/* Separación entre párrafos */

.articulo-completo p {
    margin-bottom: 22px;
    text-align: justify;
}

/* Subtítulos */

.articulo-completo h1,
.articulo-completo h2,
.articulo-completo h3,
.articulo-completo h4 {
    font-family: Montserrat, Arial, sans-serif;
    color: #50163e;
    font-size: 25px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Fotografías importadas desde Word */

.articulo-completo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    margin: 25px auto;
    border-radius: 8px;
}

/* Textos en negrita */

.articulo-completo strong {
    color: #50163e;
}

/* Adaptación a celulares */

@media (max-width: 700px) {

    main {
        padding: 15px;
    }

    .lectura-noticia {
        padding: 15px;
    }

    .lectura-noticia h1 {
        font-size: 28px;
    }

    .articulo-completo {
        font-size: 17px;
    }

    .foto-principal {
        max-height: 280px;
    }

}.regresar {
    background-color: #9c207d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.regresar:hover {
    background-color: #50163e;
}#nombreSeccion {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 30px;
    color: #50163e;
    border-bottom: 4px solid #9c207d;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* AJUSTE DE FOTOGRAFÍAS Y CARRUSEL */

.cuadricula-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.tarjeta-noticia img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.carrusel-destacado {
    position: relative;
    width: 100%;
    height: 420px;
    grid-column: 1 / -1;
    overflow: hidden;
    border-radius: 12px;
    background-color: #333333;
}

#diapositiva {
    width: 100%;
    height: 100%;
}

#diapositiva img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texto-carrusel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 55px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.95)
    );
}
/* ACABADO VISUAL DEL CARRUSEL */

.texto-carrusel {
    box-sizing: border-box;
    padding: 45px 60px 30px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.95)
    );
}

.texto-carrusel span {
    color: #ffb8e9;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.texto-carrusel h2 {
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1.2;
    margin: 12px 0;
    color: white;
}

.texto-carrusel p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.texto-carrusel button {
    background-color: #9c207d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.texto-carrusel button:hover {
    background-color: #50163e;
}

/* FLECHAS DE NAVEGACIÓN */

.flecha-anterior,
.flecha-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.flecha-anterior {
    left: 12px;
}

.flecha-siguiente {
    right: 12px;
}

.flecha-anterior:hover,
.flecha-siguiente:hover {
    background-color: #9c207d;
}

/* INDICADORES */

#indicadores {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
    background-color: #999999;
    cursor: pointer;
}

.punto.activo {
    background-color: #e94dbd;
}

@media (max-width: 700px) {
    .texto-carrusel {
        padding: 20px 45px;
    }

    .texto-carrusel h2 {
        font-size: 23px;
    }
}

/* ==========================================
   AJUSTE DEL MENÚ DE SEIS SECCIONES
   ========================================== */

.menu-lateral {
    gap: 10px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.menu-lateral button {
    min-height: 65px;
    padding: 12px 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Adaptación a celulares */

@media (max-width: 700px) {

    .menu-lateral {
        max-height: none;
        overflow: visible;
        gap: 8px;
    }

    .menu-lateral button {
        min-height: 45px;
        font-size: 16px;
        padding: 10px;
    }

}

/* ==========================================
   SECCIÓN ¿QUIÉNES SOMOS?
   ========================================== */

.pagina-nosotros {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    box-sizing: border-box;
}

/* Portada institucional */

.portada-nosotros {
    background: linear-gradient(135deg, #555555, #303030);
    color: white;
    text-align: center;
    padding: 20px 25px 35px;
    border-radius: 12px;
    border-bottom: 6px solid #9c207d;
}

.portada-nosotros img {
    display: block;
    width: 400px;
    max-width: 85%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.portada-nosotros h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    margin: 0 0 10px;
    color: white;
}

.portada-nosotros h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    font-style: italic;
    font-weight: normal;
    color: #f4b9e3;
    margin: 15px 0;
}

.portada-nosotros p {
    font-size: 16px;
    color: #eeeeee;
}

/* Descripción institucional */

.descripcion-nosotros {
    padding: 30px 20px;
}

.descripcion-nosotros h2 {
    font-family: Georgia, serif;
    color: #9c207d;
    font-size: 28px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.descripcion-nosotros p {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    color: #333333;
    margin-bottom: 20px;
}

/* Misión y visión */

.mision-vision {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.tarjeta-institucional {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    border-top: 5px solid #9c207d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

.tarjeta-institucional h2 {
    margin-top: 0;
}

/* Valores institucionales */

.valores-nosotros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.valores-nosotros span {
    border: 2px solid #9c207d;
    border-radius: 25px;
    padding: 10px 18px;
    color: #50163e;
    background-color: #faf2f8;
    font-weight: bold;
    font-size: 15px;
}

/* Frase de cierre */

.frase-nosotros {
    background-color: #50163e;
    color: white;
    padding: 35px;
    margin-top: 40px;
    border-radius: 12px;
    font-family: Georgia, serif;
    font-size: 23px;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

.frase-nosotros strong {
    display: block;
    margin-top: 20px;
    color: #f4b9e3;
    font-size: 27px;
}

/* Adaptación a dispositivos móviles */

@media (max-width: 700px) {

    .mision-vision {
        grid-template-columns: 1fr;
    }

    .portada-nosotros h1 {
        font-size: 30px;
    }

    .portada-nosotros h2 {
        font-size: 21px;
    }

    .descripcion-nosotros {
        padding: 20px 10px;
    }

    .descripcion-nosotros p {
        font-size: 16px;
    }

    .frase-nosotros {
        padding: 25px;
        font-size: 19px;
    }

    .frase-nosotros strong {
        font-size: 22px;
    }

}
/* AJUSTE DEFINITIVO DE LA PORTADA */

.portada-nosotros {
    padding: 30px 25px 40px;
    overflow: hidden;
}

/* Tamaño y posición del logotipo */

.portada-nosotros img {
    display: block;
    width: 450px;
    max-width: 85%;
    height: auto;
    margin: -70px auto -90px;
    object-fit: contain;
}

/* Nombre del periódico */

.portada-nosotros h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin: 0 0 10px;
    color: white;
}

/* Eslogan */

.portada-nosotros h2 {
    font-size: 24px;
    font-style: italic;
    font-weight: normal;
    margin: 10px 0 15px;
    color: #f4b9e3;
}

/* Nombre del plantel */

.portada-nosotros p {
    font-size: 16px;
    margin: 10px 0;
    color: #eeeeee;
}

/* Adaptación a celulares */

@media (max-width: 700px) {

    .portada-nosotros img {
        width: 300px;
        margin: -40px auto -55px;
    }

    .portada-nosotros h1 {
        font-size: 28px;
    }

    .portada-nosotros h2 {
        font-size: 19px;
    }

    .portada-nosotros p {
        font-size: 14px;
    }

}

/* ==========================================
   DISEÑO EDITORIAL DE TARJETAS DE NOTICIAS
   ========================================== */

.cuadricula-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    align-items: stretch;
}

/* Tarjeta individual */

.tarjeta-noticia {
    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-noticia:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Fotografía */

.tarjeta-noticia > img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

/* Información de la noticia */

.informacion-noticia {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Nombre de la categoría */

.categoria-noticia {
    color: #9c207d;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Título */

.informacion-noticia h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1.3;
    color: #333333;
    margin: 0 0 12px;
}

/* Autor y fecha */

.informacion-noticia small {
    display: block;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Resumen */

.informacion-noticia p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 20px;
}

/* Botón para leer la noticia */

.informacion-noticia button {
    display: block;
    width: 100%;
    background-color: #9c207d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
    transition: background-color 0.3s;
}

.informacion-noticia button:hover {
    background-color: #50163e;
}

/* Conservar el carrusel a todo lo ancho */

.carrusel-destacado {
    grid-column: 1 / -1;
}

/* Adaptación a celulares */

@media (max-width: 700px) {

    .cuadricula-noticias {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tarjeta-noticia > img {
        height: 200px;
    }

    .informacion-noticia {
        padding: 18px;
    }

    .informacion-noticia h2 {
        font-size: 21px;
    }

}

/* ==========================================
   BUSCADOR DE NOTICIAS
   ========================================== */

.buscador-noticias {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 25px;
}

.buscador-noticias input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 2px solid #dddddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.buscador-noticias input:focus {
    border-color: #9c207d;
    box-shadow: 0 0 5px rgba(156, 32, 125, 0.2);
}

.buscador-noticias button {
    background-color: #9c207d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.buscador-noticias button:hover {
    background-color: #50163e;
}

.buscador-noticias .limpiar-busqueda {
    background-color: #555555;
}

.buscador-noticias .limpiar-busqueda:hover {
    background-color: #333333;
}

/* Resultados */

.resultado-busqueda {
    grid-column: 1 / -1;
    font-size: 16px;
    color: #555555;
    margin-bottom: 10px;
}

.sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    color: #555555;
}

/* Adaptación a celulares */

@media (max-width: 700px) {

    .buscador-noticias {
        flex-wrap: wrap;
    }

    .buscador-noticias input {
        flex-basis: 100%;
    }

    .buscador-noticias button {
        flex: 1;
        padding: 12px;
    }

}
