html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    padding-bottom: 48px;
}

.contenido-principal {
    flex: 1 0 auto;
}

@media (min-width: 768px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: calc(100% - 3rem);
    }
}

@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: calc(100% - 4rem);
    }
}

@media (max-width: 767.98px) {
    .container,
    .container-sm {
        max-width: 100%;
        padding-right: .75rem;
        padding-left: .75rem;
    }
}

.contenido-principal > section.py-5 {
    padding-top: 1.5rem !important;
}

.contenido-principal > section.py-4 {
    padding-top: 1rem !important;
}

.aviso-cookies {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: flex-end;
    padding-bottom: 56px;
    background: rgba(0, 0, 0, .58);
}

body.cookies-pendientes {
    overflow: hidden;
}

.aviso-cookies-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 150px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--bs-primary);
    border-radius: 0;
    background: var(--bs-white);
    color: var(--bs-dark);
    pointer-events: auto;
}

.aviso-cookies-contenido p {
    font-size: 1rem;
    color: var(--bs-dark);
}

.aviso-cookies-contenido a {
    color: var(--bs-primary);
    font-weight: 600;
}

.logo-ampa {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: .25rem;
    background: var(--bs-white);
}

.seccion-hero {
    padding: 1.5rem 0 1rem;
}

.panel-login {
    max-width: 440px;
}

.carrusel-3d {
    position: relative;
    min-height: clamp(300px, 46vw, 540px);
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(var(--bs-primary-rgb), .18), transparent 58%),
        linear-gradient(135deg, rgba(0, 0, 0, .82), rgba(var(--bs-primary-rgb), .52));
    perspective: 1200px;
}

.carrusel-3d-escena {
    position: relative;
    min-height: clamp(300px, 46vw, 540px);
    transform-style: preserve-3d;
}

.carrusel-3d-item {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(72vw, 920px);
    height: min(38vw, 430px);
    min-height: 240px;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(.45);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .35);
    opacity: 0;
    transition: transform .75s ease, opacity .75s ease, filter .75s ease, z-index .75s ease;
    pointer-events: none;
}

.carrusel-3d-item.activo {
    z-index: 5;
    transform: translate(-50%, -50%) translateZ(140px) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.carrusel-3d-item.anterior {
    z-index: 4;
    transform: translate(-94%, -50%) rotateY(38deg) translateZ(-130px) scale(.72);
    opacity: .72;
    filter: saturate(.78) brightness(.78);
}

.carrusel-3d-item.siguiente {
    z-index: 4;
    transform: translate(-6%, -50%) rotateY(-38deg) translateZ(-130px) scale(.72);
    opacity: .72;
    filter: saturate(.78) brightness(.78);
}

.carrusel-3d-item.fondo-izquierda {
    z-index: 2;
    transform: translate(-116%, -50%) rotateY(48deg) translateZ(-300px) scale(.52);
    opacity: .35;
    filter: saturate(.55) brightness(.62);
}

.carrusel-3d-item.fondo-derecha {
    z-index: 2;
    transform: translate(16%, -50%) rotateY(-48deg) translateZ(-300px) scale(.52);
    opacity: .35;
    filter: saturate(.55) brightness(.62);
}

.carrusel-3d-item.oculto {
    z-index: 1;
    opacity: 0;
}

.carrusel-3d-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, .08);
}

.carrusel-3d-item.activo {
    cursor: zoom-in;
}

.foto-carrusel-modal {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    object-fit: contain;
    background: var(--bs-light);
    border-radius: .5rem;
}

.carrusel-3d-texto {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .08));
    text-shadow: 0 .125rem .35rem rgba(0, 0, 0, .55);
}

.carrusel-3d-control {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .74) !important;
    border-radius: 50%;
    background: rgba(0, 0, 0, .48);
    color: #fff;
}

.carrusel-3d-control:hover,
.carrusel-3d-control:focus {
    background: var(--bs-primary);
    color: #fff;
}

.carrusel-3d-control-prev {
    left: 1rem;
}

.carrusel-3d-control-next {
    right: 1rem;
}

.imagen-carrusel {
    min-height: clamp(260px, 42vw, 480px);
    background-position: center;
    background-size: cover;
}

.superposicion-carrusel {
    background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .12));
}

.tarjeta-acceso {
    border-radius: .5rem;
}

.card {
    border: 1px solid #000 !important;
    border-radius: .5rem;
    overflow: hidden;
}

.recuadro-inicio {
    border: 1px solid #000 !important;
    border-radius: .5rem;
}

.carousel.recuadro-inicio {
    overflow: hidden;
}

.tabla-acciones {
    width: 1%;
    white-space: nowrap;
}

