/*
Theme Name: RUBEN SEGOVIA Theme
Theme URI: http://rubensegovia.com/
Description: Tema nuevo para el proyecto RUBEN SEGOVIA
Author: Maria Lara
Author URI: maaarialara.com
Version: 1.0
*/

/* CSS RESET */

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

body {
    line-height: 1
}

ol,
ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote:after,
blockquote:before,
q:after,
q:before {
    content: '';
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

:root {
    --white: #F4F4F4;
    --black: #050505;
    --light-grey: rgb(191, 191, 191);
    --main-font: sans-serif;
    --padding-S: 0.5rem 1rem;
    --dark-grey: rgb(78, 78, 78);
}


/* my css */

*,
*:after,
*:before {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 62.5%;
    background-color: var(--white);
    color: var(--black);
    font-family: var(--main-font);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

a {
    color: var(--black);
    text-decoration: none;
}

ul {
    padding-inline-start: 0;
}

li {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--main-font);
    font-size: 12px;
    background: none;
    margin: 0;
    padding: 0;
}

::-moz-selection {
    color: var(--light-grey);
    background: transparent;
}

::selection {
    color: var(--light-grey);
    background: transparent;
}

/* clases */
.z-9 {
    z-index: 9;
}

.z-99 {
    z-index: 99;
}

.z-999 {
    z-index: 999;
}

.z-9999 {
    z-index: 9999;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

p {
    line-height: 1.2;
}

.center-absolute {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

.balance {
    text-wrap-style: balance;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

/* COMING SOON */
.coming-soon-container h1 {
    font-size: 36px;
}

.coming-soon-container h2 {
    font-size: 18px;
    text-align: center;
    margin-top: 1rem;
}


/* HEADER */

.site-nav {
    background: var(--black);
    color: var(--light-grey);
    padding: var(--padding-S);
    position: fixed;
    width: 100%;
    z-index: 9999;
    padding-bottom: 0.5rem;
}

/* La UL se convierte en grid: [izq | centro | der] */
.site-nav ul {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* el centro mide lo que necesita */
    align-items: start;
    /* alineado arriba */
    gap: 0;
    /* sin huecos extra */
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    font-weight: bold;
}

.site-nav li a {
    color: var(--light-grey);
    font-weight: bold;
}

.site-nav li:first-child {
    justify-self: start;
}

/* work menu item */

.body.page-id-533 {
    overflow: hidden;
}

.site-nav li:nth-child(2) {
    justify-self: center;
}

/* bloque central */
.site-nav li:last-child {
    justify-self: end;
}

/* MY MUSIC menu*/

/* Bloque central en columna y centrado de texto */
.site-nav li:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
}

.site-nav address {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* WORK */

.projects-controls {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1;
    /* padding-top: 8vh; */
    padding-top: 4.5rem;
}

div#projectsTable {
    padding-top: 25vh;
}

.projects-header,
.project-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.5rem 0;
    align-items: center;
    gap: 15%;
}

.projects-header {
    font-weight: bold;
    color: var(--light-grey);
    margin: 1rem 0;
}

.project-row {
    border-bottom: 0.5px solid var(--light-grey);
}

.project-row .col,
.projects-header .col {
    padding: 0 1rem;
}

/* Columna 1 → izquierda */
.project-row .col:nth-child(1),
.projects-header .col:nth-child(1) {
    justify-self: start;
    text-align: left;
}

/* Columna 2 → alineada a la izquierda pero pegada hacia el centro */
.project-row .col:nth-child(2),
.projects-header .col:nth-child(2) {
    justify-self: baseline;
    text-align: left;
}

/* Columna 3 → alineada a la derecha pero pegada hacia el centro */
.project-row .col:nth-child(3),
.projects-header .col:nth-child(3) {
    justify-self: end;
    text-align: right;
}

/* Columna 4 → derecha */
.project-row .col:nth-child(4),
.projects-header .col:nth-child(4) {
    justify-self: end;
    text-align: right;
}

/* menu filtro categorías */
.projects-filter {
    padding: 0 1rem;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-btn {
    color: var(--light-grey);
    font-weight: bold;
    text-transform: uppercase;

}

.filter-btn.active {
    color: var(--black);
}

.project-row {
    transition: color .25s ease;
}

.project-row.inactive {
    color: var(--light-grey);
    pointer-events: none;
}

/* img preview */
/* Preview que sigue al cursor (solo desktop real) */
#projectHoverPreview {
    position: fixed;
    left: 0;
    top: 0;
    width: 150px;
    height: auto;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease;
    will-change: left, top, opacity, transform;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    /* Si quieres recorte uniforme, descomenta: */
    /* aspect-ratio:16/9; object-fit:cover; */
}

@media (hover:hover) and (pointer:fine) {
    #projectHoverPreview {
        display: block;
    }
}

/* ABOUT */

main.about-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.5rem 1rem 0;
    gap: 8vw;

}

main.about-page>section {
    flex: 1;
    /* cada hijo crece igual */
}

.about__media img {
    max-width: 100%;
    height: auto;
    /* opacity: 0.1; */
}

.about-section1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8vw;
}

.about__p1 {
    grid-column: 1;
}

.about__p2 {
    grid-column: 2;
}

.about__media {
    grid-column: 4;
    width: 100%;
}


.about__edu-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8%;
    align-content: center;
}

.about__edu-wrapper li {
    margin-bottom: 0.2rem;
}

.about__edu-wrapper p {
    line-height: 1.5;
}

