:root {
    --page-title-font: var(--font-graffiti);
}

/* Fuente principal */
@font-face {
    font-family: "graffiti-body";
    src: url("../../assets/fonts/graffiti/graffiti-body.ttf") format("truetype");
}

/* Base de pagina */
body {
    background-image: url("../../assets/img/graffiti/background.png");
    background-size: 100dvw auto;
    background-repeat: repeat-y;
    background-position: top center;
    scrollbar-width: none;
    transition: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Encabezado */
.header-image {
    width: 60%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

/* Navegacion */
.menu-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 1.4, 0.6, 1), filter 0.35s;
}
.menu-image:hover, .menu-image:focus {
    transform: scale(1.13) rotate(5deg);
    filter: brightness(1.08) saturate(1.1);
    z-index: 2;
}
.navbar-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

.graffiti-navbar .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    min-height: 100px;
}

.graffiti-navbar .nav-link {
    color: #000000;
    padding: 10px 22px;
    border-radius: 16px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Secciones generales */
.section {
    font-family: "graffiti-body", sans-serif;
    background-image: url("../../assets/img/graffiti/section-background.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-blend-mode: overlay;
    transition: background-image 0.5s ease;
}

.section-title {
    font-family: var(--page-title-font, "graffiti-body", sans-serif);
    background-image: url("../../assets/img/graffiti/section-background.png");
    background-size: 100% 100%;
    color: #fff3fb;
    font-size: 2.8rem;
    line-height: 1.1;
    text-shadow:
        2px 0 0 #000,
        -2px 0 0 #000,
        0 2px 0 #000,
        0 -2px 0 #000,
        1.5px 1.5px 0 #000,
        -1.5px -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        5px 5px 5px #000;
    text-align: center;
}

#que-es ~ p{
    margin: 20px;
    font-size: 1.5rem;
    text-align: center;
}

/* Historia */
.historia-img-row {
    background-color: #000;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-bottom: 1.5rem;
    margin-top: 20px;
}

.historia-img-row .historia-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    margin: 0;
    padding: 0;
    transition: transform 0.35s cubic-bezier(0.4, 1.4, 0.6, 1), filter 0.35s;
}
.historia-img-row .historia-img:hover, .historia-img-row .historia-img:focus {
    transform: scale(1.02);
    filter: brightness(1.07) saturate(1.08);
}

.historia-img-row>.btn.p-0 {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    border: none;
    background: none;
}

/* Caracteristicas */
.graffiti-cards {
    margin-top: 30px;
}

.graffiti-card {
    background-image: url("../../assets/img/graffiti/card/background.png");
    background-color: #00000000;
    background-size: 100% 100%;
    background-position: center;
    border: none;
    border-radius: 32px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.graffiti-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
}

.graffiti-card-image {
    width: 80%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 50px auto 0 auto;
    mask-image: url("../../assets/img/graffiti/card/clip.svg");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
}

.graffiti-card .card-body {
    padding: 24px;
}

.graffiti-card .card-title {
    margin: 0 0 20px;
    color: #fff3fb;
    font-family: "graffiti-body", sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    text-shadow: 2px 0 0 #000,
                -2px 0 0 #000,
                0 2px 0 #000,
                0 -2px 0 #000,
                1.5px 1.5px 0 #000,
                -1.5px -1.5px 0 #000,
                1.5px -1.5px 0 #000,
                -1.5px 1.5px 0 #000,
                5px 5px 5px #000;
}

.graffiti-card-button {
    background-image: url("../../assets/img/graffiti/card/button.png");
    background-size: 100% 100%;
    color: #ffffff00;
    width: 52px;
    height: 52px;
    padding: 0;
    filter: invert(0);
    transform: scale(1);
    transition: all 0.3s ease;
}

.graffiti-card-button:hover {
    color: #fff3fb00;
    scale: 1.15;
    filter: invert(1);
    transform: scale(1.15);
    transition: all 0.3s ease;
}

/* Tecnicas */
.graffiti-techniques-carousel {
    margin-top: 30px;
    padding: 10px 0 50px;
}

.graffiti-technique-panel {
    background-image: url("../../assets/img/graffiti/galeria/background.png");
    background-size: 100% 100%;
    background-position: center;
    overflow: hidden;
    min-height: 380px;
    height: 380px;
    display: flex;
    align-items: stretch;
}

.graffiti-technique-image {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
    mask-image: url("../../assets/img/graffiti/galeria/clip.svg");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
}

