:root {
    --azulClaro: #8BD1FF;
    --azulOcuro: #68b6ea;
    --verdeClaro: #9ADE9B;
    --verdeOscuro: #74c775;
}


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

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' viewBox='0 0 9 12'%3E%3Cpath d='M9 0 L0 6 L9 12 Z' fill='%2368b6ea'/%3E%3C/svg%3E") 0 6, auto;
}

a, button, address {
    all: unset;
    width: fit-content;
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='13' viewBox='0 0 12 9'%3E%3Cpath d='M6 0 L12 9 L0 9 Z' fill='%2368b6ea'/%3E%3C/svg%3E") 6 0, auto;
}

.cursor {cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='13' viewBox='0 0 12 9'%3E%3Cpath d='M6 0 L12 9 L0 9 Z' fill='%2368b6ea'/%3E%3C/svg%3E") 6 0, auto;}


.tag {
padding: 1px 4px 0px 4px;
border-radius: 5px;
color: #111;
width: fit-content;

display: flex;
align-items: center;
gap: 6px;
}

.tag:hover{
background-color: white;
}

html,
body {
    width: 100vw;
    max-width: 100vw;
    min-height: 100%;
    background: #f2f2f2;
}

header, main, .textoFooter {max-width: 1500px; margin: auto;}

summary {cursor: pointer;}
summary.menu::marker {color: var(--verdeOscuro)}
summary.menu:hover {color: var(--verdeOscuro) }
summary.studio::marker { color: var(--azulOcuro) }
summary.studio:hover{ color: var(--azulOcuro) }

.marker { background: var(--verdeClaro);

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

mark {background-color: white; padding: 0.5px 2px ;}

.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid currentColor;
}

.linea {
    width: 100%;
    border-bottom: 1px solid #2121219e ;
  }

  .fila{ display: flex; flex-direction: row; gap: 8px;}


/* 1. Header
   ========================================================================== */

.header {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;

  & .header__logo { 
    display: flex;
    flex-direction: row;
    align-content: center;
    gap: 4px;
    & p {
      font-family: "Cal Sans", sans-serif;
      font-weight: 200;
      font-style: normal;
      font-size: 1.14rem;
      line-height: 100%;
      text-transform: inherit;
      letter-spacing: 0.02em;
    
    }
  }
}

 .aside_menu {
  z-index: 40;
  position: absolute;
  display: flex;
  flex-direction: column;
  width: calc(100% - 32px);
  height: fit-content;
  margin-top: 16px;
  background-color: var(--verdeClaro);

  & .bloque__titulo {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-block: 80px 100px;
    align-items: center;
    gap: 16px;

    & .margen {padding-left: 80px}

    & h3 { 
      font-size: 4.2rem;
      max-width: 850px;
      letter-spacing: -0.04em;
      padding-bottom: 6px;
      }

    & .text-body {
      text-transform:none; 
      letter-spacing: 0px;
    }
  }
  & .bloque__texto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 80px
  }
  & img {
    position: absolute;
    width: 200px;
    top: 28%;
    right: 42%;
    transform: scaleX(-1);
  }
  
  & .bloque__contacto {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;

    & .bloque__contacto_sub { 
    display: flex;
    flex-direction: column;
    gap: 4px;
      & .bloque__boton { 
        width: fit-content; 
        border-radius: 5px;
        padding: 4px 5px 4px 5px; 
      }
      & .bloque__boton:hover{background-color: white;}
      & address, a {font-style: normal; text-decoration: none;  }
      & svg {transform: translateY(2px);}
    }
  }
 }

 #mensaje-copiado {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--azulClaro);
    color: black;
    padding: 10px 16px;
    border-radius: 25px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
}