.table {
    border: 1px solid #000 !important;
}

.table > :not(caption) > * > * {
    border-color: #000 !important;
}

.table > thead > tr > * {
    background-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.table > tbody > tr:nth-child(odd) > * {
    background-color: rgba(var(--bs-primary-rgb), .06);
}

.table > tbody > tr:nth-child(even) > * {
    background-color: rgba(var(--bs-secondary-rgb), .08);
}

.table .btn {
    border-color: #000 !important;
}

.card .btn {
    border-color: #000 !important;
}

.input-group .btn[data-ver-contrasena] {
    border-color: var(--bs-border-color) !important;
}

.grupo-contrasena-alta .form-control,
.grupo-contrasena-alta .btn {
    border-color: var(--bs-border-color) !important;
}

.imagen-anuncio {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: transparent;
    border-radius: .375rem;
}

.contenido-anuncio {
    overflow-wrap: anywhere;
    white-space: normal;
}

.resumen-anuncio {
    display: -webkit-box;
    min-height: 5.8em;
    max-height: 5.8em;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.resumen-anuncio-sin-foto {
    min-height: 16.25em;
    max-height: 16.25em;
    -webkit-line-clamp: 11;
}

.anuncio-publico .card-title {
    min-height: 2.4em;
}

.anuncio-publico .card-header {
    min-height: 92px;
}

.contenido-anuncio img {
    max-width: 100%;
}

.imagen-anuncio-modal {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: transparent;
    border-radius: .5rem;
}

.contenido-anuncio-completo {
    line-height: 1.65;
}

.miniatura-anuncio {
    width: 76px;
    height: 54px;
    object-fit: cover;
    border-radius: .375rem;
}

.editor-anuncio {
    min-height: 220px;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
}

.editor-anuncio:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
    outline: 0;
}

.selector-color-editor {
    width: 2rem;
    height: 1.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.paleta-emoticonos {
    display: grid;
    grid-template-columns: repeat(10, 2.25rem);
    gap: .25rem;
    max-width: 100%;
    max-height: 320px;
    overflow-y: auto;
}

.paleta-emoticonos .btn {
    width: 2.25rem;
    height: 2.25rem;
    padding-right: 0;
    padding-left: 0;
}

.sombra-paleta-emoticonos {
    width: min(24rem, 88vw);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .18);
}

.ficha-socio-lateral {
    font-size: .9rem;
}

.texto-partible {
    overflow-wrap: anywhere;
}

.imagen-colegio {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.imagen-logo-personalizacion {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
}

.galeria-miniatura {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--bs-light);
}

.galeria-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--bs-dark);
}

.extraescolar-foto {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: .375rem;
    background: var(--bs-light);
}

.extraescolar-foto-socio-ficha {
    min-height: 6.25rem;
}