.about__studios {
    grid-column: 1;
}

.about__educational {
    grid-column: 2;
}

.recent-projects {
    grid-column: 3;
    justify-self: center;
}

#about-studios-title,
#about-educational-title,
#recent-projects-title,
#about-contact-title {
    text-transform: uppercase;
    padding-bottom: 1rem;
}

section.about__contact {
    display: flex;
    /* align-items: end; */
    text-align: left;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 1rem;
}

.about__contact a {
    text-decoration: underline;
}

.back-to-projects {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 1rem;
    font-weight: bold;
    color: var(--light-grey);
    font-size: 12px;
}

/* SINGLE */
main.single-project {
    height: 100vh;
}

h1#project-meta-title {
    font-size: 22px;
    font-weight: bold;
    max-width: 70vw;
}

.project-client.meta-row {
    font-size: 16px;
    padding-top: 0.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    max-width: 20vw;
    height: 100vh;
    position: fixed;
    padding: 5.5rem 1rem 1rem;
}

.project-cat.meta-row {
    font-weight: bold;
    position: fixed;
    top: 0;
    right: 0;
    margin-top: 5.5rem;
    padding: 0 1rem;
}

.meta-row.meta-desc {
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.wp-content iframe {
    min-height: 50vh;
}

.project-spotify iframe {
    width: 100%;
    height: auto;
}

.project-content {
    width: 50%;
    margin: auto;
    padding: 25vh 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-content iframe {
    width: 100%;
}

a.next-post {
    position: fixed;
    right: 0;
    bottom: 0;
    padding: 1rem;
    z-index: 99999999;
    font-weight: bold;
    text-transform: uppercase;
}

a.back-to-projects-post {
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 1rem;
    z-index: 99999999;
    font-weight: bold;
    text-transform: uppercase;
}

/* my-music */

body.page-id-520 {
    background-color: var(--black);
}

main.my-music-page {
    display: flex;
    flex-direction: column;
    background-color: var(--black);
    text-align: center;
    color: var(--light-grey);
    gap: 20vh;
    padding: var(--padding-S);
    font-weight: bold;
}

main.my-music-page a {
    color: var(--light-grey);
    font-weight: bold;
}


#mm-links {
    margin-top: 4.5rem;
}

a.merch-buy.button2 {
    text-decoration: underline;
    display: block;
    padding-top: 0.5rem;
}

h2#mm-shows-title {
    margin-bottom: 5vh;
}

/* shows */

#mm-shows .my-music__content a {
    text-decoration: underline;
}

/* videoclips */
#mm-videoclips .my-music__content {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

#mm-videoclips a {
    text-decoration: underline;
    margin-left: 0.2rem;
}

#mm-videoclips p {
    line-height: 1.6;
}

/* merch */

article.merch-item {
    text-align: center;
}

.merch-thumb {
    max-width: 100%;
    height: auto;
    margin-top: 5vh;
}

.merch-thumb img {
    max-width: 200px;
    height: auto;
}




/* ------------------------------    MEDIA Q       ------------------------------ */


/*BIG SCREEN*/
@media screen and (min-width: 1920px) {

    body,
    html {
        font-size: 14px;
    }
}

/*DESKTOP RESPONSIVE*/
@media screen and (min-width: 1280px) {

    /**** GENERAL ****/
    .site-nav li a:hover {
        filter: blur(2px);
        /* color: var(--dark-grey) !important; */
    }

    ul.filter-list li a:hover {
        filter: blur(0.5px);
        /* color: var(--dark-grey) !important; */
    }

    a.project-row:hover {
        color: var(--light-grey);
    }


    /* my music */
    main.my-music-page {
        align-items: flex-end;
        text-align: right;
    }

    section#mm-shows {
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        text-align: left;
    }


}


/*HOVER*/
@media screen and (min-width: 1024px) {}

/*IPAD RESPONSIVE*/
@media screen and (max-width: 1020px) {

    body {
        font-size: 9px;
    }

    /**** GENERAL ****/

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    /* WORK */
    .projects-header,
    .project-row {
        display: grid;
        width: 100vw;
        grid-template-columns: 35% 35% 20% 10%;
        padding: 0.5rem 0;
        align-items: center;
        gap: 0;
    }

    .project-row .project-category,
    .project-row .project-year {
        pointer-events: none !important;
    }

    .project-row .col,
    .projects-header .col {
        font-size: 9px;
    }

    .project-row.inactive {
        color: var(--light-grey);
    }

    .project-row.inactive a {
        pointer-events: none;
        color: var(--light-grey);
    }

    /* ABOUT */

    .about-section1 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .about__edu-wrapper {

        grid-template-columns: repeat(3, 1fr);
    }

    main.about-page>section {
        flex: auto;
    }

    .about__media {
        grid-column: auto;
    }

    .back-to-projects {
        font-size: 8px;
    }

    /* SINGLE */
    .project-meta {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        max-width: 100%;
        height: auto;
        position: inherit;
        padding: 5.5rem 1rem 1rem;
    }

    .project-cat.meta-row {
        font-weight: bold;
        position: absolute;
    }

    .project-content {
        width: 100%;
        margin: auto;
        padding: 10vh 1rem 5rem;
    }

    .links-single {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    a.next-post {
        position: inherit;
    }

    a.back-to-projects-post {
        position: inherit;
}

}


/*MOVILE RESPONSIVE*/
@media screen and (max-width: 650px) {}