#mensaje-copiado.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.aside_infoSobreMi {
  z-index: 50;
  position: absolute;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  width: auto;
  min-width: 0;
  margin-right: 16px;
  padding: 16px;
  background-color: var(--azulClaro);

    & .espacioTitulo {
    margin-top:48px;
    margin-bottom: 8px;
    }

    & button {
      height: 12px;
    }
    & .linea {
      margin-block: 12px;
      width: 100%;
      border-bottom: 1px solid #38547B;
    }
    & ul {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      list-style: none;
      gap: 16px;
      padding-block: 8px;
        & li {
          line-height: 100%; height: fit-content;
          padding:4px 4px;
          background-color: white;
          border-radius: 5px;
        }
    }
    & .cont__img {
      width: 100%; 
      display: flex; 
      justify-content: center; 
      padding-block: 48px;
      & img {width: 100px}
    }
    & .contacto {
      padding-block: 8px;
      display: flex;
      flex-direction: column;
      gap:0;
        & .contacto_sub {
          display: flex; flex-direction: row; justify-content: space-between;
          height: fit-content;
        }
    }
  }

  @keyframes sacudir {
  0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

#telefono.shake {
    animation: sacudir 0.3s ease-in-out;
}

/*   Acordeon  */

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
}


.accordion-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.plus, .icon {transition: transform 0.3s ease;}
.accordion-item.active .plus {transform: rotate(45deg);}
.accordion-item.active .icon {transform: rotate(90deg);}

/* // TABLET / MOVIL // */

@media (max-width: 1000px) {

      .header {
        grid-template-columns: repeat(2, 1fr);
        & .header__logo { display: none;}
      }
    }

@media (max-width: 600px) {

    summary::marker { font-size: 1.5rem }

    .header {
    grid-template-columns: repeat(3, 1fr);
    height: 28px;
      & .header__logo { 
        display: block;
        margin: auto;
        & p {display: none}
      }
      & .studio {text-align: right;}
    }

    .aside_menu {
    width: auto;
    left:16px;
    right: 16px;
    padding: 24px;

      & .bloque__titulo {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-block: 16px 16px;
        margin-left: 0px;
        gap: 24px;

        & .margen {padding-left: 0px }
        
      }
      & img { 
        width: 165px; 
        top: 20%; 
        left: 50%;
         transform: translateX(-50%);
      }
      & .bloque__texto{padding-right: 0px}
      & .bloque__contacto {
        display: flex;
        flex-direction: column;
        padding-block: 8px 8px; gap: 24px;
      }
    }

    .aside_infoSobreMi {
      width: auto; 
      left:16px; 
      padding: 24px;

          & .contacto {gap:4px;}
          & h6 {text-decoration: none;}

          

    }
}

/* 2. Proyectos
   ========================================================================== */

.portfolio {
    width: 100%;
    padding-top: 47vh;
}

.project__info {
    position: fixed;
    top: 50vh; 
    z-index: 20;
    width: 100%;
    height: 16px;
    padding-inline: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: start;
}

/* Reticula */

