/* Fuentes locales del PT */
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Bruno Ace SC";
    src: url("../fonts/BrunoAceSC-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --fuente-general: "Bruno Ace SC", "Montserrat", Arial, sans-serif;
    --fuente-titulos: "Bruno Ace SC", "Montserrat", Arial, sans-serif;
}

body {
    font-family: var(--fuente-general);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--fuente-titulos);
}

/* Logo principal del menú. Se fuerza su caja y visibilidad para evitar que
   los estilos generales del tema lo oculten detrás del carrusel. */
.navbar-light .navbar-brand {
    position: relative;
    z-index: 1001;
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
}

.navbar-light .navbar-brand .navbar-logo {
    display: block !important;
    width: auto;
    height: 94px;
    max-height: none;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain;
    transition: width 0.5s, height 0.5s;
}

.sticky-top.navbar-light .navbar-brand .navbar-logo {
    width: auto;
    height: 66px;
    max-height: none;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-brand .navbar-logo,
    .sticky-top.navbar-light .navbar-brand .navbar-logo {
        width: auto;
        height: 72px;
        max-height: none;
    }
}

        /*  Sobrescribe las variables DESPUES de cargar Bootstrap */
            html:root {
                --bs-primary: #f52620;   /* red pantone para pt */
                --bs-secondary: #8d99aeff; /* cool gray */
                --bs-success: #07a06f;   /* Verde turquesa */
                --bs-info: #10c4cd;      /* Azul verdoso */
                --bs-warning: #FBEA56;   /* Naranja de8603 */
                --bs-danger: #dc3545;    /* Rojo Bootstrap (puedes cambiarlo) */
                --bs-light: #f8f9fa;     /* Gris claro (default) */
                --bs-dark: #333;      /* Negro (default) 0k*/ 
            }

/* Primary */
.bg-primary {
    background-color: #f52620 !important;
}
.text-primary {
    color: #f52620 !important;
}
.btn-primary {
    background-color: #f52620 !important;
    border-color: #f52620 !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #8d99aeff !important;
    border-color: #8d99aeff !important;
    color: #fff;
}

.bg-light {
    background-color: rgb(244, 244, 244) !important;
}

/* Secondary */
.bg-secondary {
    background-color: #b6cc12 !important;
}
.text-secondary {
    color: #202020 !important;
}
.btn-secondary {
    background-color: #b6cc12 !important;
    border-color: #b6cc12 !important; 
    color: #fff !important;
}
.btn-secondary:hover {
    background-color: rgb(251, 234, 86) !important;/*Para pt*/
    border-color: #f52620 !important;
    color: #fff !important;
}

.text-vino {
    color: #e4808a !important;
}

/* custom.css */
/* Fondo gris y texto primary para los headers */
.accordion-button {
    background-color: #f8f9fa !important; /* Fondo gris claro */
    color: #495057 !important; /* Texto gris oscuro (Bootstrap's gray-7) */
    border-color: #dee2e6 !important;
}

/* Estilo cuando el acordeón está abierto */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa !important;
    color: var(--bs-primary) !important;
    box-shadow: none !important; /* Elimina sombra (opcional) */
}

/* Hover effect */
.accordion-button:hover {
    background-color: #e9ecef !important;
}

/* Ajustes para el cuerpo del acordeón */
.accordion-body {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

/* Bordes redondeados para los ítems */
.accordion-item {
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 12px !important;
}

/* Estilo para la flecha del acordeón cuando está expandida (apunta hacia arriba) */
.accordion-button:not(.collapsed)::after {
    /* Aplica el mismo filtro o color gris para el estado expandido */
    filter: brightness(0.5) grayscale(100%);
    color: gray;
}
/*hasta aqui esta bien*/




/* estilos para el paginador */
.pagination.small-pager .page-link {
    padding: 6px 12px;
    margin: 0;
    font-size: 0.85rem;
    color: gray;
    background-color: #f0f0f0;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease-in-out;
}

.pagination.small-pager .page-item:first-child .page-link {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.pagination.small-pager .page-item:last-child .page-link {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.pagination.small-pager .page-item.active .page-link {
    background-color: #ff4d4d;
    color: #fff;
}

.pagination.small-pager .page-item.disabled .page-link {
    background-color: #e0e0e0;
    color: #ccc;
    pointer-events: none;
}

/*  estilos para entrada */
.blog-container {
    max-width: 1130px;
    margin: 0 auto;
}

.blog-article {
    width: 730px;
    background-color: white;
    padding: 0;
    border-radius: 0.375rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 0 50px;
}

.blog-meta {
    background-color: #f8f9fa;
    padding: 15px 50px;
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-sidebar {
    width: 350px;
}

.blog-sidebar .card {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.prev-next {
    background-color: white;
    padding: 30px 50px;
    margin-top: 30px;
    border-radius: 0.375rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .blog-container {
        padding: 0 1rem;
    }

    .blog-article,
    .blog-sidebar {
        width: 100% !important;
    }

    .row.gap-5 {
        gap: 2rem !important;
    }
}



/* En tu archivo CSS personalizado (debe cargarse DESPUÉS de Bootstrap) */
.row.blog-card .blog-title {

    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.row.blog-card .blog-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.row.blog-card .blog-title:hover {
    color: #e74c3c;
}

.row.blog-card .blog-title:hover::after {
    width: 100%;
}



/* =========>  ventana emergente */
/* Modal 520x800 */
  #promoModal .modal-dialog {
    max-width: 520px;
  }
  #promoModal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden; /* recorta la imagen a 520x800 */
  }
  #promoModal .modal-body {
    padding: 0;
  }
  #promoModalImg {
    display: block;
    width: 520px;
    height: 800px;
    max-width: 100%;
    /* en pantallas pequeñas, el alto se ajusta manteniendo proporción */
    height: auto;
  }

  /* Botón de cierre flotante */
  #promoModal .btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    filter: invert(1);
  }

  /* En móviles, quepa bien */
  @media (max-width: 576px) {
    #promoModal .modal-dialog {
      max-width: 94vw;
    }
    #promoModalImg {
      width: 100%;
      height: auto;
    }
  }
/* El contenido administrativo debe ocupar todo el espacio restante junto al menú. */
#wrapper {
    width: 100%;
    min-width: 0;
}

#wrapper #content-wrapper {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

#wrapper #content-wrapper #content {
    width: 100%;
    min-width: 0;
}

.school-admin-wide {
    width: 100%;
    min-width: 0;
}

@media (min-width: 1200px) {
    .school-admin-wide > .row > .col-xl-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .school-admin-wide > .row > .col-xl-8 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}
