* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-top: 80px;
    background-color: #000000;
    font-family: 'Bricolage Grotesque Bold';
    color: #dddddd;
}

body.home {
  margin-top: 0;
  padding: 0;
  height: 100vh;
  /*background: url("../IMAGES/gradient.jpg") no-repeat center center fixed;
  background-size: cover;*/
  background-color: #9a9a9a;
}

a {
    text-decoration: none;
    color: #dddddd;
}
.row {
  margin-right: 0;
  margin-left: 0;
}

h1 {
    font-family: 'Bricolage Grotesque Bold';
    color: #dddddd;
    font-size: clamp(70px, 15vw, 100px);
    /*40px → The minimum size (for very small screens)
    10vw → The dynamic size (based on 10% of the viewport width)
    210px → The maximum size (for large screens)*/
    line-height: clamp(0.25em, 12vw, 80px); 
    /*1em → Ensures the minimum line-height isn't too large on small screens.
    12vw → Dynamically adjusts with the viewport width.
    180px → The maximum value for large screens.*/
}
.kyoto {
  font-family: 'Tessela';
  color: #dddddd;
  font-size: clamp(100px, 12vw, 800px);
  line-height: clamp(0.7em, 12vw, 1em);
  padding-bottom: 0.02em;
}

.kyoto-img {
  display: inline-block;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  transition: width 0.2s ease; /* suaviza el cambio */
}

/* Nora */
.nora-img {
  width: clamp(200px, 30vw, 1400px);
}

/* Serrano */
.serrano-img {
  width: clamp(240px, 37vw, 1550px);
}

.icon {
  font-family: "MiFuente";
  font-size: 60px;
  display: inline-block;
}

/* Aquí dibujas el glifo inventado */
.icon-net::before {
  content: "\233"; /* carácter vacío que forzará tu glifo */
}

.kyoto-text {
  font-family: 'Tessela';
  font-size: 40px; /* ajusta al gusto */
  line-height: 35px;
}
.no-vertical-scroll {
    overflow-y: hidden; /* Bloquea desplazamiento vertical */
}
.no-horizontal-scroll {
    overflow-x: hidden; /* Bloquea desplazamiento vertical */
}

.navbar-brand {
    margin: 0px 0px 0px 10px;
    transition: color 0.3s ease;
    color: #dddddd; /* Set default color */
}

.navbar-brand:hover,
.navbar-brand.active {
    color: #e92300; /* Color on hover or when active */
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    color: #dddddd; /* Default color */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e92300; /* Color on hover or when active */
}

/*NAV HEADER*/
.navbar-brand {
    font-family: 'Bricolage Grotesque Regular';
    font-size: 34px;
    color:#dddddd;
}

header {
    font-family: 'Bricolage Grotesque Regular';
    font-size: 34px;
}

/*para los ojos del nav*/
.navbar-nav .nav-link.kyoto-text {
  font-family: 'Tessela';
  font-size: 30px;
  line-height: 35px;
}

.navbar-nav {
    margin-left: auto;
    margin-right: 10px;
}

.cursor {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    font-family: "Tessela"; /* Tu fuente personalizada */
    font-size: 40px; /* Tamaño del glifo */
    color: white; /* Color del glifo */
    mix-blend-mode: difference; /* Igual que antes, opcional */
    transition: left linear 0.02s, top linear 0.02s;
}


/*-->PÁG. CONCRETA*/
.sidebar {
    margin-top: 70px;
    position: fixed;
    left: 0;
    top: 0;
    width: 25%;
    height: 100%;
    padding: 10px 30px 100px 10px;
    background-color:#000000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content {
    margin-left: 25%;
    width: 75%;
    overflow-y: auto;
    padding-inline: 12px !important;
}

.top-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-inline: 12px !important;
}

.display-1 {
    font-size: 10rem;
    line-height: 150px;
}
.display-2 {
    font-family: 'Bricolage Grotesque Medium';
    font-size: 4.2rem;
    line-height: 72px;
    color: #dddddd;
}

.l2p {
    font-family: 'Bricolage Grotesque Regular';
    font-size: 34px;
    line-height: 38px;
}