.boton-foto-extraescolar {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.foto-extraescolar-modal {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    object-fit: contain;
    background: var(--bs-light);
    border-radius: .5rem;
}

.extraescolar-foto-modal {
    width: 100%;
    max-height: 52vh;
    object-fit: contain;
    border-radius: .5rem;
    background: var(--bs-light);
}

.boton-dossier-extraescolar {
    min-width: 11rem;
    padding: .75rem 1.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.contenido-detalle-extraescolar-public {
    min-height: 52vh;
    border: 1px solid var(--bs-primary);
    border-radius: .5rem;
    padding: 1rem;
    margin-right: calc(var(--bs-gutter-x) * .5);
    margin-left: calc(var(--bs-gutter-x) * .5);
    flex: 0 0 calc(100% - var(--bs-gutter-x));
    max-width: calc(100% - var(--bs-gutter-x));
}

@media (min-width: 992px) {
    .contenido-detalle-extraescolar-public {
        flex: 0 0 calc(50% - var(--bs-gutter-x));
        max-width: calc(50% - var(--bs-gutter-x));
    }
}

.contenedor-dossier-extraescolar {
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
}

.botones-modal-extraescolar-public .btn {
    min-width: min(17rem, 100%);
    padding: .85rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-promocional-inicio {
    width: min(50vw, 720px);
    max-width: 50vw;
}

.modal-promocional-imagen {
    display: block;
    width: 100%;
    max-height: 46vh;
    object-fit: contain;
    background: var(--bs-light);
}

.boton-cuadrado-noticias {
    width: calc(100% - 20px);
    height: 5.5rem;
    margin-right: 10px;
    margin-left: 10px;
    white-space: normal;
}

.resumen-extraescolar {
    display: -webkit-box;
    min-height: 5.8em;
    max-height: 5.8em;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.enlace-calendario-extraescolares {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    padding: .7rem 1.25rem;
    text-decoration: none;
}

.cabecera-extraescolares-public {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.cabecera-extraescolares-titulo {
    justify-self: start;
}

.cabecera-extraescolares-accion {
    justify-self: end;
}

.calendario-extraescolares-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.calendario-personalizacion {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: var(--bs-light);
}

.filtros-compactos {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(8rem, .6fr) minmax(8rem, .6fr) minmax(8.5rem, .55fr) minmax(8.5rem, .55fr) auto;
    gap: .5rem;
    align-items: end;
}

.filtros-compactos .form-label {
    color: var(--bs-secondary-color);
}

.filtro-accion {
    min-width: 6.5rem;
}

.carnet-socio {
    max-width: 760px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
}

.carnet-cabecera {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
}

.carnet-cabecera img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: .35rem;
    background: var(--bs-white);
}

.carnet-cuerpo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem;
}

.carnet-personas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.carnet-datos {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: .75rem;
}

.carnet-adulto-beneficiario {
    align-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.campo-carnet span {
    display: block;
    color: var(--bs-secondary-color);
    font-size: .8rem;
}

.campo-carnet strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
}

.qr-contenedor {
    position: relative;
    width: 220px;
    height: 220px;
    flex: 0 0 auto;
}

.qr-imagen {
    width: 100%;
    height: 100%;
}

.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    padding: .2rem;
    object-fit: contain;
    transform: translate(-50%, -50%);
    border-radius: .35rem;
    background: var(--bs-white);
    box-shadow: 0 0 0 .25rem var(--bs-white);
}

.carnet-pie {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-light);
}

.verificacion-carnet {
    max-width: 680px;
}

.pie-aplicacion {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    padding: .45rem 0;
    min-height: 40px;
    box-shadow: 0 -.125rem .375rem rgba(0, 0, 0, .12);
}

.documento-legal {
    max-width: 960px;
}

.documento-legal h1,
.documento-legal h2,
.documento-legal h3 {
    margin-bottom: 1rem;
    color: var(--bs-primary);
    font-weight: 700;
}

.documento-legal b {
    color: var(--bs-dark);
}

.documento-legal ul {
    margin-top: .75rem;
}

.documento-legal li {
    margin-bottom: .5rem;
}

@media (max-width: 575.98px) {
    .modal-promocional-inicio {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }

    body {
        padding-bottom: 76px;
    }

    .aviso-cookies {
        padding-bottom: 72px;
    }

    .aviso-cookies-contenido {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .logo-ampa {
        width: 36px;
        height: 36px;
    }

    .superposicion-carrusel {
        min-height: inherit;
    }

    .carrusel-3d,
    .carrusel-3d-escena {
        min-height: 340px;
    }

    .carrusel-3d-item {
        width: calc(100% - 4.5rem);
        height: 270px;
        min-height: 270px;
    }

    .carrusel-3d-item.anterior,
    .carrusel-3d-item.siguiente,
    .carrusel-3d-item.fondo-izquierda,
    .carrusel-3d-item.fondo-derecha {
        opacity: .18;
        filter: saturate(.45) brightness(.55);
    }

    .carrusel-3d-texto {
        padding: .85rem 1rem;
    }

    .carrusel-3d-texto .display-6,
    .carrusel-3d-texto .h3 {
        font-size: 1.2rem;
    }

    .carrusel-3d-control {
        width: 2.35rem;
        height: 2.35rem;
    }

    .pie-aplicacion {
        min-height: 68px;
    }
}

@media (max-width: 991.98px) {
    .filtros-compactos {
        grid-template-columns: 1fr 1fr;
    }

    .filtro-busqueda {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .filtros-compactos {
        grid-template-columns: 1fr;
    }

    .cabecera-extraescolares-public {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cabecera-extraescolares-titulo,
    .cabecera-extraescolares-accion {
        justify-self: center;
    }

    .carnet-cuerpo {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .carnet-personas {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .carnet-datos {
        width: 100%;
        grid-template-columns: 1fr;
    }

.carnet-pie {
    flex-direction: column;
    align-items: flex-start;
}
}

.editor-mailing {
    min-height: 18rem;
    overflow-y: auto;
    background: #fff;
}

.barra-editor-mailing {
    background: rgba(0, 0, 0, .025);
}

.ancho-control-mailing {
    width: 8.5rem;
}

.contenedor-cursos-mailing {
    max-height: 8rem;
    overflow-y: auto;
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary) !important;
}

.contenedor-cursos-mailing .form-check-label {
    color: var(--bs-white);
}

.documento-legal,
.documento-legal * {
    color: #000 !important;
}

.documento-legal a {
    color: var(--bs-primary) !important;
    text-decoration: underline;
}