.projects {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-inline: 16px;
  padding-bottom: 64px;
  
  & .project {
    position: relative;
    width: 100%;
    height: 500px;
    background: #dddddd;

    & .project__texto {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content:space-between;
        padding: 16px;
        &:hover { 
          p, h5 {display: flex}
          cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' viewBox='0 0 9 12'%3E%3Cpath d='M0 0 L9 6 L0 12 Z' fill='%2374c775'/%3E%3C/svg%3E") 9 6, auto;

      }
        & p {display: none; gap: 8px; line-height: 100%; height: fit-content;}
        & span {display: flex; background-color: white; padding:3px 5px; border-radius: 5px;}
        & h5 {display: none; width: fit-content; background-color: #9ADE9B;}
    }
    & .project__visual {
        width: 100%; height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        & .hover-sequence {
          height: 100%;
          width: auto;
          object-fit: contain;
        }
     }
  }
 }

/* // TABLET / MOVIL // */

@media (max-width: 1000px) {

      .projects { grid-template-columns: repeat(2, minmax(0, 1fr));}
      .portfolio__intro {height: 300px;}
      .project__visual { height: 600px; padding-top: 180px; }
      .project__visual img { width: 65%; }
}

@media (max-width: 600px) {

      .project__info { top:48vh }
      .portfolio__intro { height: 40vh }
      #project-counter {text-align: center}
      #project-year {text-align: right;}

      .projects {
            width: 100%;
            max-width: 100%;
            height: fit-content;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding-inline: 16px;
            & .project {
              & .project__texto {
                & p, h5 {display: flex}}  
              }
            & .project__visual {
              padding: 0;
              & .hover-sequence, video {
                width: 100%;
                height: 500px;
                object-fit: cover;
                }
              }
             }
}

   

 
/* XX. Pagina de Proyecto
   ========================================================================== */

.botonback {
    position:fixed;
    z-index: 99999;
    top: 20px; left:42px;
    background-color: transparent;
    & button {
      display: inline-flex;
      justify-content: center; 
      align-items: center;
      width: 30px;
      height: 20px;
      color:var(--azulOcuro);
      background-color: transparent;
      border: none;
      & p{
        color:black;
        margin-left: 7px;
        padding:1px 3px;
        border-radius: 5%;
        background-color: var(--azulClaro);}
    }
   }

.projectPage {

  & .bloqueTitulo {
  display: flex;
  flex-direction: column;
  gap:16px;
  height: fit-content;
  justify-content: center;
  padding: 80px 24px ;
  }

  & .bloque {
    position:relative;
    width: 100%;
    display: grid;
    gap: 32px;
    grid-template-columns: 2fr 1fr;
    padding-block: 40px 80px;
    padding-inline: 16px;

     & .bloquePhotos {
      margin-top: 150px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      & img {object-fit: cover; width: 100%;}
      & .images-row {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 20px; 
        width: 100%;
       & img {
          width: 100%;
          height: auto;
          object-fit: cover;
        }
      }
      
    }
  }


}

.projectPage-info {
position: sticky;
top: 2px;
align-self: start;
height: fit-content;
padding-inline: 16px;

& .bloqueTags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 24px;
  & .lineaTags {
    display: grid;
    grid-template-columns: 1fr 3fr;
  }
}

& .bloqueTexto {
  display: flex;
  flex-direction: column;
  padding-right: 4px;
  & .text-heading-3{
    line-height: 125%;
  }
  & .accordion-content {margin-bottom: 8px;}
  & .textoPrincipal{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }
}
}

@media (max-width: 600px) {

  .projectPage {
   & .bloqueTitulo { padding-bottom: 0}

   .bloque{
    display: flex;
    flex-direction: column;
    & .bloquePhotos {
      margin: 0;
      & .images-row {
        grid-template-columns: 1fr; 
    }
  }
   } 
  }

}


/* 3. Footer
   ========================================================================== */

footer {
  position: relative;
  z-index: 200;
  width: 100%;
  padding: 16px;
  padding-top: 48px;
  background-color: var(--azulClaro);
  & .text-label {white-space: wrap;}
  & a { font-weight: 200 }

  & .textoFooter {
    height: fit-content;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    max-width: 1050px;

    & .claim {
      display: flex;
      flex-direction: column;
      height: 215px;
      margin-right: 6px;
    }
    & .sticker{
      display: inline-block;
      position:sticky;
      top: 25%;
    }

    & .espacioI {padding-right: 10vw;}

    & span {
      display: flex; 
      gap: 8px; 
      text-transform:inherit; 
      font-weight: 200;
      font-size: 1.3rem;
    }
   
    & div { 
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    & mark {
      font-size: 0.6rem;
      background-color: inherit;
    }
  }

  & .logoFooter{
    position: relative;
    height: 450px;

    & span {
      display: inline-block;
      width: 100%;
      position:sticky;
      top: 75%;
      font-family: "Cal Sans", sans-serif;
      font-weight: 600;
      font-style: normal;
      font-size: 10rem;
      text-align: center;
      line-height: 100%;
      letter-spacing: -0.05em;

    }
  }
}

/* // TABLET / MOVIL // */

@media (max-width: 1000px) {

footer {
  & .textoFooter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    
    & .inside { display:none;}
  }
  & .logoFooter{
    & span {font-size: 14.5vw;}
  }
}
}

@media (max-width: 600px) {

footer {
  & .textoFooter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    & .bloq1 {text-align: left;}
    & h2 {margin: 0;}
    & h4 {margin-top: 32px;}
    & .inside { display:none;}
    & .aclarar {color: #58707b;}
    & .claim{ height: auto;}
  }
  & .logoFooter{
    & span {font-size: 14vw; top: 85%;}
  }
}
}