.btn {
    font-family: 'Bricolage Grotesque Regular';
    font-size: 12px;
    color: #dddddd;
    border: 1px solid #dddddd; /* o el color que quieras */
    background: transparent;   /* opcional */
    padding: 2px 6px;          /* controla lo "pegado" al texto */
    display: inline-block;     /* asegura que se adapte al texto */
    border-radius: 4px;        /* opcional, para bordes redondeados */
}

.btn:hover {
    background-color:  #000000;
    color: #dddddd;
    border: 1px solid #dddddd;
}

.scroll {
    font-family: 'Bricolage Grotesque Regular';
    font-size: 16px;
    margin-top: 30px;
    color: white;
}

@media (max-width: 992px) {
    .sidebar {
        position: static;
        width: 100%;
        margin: 0;
        padding: 10px;
        background-color: #130303;
        gap: 20px; 
    }
    .display-2 {
        font-family: 'Bricolage Grotesque Medium';
        font-size: 3rem;
        line-height: 50px;
        color: #dddddd;
    }

    .content {
        margin-left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .l2p {
        font-family: 'Bricolage Grotesque Regular';
        font-size: 25px;
        line-height: 28px;
    }
    .nav-link {
        font-family: 'Bricolage Grotesque Regular';
        font-size: 25px;
        line-height: 28px;
    }
    .navbar-brand {
        font-family: 'Bricolage Grotesque Regular';
        font-size: 25px;
        line-height: 28px;
    }

    img {
        margin: 10px 0px 0px 0px;
        display: block;
    }

    video {
        margin: 10px 0px 0px 0px;
        display: block;
    }
    .cursor {
        display: none !important;
    }
}

/*carrousel con flechas*/
.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-item {
    transition: transform 1s ease-in-out;
}

.carouseli {
    max-width: 250vw;
    /* Adjust as needed */
}

/*sliding text*/
.sliding-container {
  position: relative;
  bottom: 0;
  overflow: hidden;
  height: auto;
}

.sliding-text {
  font-family: 'Bricolage Grotesque Regular';
  color: #dddddd;
  font-size: clamp(12px, 6vw, 24px);
  line-height: 1.2em; 
  white-space: nowrap;
  animation: slide-left 20s linear infinite;
  margin-bottom: 10px; /* Quitamos margin extra */
  padding: 5px 0; /* Para que no se pegue al borde */
}

@keyframes slide-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .sliding-text {
    font-size: clamp(10px, 5vw, 18px);
    line-height: 1.1em;
    padding: 3px 0;
  }
}

.textmed {
    font-family: 'Tessela';
    color: #dddddd;
    font-size: 50px;
    line-height: 48px;
}

@media (max-width: 992px) {
    .textmed {
        font-size: 25px;
        /* Adjust font size for medium screens */
        line-height: 30px;
    }
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    color:#dddddd;
}

.container-fluid {
    overflow-x: hidden;
    /* Disable horizontal scrolling */
}

@keyframes slide-left {
    0% {
        transform: translateX(2%);
        /*reduce in order to make it start closer to its final position*/
    }

    100% {
        transform: translateX(-200%);
    }
}

/*-->ABOUT ME*/
.p1 {
    font-family: 'Bricolage Grotesque Thin';
    font-size: 13px;
    color:#dddddd;
}

.p2 {
    font-family: 'Bricolage Grotesque Regular';
    font-size: 16px;
    line-height: 22px;
    color:#dddddd;
}
.p2--alt {
    font-size: clamp(22px, 5vw, 35px);
    /*40px → The minimum size (for very small screens)
    10vw → The dynamic size (based on 10% of the viewport width)
    210px → The maximum size (for large screens)*/
    line-height: clamp(0.5em, 6vw, 42px); 
    /*1em → Ensures the minimum line-height isn't too large on small screens.
    12vw → Dynamically adjusts with the viewport width.
    180px → The maximum value for large screens.*/
}

.l3p{
    font-family: 'Bricolage Grotesque Regular';
    font-size: 20px;
    line-height: 24px;
    color: #dddddd;
}

