body {
    background-color: #000;
    /* font-family: 'big-caslon-fb', serif; */
    font-family: 'adapt-variable', serif;
    margin: 0;
    color: #fff;

}

/* Base link styles */
.navbar .nav-link {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-family: 'big-caslon-fb', serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Underline effect using ::after */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* On hover or active, expand underline */
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

/* Hover and active text style */
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white;
    font-weight: bold;
}

/* Toggle icon color */
.navbar-toggler {
    color: #fff;
}


.offcanvas.offcanvas-start {
    height: 100vh;
    background-color: #000;
    font-family: 'big-caslon-fb', serif;
}

/* Opciones del menú */
.offcanvas-body .nav-link {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
    color: #ccc;
    text-decoration: underline;
}

.logo-section {
    background-color: #000;
    height: 300px;
    padding: 2rem 0;
}

.hero-section {
    min-height: 100vh;
    background-color: #000;
    font-family: 'big-caslon-fb', serif;
    padding-top: var(--navbar-height, 80px);
    /* fallback */
    overflow: hidden;
}


.logo-container {
    padding: 2rem 0 1rem 0;
    text-align: center;
}

.logo-container img {
    max-width: 200px;
}

.video-container {
    width: 100%;
}

.letras-section {
    background: url('../img/bg-lgbtqia.png') no-repeat center center;
    background-size: cover;
    color: white;
    height: 100vh;
    font-family: 'espiritu-condensed', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 2rem;
}

.letras-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.letra-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30vw;
    cursor: pointer;
    transition: all 0.5s ease;
    background: none;
    position: relative;
}

.letra-box:hover {
    transform: scale(1.05);
}

/* Línea separadora entre letras */
.letra-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}


.letra-box.selected {
    flex: 0.15;
}

.letra-box.hidden {
    display: none;
}

/* .letra-video {
    display: none;
    flex: 0.85;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    align-items: center;
    justify-content: center;
    display: flex;
} */

.letra-video {
    flex: 0.85;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    align-items: center;
    justify-content: center;
    display: none;
}

.letra-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.letra-video.active {
    display: flex;
}

.letra-video .btn {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.letra-video .btn:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}


.bg-fondo-donaciones {
    background: url('../img/back_black.jpg') center top no-repeat;
    background-size: cover;
}

.scroll-down i {
    font-size: 1.5rem;
}

.scroll-down div {
    transition: all 0.3s ease;
    background-color: black;
    color: white;
}

.scroll-down:hover div {
    transform: scale(1.1);
    background-color: black;
    color: white;
}

.fondo-albergue {
    background-color: rgba(102, 204, 107, 0.5);
}

.fondo-ser {
    background-color: rgba(111, 120, 236, 0.5);
}

.fondo-unidos {
    background-color: rgba(208, 88, 232, 0.5);
}

.fondo-meson {
    background-color: rgba(221, 196, 45, 0.5);
}

.fondo-fatima {
    background-color: rgba(244, 157, 36, 0.5);
}

.fondo-ixuke {
    background-color: rgba(254, 56, 65, 0.5);
}

/* Swiper carousel styles */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.swiper-slide {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    /* reduce separación entre cards */
}

.fundacion-card {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    /* bordes más redondeados */
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: white;
    color: black;
    border-color: white;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1rem;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.fundacion-card {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 2rem;
    overflow: hidden;
}

.fundacion-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-top: 2rem;
}

.fundacion-card .card-body img {
    max-height: 150px;
    margin-bottom: 1rem;
}

.fundacion-card .card-title {
    margin-top: 3rem;
    margin-bottom: 0;
    font-family: 'adapt-variable', sans-serif;
    font-weight: 700;
    font-stretch: condensed;
}

.adapt-bold {
    font-family: 'adapt-variable', sans-serif;
    font-weight: 700;
    /* Bold */
    font-stretch: condensed;
}

.adapt-thin {
    font-family: 'adapt-variable', sans-serif;
    font-weight: 100;
}

#compra-y-dona h2 {
    font-size: 3rem;
}


#popupFundacion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