.graffiti-technique-content {
    height: 100%;
    padding: 36px 36px 36px 0px;
    margin-left: -20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.graffiti-technique-kicker {
    display: none;
    font-family: "graffiti-body", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.graffiti-technique-content h3 {
    margin: 0 0 18px;
    color: #fff3fb;
    font-family: "graffiti-body", sans-serif;
    font-size: 2.2rem;
    line-height: 1.05;
    text-shadow: 2px 0 0 #000,
                -2px 0 0 #000,
                0 2px 0 #000,
                0 -2px 0 #000,
                1.5px 1.5px 0 #000,
                -1.5px -1.5px 0 #000,
                1.5px -1.5px 0 #000,
                -1.5px 1.5px 0 #000,
                5px 5px 5px #000;
}

.graffiti-technique-content p {
    margin: 0;
    color: #000000;
    font-size: 1.05rem;
    line-height: 1.8;
}

.graffiti-carousel-indicators {
    position: static;
    margin: 0 0 18px;
}

.graffiti-carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 0;
    background-color: #ffffff55;
    opacity: 1;
}

.graffiti-carousel-indicators .active {
    background-color: #fff3fb;
    box-shadow: 0 0 0 4px #00000025;
}

.graffiti-carousel-control {
    width: 54px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 1;
}

.graffiti-carousel-control.carousel-control-prev {
    left: -10px;
}

.graffiti-carousel-control.carousel-control-next {
    right: -10px;
}

.graffiti-carousel-control:hover {
    filter:invert(1);
}

.graffiti-carousel-control:hover .carousel-control-prev-icon,
.graffiti-carousel-control:hover .carousel-control-next-icon {
    filter: invert(1);
}

/* Artistas */
.graffiti-artists-gallery {
    margin-top: 28px;
}

.graffiti-artist-card {
    mask-image: url("../../assets/img/graffiti/galeria/clip-artists.svg");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.graffiti-artist-card:hover,
.graffiti-artist-card[open] {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px #00000055;
    border-color: #ffffff38;
}

.graffiti-artist-trigger {
    list-style: none;
    cursor: pointer;
    display: block;
}

.graffiti-artist-visual {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.graffiti-artist-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.graffiti-artist-signature {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(70%, 220px);
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 12px 24px #00000088);
    transition: transform 0.45s ease, top 0.45s ease, width 0.45s ease;
}

.graffiti-artist-copy {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
}

.graffiti-artist-copy h3 {
    margin: 0 0 10px;
    color: #fff3fb;
    font-family: "graffiti-body", sans-serif;
    font-size: 1.5rem;
    line-height: 1.05;
    font-weight: 700;
}

.graffiti-artist-copy p {
    margin: 0;
    color: #fff6fc;
}

.graffiti-artist-card:hover .graffiti-artist-signature,
.graffiti-artist-card[open] .graffiti-artist-signature {
    top: calc(100% - 28px);
    transform: translate(-50%, -100%);
    width: min(56%, 180px);
}

.graffiti-artist-card:hover .graffiti-artist-portrait,
.graffiti-artist-card[open] .graffiti-artist-portrait {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.graffiti-artist-card:hover .graffiti-artist-copy,
.graffiti-artist-card[open] .graffiti-artist-copy {
    max-height: 260px;
    padding: 16px 20px 22px;
    opacity: 1;
}

/* Impacto cultural */
.impacto-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.impacto-img-grid .btn.p-0 {
    padding: 0;
    border: none;
    background: none;
    width: 100%;
    height: 100%;
    display: flex;
}

.impacto-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 1.4, 0.6, 1), filter 0.35s;
}
.impacto-img:hover, .impacto-img:focus {
    transform: scale(1.02);
    filter: brightness(1.07) saturate(1.08);
}

/* Modales */
.graffiti-modal {
    box-shadow: none;
}

.graffiti-modal .modal-content {
    background-color: #00000000;
    background-image: url("../../assets/img/graffiti/modal/background.png");
    background-size: 100% 100%;
    background-position: center;
    padding: 50px;
}

.graffiti-modal .modal-header {
    padding: 22px 24px 14px;
}

.graffiti-modal .modal-title {
    font-family: var(--page-title-font);
    font-size: 2rem;
    line-height: 1.1;
    color: #fff3fb;
    text-shadow:
        2px 0 0 #000,
        -2px 0 0 #000,
        0 2px 0 #000,
        0 -2px 0 #000,
        1.5px 1.5px 0 #000,
        -1.5px -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        5px 5px 5px #000;
}

.graffiti-modal .modal-body {
    padding: 0 24px 24px;
    font-family: "graffiti-body", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.graffiti-modal-ref {
    font-size: 0.95em;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: -50px;
    text-align: right;
        text-shadow:
        2px 0 0 #000,
        -2px 0 0 #000,
        0 2px 0 #000,
        0 -2px 0 #000,
        1.5px 1.5px 0 #000,
        -1.5px -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        5px 5px 5px #000;
}

.graffiti-modal-ref a {
    color: #ffffff;
    text-decoration: underline;
    word-break: break-all;
}

.graffiti-modal .btn-close {
    background: none !important;
    color: transparent !important;
    text-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    margin-top: -70px;
    margin-right: -20px;
    transition: all 0.3s ease;
}
.graffiti-modal .btn-close::before,
.graffiti-modal .btn-close::after {
    display: none !important;
    content: none !important;
}

.graffiti-modal .btn-close:hover,
.graffiti-modal .btn-close:focus {
    scale: 1.2;
    transition: all 0.3s ease;
}

.graffiti-modal .btn-close:hover img,
.graffiti-modal .btn-close:focus img {
    filter: drop-shadow(2px 2px 0 white);
    transition: all 0.3s ease;
}

.modal-backdrop.show {
    opacity: 0.7;
}

/* Reflexion final */
#reflexion {
    background-image: url("../../assets/img/graffiti/reflexion/background.png");
    background-size: 100% 100%;
    background-position: center;
    opacity: 0.95;
}

.arte-vandalismo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    align-items: start;
    padding: 32px 0 24px 0;
}

.arte-vandalismo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px;
}