.small-text p {
    color: #dddddd;
    font-family: 'Bricolage Grotesque Regular';
    font-size: 0.85rem; /* más pequeño que el bloque de links */
    margin: 0; /* opcional, para que quede más compacto */
}

/*Links about me*/
link {
    color: #dddddd;
    font-family: 'Bricolage Grotesque Light';
    font-size: 16px;
    line-height: 20px;
    background-color: #dddddd;
    margin: -2% auto;
    margin-left: -2%;
    margin-right: -2%;
}

.link a {
    text-decoration: none;
    color: #e92300;
    font-family: 'Bricolage Grotesque Regular';
    font-size: 30px;
}

.link a:hover {
    color: #dddddd;
}

.columna-centro {
  color: #dddddd;
}

/* ===========================
   GALERÍA EN GRID
   =========================== */

/* Contenedor general */
.gallery-wrapper {
  width: 100%;
  padding: 20px 14px 0px 14px;
}

/* Contenedor de la galería en retícula con layout fijo */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columnas virtuales para flexibilidad */
  gap: 12px;
  transition: all 0.3s ease-in-out;
  grid-template-areas:
    "item1 item1 item2 item2 item3 item3"
    "item4 item4 item4 item5 item5 item5"
    "item6 item6 item7 item7 item8 item8";
}

/* Asignación de cada proyecto a un área */
.gallery-item:nth-child(1) { grid-area: item1; }
.gallery-item:nth-child(2) { grid-area: item2; }
.gallery-item:nth-child(3) { grid-area: item3; }
.gallery-item:nth-child(4) { grid-area: item4; }
.gallery-item:nth-child(5) { grid-area: item5; }
.gallery-item:nth-child(6) { grid-area: item6; }
.gallery-item:nth-child(7) { grid-area: item7; }
.gallery-item:nth-child(8) { grid-area: item8; }

/* Elementos individuales */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-top: 10px;

  /* 👇 Estado inicial (invisible y bajado) */
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s ease, opacity 0.8s ease;

  transition: transform 0.4s ease-in-out, opacity 0.3s ease;
  opacity: 1;
}

.gallery-item:hover .project-title {
  color: #e92300; /* cambia este hex por el tono de naranja que quieras */
  transition: color 0.3s ease;
}

/* 👇 Cuando entra en pantalla */
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.dimmed {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* Títulos dentro del item */
.project-title {
  font-family: 'Bricolage Grotesque Medium';
  font-size: 20px;
  margin-bottom: 12px;
  margin-top: 10px;
  text-align: left;
}

/* Imágenes y videos */
.gallery-media {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.5s ease-in-out, transform 0.4s ease;
}

.gallery-media:hover {
  filter: grayscale(0%);
}
/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .gallery-container {
    display: block; /* se quita el grid */
  }

  .gallery-item {
    width: 100%;       /* cada proyecto ocupa todo el ancho */
    margin-bottom: 16px; /* separación entre proyectos */
  }
}

/* ===========================
   BARRA DE FILTROS
   =========================== */
.gallery-filters {
  display: flex !important;
  flex-direction: column !important;  /* forzamos columna */
  align-items: flex-start;
  gap: 4px;                /* poco hueco entre botones */
  padding: 0;
  margin: 0;
  font-family: 'Bricolage Grotesque Medium';
  line-height: 1.2;
  padding: 0px 10px 0px 10px;
}

.filter-btn {
  padding: 2px 6px;;
  margin: 0;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 0.8;      /* apretado pero legible */
  color: #dddddd;
  cursor: pointer;
  text-align: left;           /* el texto va a la izquierda */
  transition: color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #e92300;
}

.filter-btn:first-child {
  color: #e92300 !important;
}


/*PROYECTO DIOR*/
.post-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 aspect ratio */
}

.story-container {
    position: relative;
    overflow: hidden;
    padding-top: 177.78%;
    /* 9:16 aspect ratio (divide 16 by 9 = 1.7778) */
}

.mupi-container {
    position: relative;
    overflow: hidden;
    padding-top: 125%;
}

.videosdior {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-25px {
    padding: 25px;
}