#popupFundacion .popup-content {
    background: white;
    color: black;
    padding: 2rem;
    border-radius: 16px;
    max-width: 800px;
    text-align: center;
}


.galeria-redes {
    background-color: #000;
    padding: 4rem 0;
}

.galeria-redes h2 {
    color: white;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.galeria-redes .row>div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.galeria-img-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.galeria-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-img-wrapper:hover img {
    transform: scale(1.05);
}

.popup-galeria {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1060;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-galeria.d-none {
    display: none !important;
}

.popup-galeria img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.popup-galeria .btn-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.popup-galeria .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.popup-galeria .nav-arrow.left {
    left: 2rem;
}

.popup-galeria .nav-arrow.right {
    right: 2rem;
}

.btn-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-cerrar:hover {
    background-color: white;
    color: black;
    transform: scale(1.1);
}


.contador-section {
    background-color: black;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.back-black {
    background-color: black;
}

.contador-section h2 {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contador-item {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: bold;
}

.contador-grid .contador-item.dias span {
    background: linear-gradient(135deg, #ff0000, #ff4d4d);
    /* rojo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contador-grid .contador-item.horas span {
    background: linear-gradient(135deg, #ffff00, #ffcc00);
    /* amarillo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contador-grid .contador-item.minutos span {
    background: linear-gradient(135deg, #00ff87, #00cc66);
    /* verde */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contador-grid .contador-item.segundos span {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    /* azul */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.circulo-dias,
.circulo-horas,
.circulo-minutos,
.circulo-segundos {
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-style: dotted;
    border-color: white;
    background: none;
}

.circulo-dias {
    border-width: 10px;
}

.circulo-horas {
    border-width: 8px;
}

.circulo-minutos {
    border-width: 6px;
}

.circulo-segundos {
    border-width: 5px;
}

.contador-label {
    font-size: 1.5rem;
    font-family: 'adapt-variable', sans-serif;
    font-weight: 100;
    text-transform: uppercase;
    margin-top: 2rem;
}

.swiper-slide .card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.swiper-slide .card:hover {
    transform: scale(1.1);
}

.scale {
    transition: transform 0.3s ease;
}

.scale:hover {
    transform: scale(1.1);
}

.text-description {
    font-size: 1.5rem;
}

.logo-word {
    text-align: center;
}

.logo-word img {
    max-width: 478px;
}

.whiteLink {
    color: #fff !important;
}

.rrss {
    font-size: 1.5rem;
}

.rrss a {
    text-decoration: none;
    color: white;
}

.rrss a:hover {
    text-decoration: underline;
    /* opcional si quieres subrayado al pasar el mouse */
}

/* --------------------------------------- MEDIA QUERY ----------------------------------------------------- */

/* Estilos para monitores muy grandes */
@media (min-width: 1601px) {}

/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

@media screen and (min-width: 1201px) {
    .mobile-only {
        display: none !important;
    }
}

/* Dispositivos grandes (laptops y desktop) */
@media (min-width: 993px) and (max-width: 1200px) {

    .mobile-only {
        display: none !important;
    }
}

/* Dispositivos medianos (tabletas en modo horizontal) */
@media (min-width: 769px) and (max-width: 992px) {
    .mobile-only {
        display: none !important;
    }
}

/* Dispositivos medianos (tabletas en modo vertical) */
@media (min-width: 577px) and (max-width: 768px) {
    /* Estilos para tabletas */
}

/* 
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/

@media (max-width: 576px) {

    .desktop-only {
        display: none !important;
    }

    #compra-y-dona h2 {
        font-size: 1.8rem;
    }

    .text-description {
        font-size: 1rem;
    }

    .logo-word img {
        max-width: 80%;
    }

    .letras-section {
        padding: .5rem;
    }

    .letra-video {
        flex: 1;
    }

    .hero-section {
        min-height: unset;
    }

    .contador-label {
        margin-top: .5rem;
    }
}

/* --------------------------------------- END MEDIA QUERY ----------------------------------------------------- */

.arcoiris {
    background: url('../img/boton-bg.png') center center / cover no-repeat;
    color: #fff;
}