.arte-vandalismo-title {
    width: 90%;
    max-width: 340px;
    height: auto;
    margin-bottom: 18px;
    display: block;
}

.arte-vandalismo-col ul {
    list-style: none;
    font-size: 1.7rem;
    color: #fff3fb;
    font-family: "graffiti-body", sans-serif;
    margin: 0;
    padding: 0;
    text-align: left;
}

.arte-vandalismo-col li {
    margin-bottom: 18px;
    -webkit-text-stroke: 1px #000;
    text-shadow: #000 5px 5px 5px;
}

/* Responsive unico */
@media (max-width: 768px) {
    .header-image {
        width: 100%;
    }

    .graffiti-navbar .navbar-nav {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 0;
    }

    .graffiti-navbar .nav-item {
        flex: 1 1 33%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 6px;
    }

    .graffiti-navbar .nav-link {
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .historia-img-row{
        width: 150%;
        margin-left: -65px;
        margin-right: auto;
    }

    .graffiti-card .card-title {
        font-size: 1.5rem;
    }

    .graffiti-card-image {
        height: clamp(170px, 24vw, 190px);
    }

    .graffiti-card .card-body {
        padding: 20px;
    }

    .graffiti-techniques-carousel {
        padding: 4px 0 80px;
    }

    .graffiti-technique-image {
        min-height: clamp(210px, 31vw, 240px);
    }
    

    .graffiti-technique-content {
        padding: 20px;
        margin-top: -40px;
    }

    .graffiti-technique-content h3 {
        font-size: clamp(1.55rem, 3.5vw, 1.8rem);
    }

    .graffiti-technique-content p {
        font-size: 0.98rem;
    }

    .graffiti-modal .modal-dialog {
        margin: 14px;
    }

    .graffiti-modal .modal-header {
        padding: 18px 18px 12px;
    }

    .graffiti-modal .modal-body {
        padding: 0 18px 18px;
    }

    .graffiti-artist-card:hover .graffiti-artist-copy,
    .graffiti-artist-card:focus-within .graffiti-artist-copy,
    .graffiti-artist-card[open] .graffiti-artist-copy {
        padding: 12px 14px 16px;
        max-height: 420px;
    }

    .graffiti-artist-copy h3 {
        font-size: 1.2rem;
    }

    .graffiti-artist-copy {
        padding: 0 14px;
    }

    .graffiti-artist-signature {
        width: min(74%, 160px);
    }

    .graffiti-artists-gallery .col {
        width: clamp(50%, calc((480px - 100vw) * 999), 100%);
        flex: 0 0 clamp(50%, calc((480px - 100vw) * 999), 100%);
    }

    .impacto-img-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .graffiti-carousel-control {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .graffiti-carousel-control.carousel-control-prev {
        left: calc(50% - 64px);
    }

    .graffiti-carousel-control.carousel-control-next {
        right: calc(50% - 64px);
    }

    .arte-vandalismo-title {
        width: 100%;
        max-width: 400px;
        margin-bottom: 10px;
    }

    .arte-vandalismo-col ul {
        font-size: 1.2rem;
    }

    .graffiti-technique-panel {
        padding: 10%;
        min-height: 600px;
        height: 600px;
    }
    .graffiti-technique-image {
        mask-image: url("../../assets/img/graffiti/card/clip.svg");
        mask-size: 100% 100%;
    }
}