/* TIPOGRAFÍAS */
@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-100.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-150.woff2") format("woff2");
    font-weight: 150;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-200.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-250.woff2") format("woff2");
    font-weight: 250;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-350.woff2") format("woff2");
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-450.woff2") format("woff2");
    font-weight: 450;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aspekta";
    src: url("../Fuentes/fonts/webfonts/Aspekta-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* ROOT */
:root {
    /*COLORES*/
    --text-dark: #000000; /*Color textos negro*/
    --text-light: #949494; /*Color textos gris*/
    --text-lighter: #c5c5c5; /*Color textos gris claro*/

    /*FUENTES*/
    --font-family: 'Aspekta', sans-serif; 

    /*SIZES*/
    --max-width-xl: 1920px; 

    /*TAMAÑOS IMÁGENES*/
    --img-ratio: 660 / 660; /* Desktop */
    --img-ratio-compact: 5 / 5; /* Ipad/Mobile*/

    /*MÁRGENES*/
    --side-margin: clamp(16px, 3vw, 64px);
    --side-margin-about: clamp(16px, 3vw, 24px);
    --hero-gap: 190px;
    --header-height: 70px;
    --header-btn-height: 26px;
    --header-gap: calc((var(--header-height) - var(--header-btn-height)) / 2); 
    --max-width-content: 1200px;

    /*BOTONES FLOTANTES*/
    --btn-bg: rgba(235, 235, 235, 0.5);
    --btn-bg-hover: rgba(245, 245, 245, 0.92);
    --btn-blur: blur(20px);
}

/* RESET CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

html, .about-overlay {
    scrollbar-width: none;        
    -ms-overflow-style: none;       
}

html::-webkit-scrollbar,
.about-overlay::-webkit-scrollbar {
    display: none;                 
}

video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}

/* BODY */
body {
    font-family: 'Aspekta', sans-serif;
    padding-bottom: 80px;
}

/* TRANSICIÓN DE ENTRADA */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.header,
.div__section_grid {
    animation: fade-in 1s ease backwards;
}
.section__hero, .div__project_container {
    animation: fade-up 1s ease both;
}

.section__content,
.section__content_grid {
    animation: fade-up 1s ease 0.25s both;
}

.div__project_container ~ .div__gallery,
.div__project_container ~ .div__research {
    animation: fade-up 1s ease 0.25s both;
}

.div__gallery_group .media__video--framed.media__video--phone {
    width: 40%;          /* más pequeño: ajusta a tu gusto (30%–50%) */
    border-radius: 4px; /* esquinas redondeadas */
    aspect-ratio: auto;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .header,
    .div__section_grid,
    .section__hero,
    .section__content,
    .section__content_grid,
    .div__project_container,
    .div__project_container ~ .div__gallery,
    .div__project_container ~ .div__research {
        animation: none;
    }
}

/* RATÓN HOVER */
.cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    pointer-events: none;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cursor-label.is-visible {
    opacity: 1;
}

.media__wrapper,
.div__content_driv img {
    cursor: none;
}

@media (hover: none) {
    .cursor-label {
        display: none;
    }
}

/* HEADER */
.header {
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: flex-start;      
    padding-top: 18px;            
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 250;
}

.header ul {
    display: flex;
    gap: 14px;
}

.header li {
    width: 84px;
    text-align: center;
    background: var(--btn-bg);
    backdrop-filter: var(--btn-blur);
    -webkit-backdrop-filter: var(--btn-blur);
    transition: background 0.6s ease;
    padding-top: 4.5px;
    padding-bottom: 4.5px;
    padding-left: 0;
    padding-right: 0;
    border-radius: 6px;
}

@media (hover: hover) {
    .header li:hover,
    .div__section_li:hover {
        background: rgba(0, 0, 0, 0.26);
    }
}

.header a, .div__section_grid a {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
}

.header,
.div__section_grid {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.div__section_grid.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/*ABOUT CONTAINER*/
.about-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.8s; 
}

.about-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(208, 204, 204, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.about-overlay.is-open::before {
    opacity: 1;
}

.about-panel {
    position: relative;           
    width: min(550px, 94%);
    height: auto;                  
    margin: var(--header-height) auto;           
    background: rgb(226, 224, 224, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 24px;
    border-radius: 6px;
    transform: translateY(30px); 
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-overlay.is-open .about-panel {
    opacity: 1;
    transform: translateY(0);
}

.about-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.about-panel__close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}

body.no-scroll {
    overflow: hidden;
}

.div-panel__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.div-panel__cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ul__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.li__skills {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
}

.p-panel__about, .h3__about {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 350;
    line-height: 125%;
}

.h2-panel__titles {
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 350;
    color: var(--text-light);
}

.div-panel__cards {
    display: flex;
    flex-direction: column;
}

.div__about_titles {
    display: flex;
    justify-content: space-between;
}

.h3__about_date {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 350;
    color: var(--text-light);
}

.h4__about {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 350;
    color: var(--text-light);
}

.li__about_enlaces {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 350;
}

.p__about_info {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-light);
    font-weight: 350;
}

.hr-panel {
    border: none;
    margin: 3px;
}

.div-panel__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link__cv {
    color: var(--text-dark)
}

/* HERO */
.header a {
    color: var(--text-dark);  
}

.section__hero {
    width: min(600px, 80%);
    text-align: center;
    margin: 0 auto;
    padding-top: calc(48px + var(--hero-gap));
    padding-bottom: var(--hero-gap);

}

.section__h1 {
    color: var(--text-lighter);
    font-weight: 400;
    font-size: 29px;
    line-height: 125%;
    font-family: var(--font-family);
}

/* CONTENT */
.media__wrapper--framed {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.media__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media__wrapper--color-pedro {
    background: #DFDFDF;   /* pon aquí el color que elijas */
    aspect-ratio: 1 / 1;   /* cuadrado, igual que el resto de la rejilla */
}

.img__gallery--blur {
    opacity: 0.2;
}

.media__color--wide {
    width: 100%;
    aspect-ratio: 16 / 7;     /* misma proporción que .img__gallery */
    border-radius: 10px;
    background: #DFDFDF;      /* pon aquí el color que elijas */
}

@media (max-width: 600px) {
    .media__color--wide {
        aspect-ratio: 16 / 10;  /* igual que .img__gallery en móvil */
    }
}

.media__color--wide {
    position: relative;   /* por si no usas media__wrapper--framed */
    overflow: hidden;
}

.media__video--wide {
    width: auto;
    height: 60%;          /* se ajusta a la altura del bloque, no al ancho */
    max-width: 65%;
}

.media__video--framed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.media__wrapper--color {
    background:  #DFDFDF;
    aspect-ratio: var(--img-ratio);
}

.section__content {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding-left: var(--side-margin);
    padding-right: var(--side-margin);
    max-width: 720px;
    margin: 0 auto;
}

.section__description_titles {
    display: flex;
    align-items: center;
    justify-content:space-between ;
}

.div__content, .div__content_driv {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.div__content img, .div__content_driv img {
    width: 100%;
    aspect-ratio: var(--img-ratio);  
    object-fit: cover;
    object-position: center;
    display: block;
}

.media__wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.media__img--default,
.media__img--hover {
    width: 100%;
    aspect-ratio: var(--img-ratio);  
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.media__img--hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.link__external {
    color: var(--text-dark);
    transition: color 0.8s ease;
}

@media (hover: hover) {
    .link__external:hover {
        color: var(--text-light);
    }
}

@media (hover: hover) and (pointer: fine) {
    .media__wrapper:hover .media__img--hover {
        opacity: 1;
    }

    .media__wrapper:hover .media__img--default {
        opacity: 0;
    }
}

.h2__section__content {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 450;
}

.h3__section__content {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 450;
}

.p__section__content {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
}

.link__project {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* BUTTONS GRID */
.div__section_grid {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: flex-end;        
    padding-bottom: 18px;         
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.div__section_ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.div__section_li {
    background: var(--btn-bg);
    transition: background 0.6s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-left: 13px;
    padding-right: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 6px;
}

.header a, .div__section_grid a, .div__section_li {
    font-family: var(--font-family);
    font-weight: 450;
    font-size: 14px;
}

/* TAGS FIJOS EN PÁGINAS DE PROYECTO */
.div__section_grid:not(:has(img)) {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.div__section_grid:not(:has(img)).is-visible {
    transform: none;
    opacity: 1;
}

.div__section_grid:not(:has(img)) .div__section_li {
    pointer-events: auto;
}

.div__section_grid:not(:has(img)) .div__section_ul {
    gap: 12px;
}

.div__section_grid:not(:has(img)) .div__section_li {
    padding: 0;
    pointer-events: auto;
}

.div__section_grid:not(:has(img)) .div__section_li a {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-dark);
}

/* CONTENT GRID */
.section__content_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
    row-gap: 90px;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    padding-left: var(--side-margin);
    padding-right: var(--side-margin);
}

/* PROJECTS */
.container {
    width: 100%;
    max-width: var(--max-width-content);
    margin-inline: auto;
    padding-inline: var(--side-margin);
}

/* PROJECT INFORMATION */
.div__project_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 160px;
    padding-bottom: 40px;
    gap: 20px;
    text-align: center;
}

.h1__titles_projects {
    color: var(--text-dark);
    font-weight: 450;
    font-size: 29px;
    line-height: 125%;
    font-family: var(--font-family);
}

.p__project_information {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-light);
    line-height: 132%;
    max-width: 700px;
    font-size: 17px;
}

.div__scoope .ul__skills {
    justify-content: center;
}

/* IMAGES GALLERY */
.div__gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.div__gallery img {
    width: 100%;
}

.img__gallery {
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.div__gallery_group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.div__gallery_group img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.media__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;      
    filter: blur(3px);    
    transform: scale(1.15);       
}

.div__gallery_group .media__wrapper--framed {
    border-radius: 10px;
}

.div__gallery_group .media__video--framed {
    position: absolute;
    inset: 0;
    margin: auto;
    transform: none;
    width: 80%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 4px;
}


/* RESEARCH */
.div__research {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding-top: 70px;
}

.h2__content_title {
    color: var(--text-dark);
    font-weight: 450;
    font-size: 25px;
    line-height: 125%;
    font-family: var(--font-family);
}

.p__content_information {
    font-family: var(--font-family);
    font-weight: 350;
    color: var(--text-light);
    line-height: 136%;
    font-size: 16px;
}

.div__content_text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.div__research .img__content {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
}


.p__research {
    margin-bottom: 2px;
}

.image__center {
    display: block;
    grid-template-columns: none;
    width: calc((100% - 24px) / 2);
    margin-inline: auto;
}

.image__center img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.span__decision_title {
    font-family: var(--font-family);
    font-weight: 550;
}

.div__content_text--decisions {
    gap: 20px;
}

@media (max-width: 600px) {
    .image__center {
        width: 100%; 
    }
}

/* WAYFINDING */
.video__frame {
    width: 100%;
    aspect-ratio: 16 / 7;     
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video__frame video {
    height: 100%;     
    width: auto;
    max-width: 100%;
    display: block;
}

.div__gallery_group video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.div__gallery_group video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.video__crop {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}

.video__crop video {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
    transform: scale(1.03);  
}

/* FOOTER */
.p__footer {
    display: flex;
    justify-content: center;
    color: var(--text-light);
    font-family: var(--font-family);
    font-weight: 350;
    font-size: 15px;
    padding-top: 46px;
    padding-bottom: 46px;
}

/* BOTONES INFERIORES */
.div__section_grid:has(img) .div__section_ul {
    gap: 1;
    flex-wrap: nowrap;
    padding: 4px;
    background: var(--btn-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
}

.div__section_grid:has(img) .div__section_li {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: 6px;
    transition: background 0.4s ease;
}

@media (hover: hover) {
    .div__section_grid:has(img) .div__section_li:hover {
        background: rgba(0, 0, 0, 0.12);
    }
}

/* ICONOS LIST / GRID */
.div__section_grid:has(img) {
    --icon-size: 22px;  
}

.div__section_grid:has(img) .div__section_a {
    position: relative;
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
}


/* MEDIA QUERYS */

/* MEDIA LAPTOP */
@media (max-width: 1500px) {

    .div__about {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
    
}


/* MEDIA IPAD */
@media (max-width: 680px) {

     /* MEDIA WORK */
    .section__h1 {
    font-size: 30px;
    }

    :root {
        --img-ratio: var(--img-ratio-compact);  
    }

    .div__section_grid {
    display: none;
    }

    .section__content_grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 60px;
    column-gap: 28px; 
    }

    }

    .div__section_a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 0;
}

/* MEDIA MOBILE */
@media (max-width: 600px) {

    /* MEDIA WORK */

    .section__h1 {
    font-size: 20px;
    line-height: 126%;
    }

    .div__content img, .div__content_driv img {
    height: auto;
    }

    .h2__section__content, .h3__section__content {
    font-size: 17px;
    }

    .p__section__content {
    font-size: 14px;
    } 

    .section__content {
        gap: 46px; 
    }

    .section__content_grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 46px;
    }

    body {
    padding-bottom: 1px;
}

  /* MEDIA ABOUT */
.break-desktop {
        display: none;
    }


     /* PROJECTS */

    .p__project_information {
        line-height: 133%;
        font-size: 15px;
    }

    .div__gallery_group {
        grid-template-columns: 1fr;
    }

    .img__gallery {
    aspect-ratio: 16 / 10;
    }

    .h1__titles_projects {
        font-size: 24px;
    }

    .div__project_container {
        gap: 16px;
    }

    .div__research .img__content {
    aspect-ratio: 16 / 10;
    }

    .p__content_information {
        line-height: 133%;
        font-size: 15px;
        font-weight: 400;
    }

    /* PROJECTS */
    .div__project_container {
        padding-top: 110px;   
        padding-bottom: 28px; 
    }

    /* RESEARCH */
    .div__research {
        padding-top: 36px;   
    }
}

@media (max-width: 375px) {
    .section__hero {
        width: 92%;
    }

    .section__h1 {
        font-size: 19px;
        line-height: 129%;
    }
}
/* MEDIA QUERYS */


