/* ------------------------------------------------ */
/* ESTILO EDITORIAL / PORTAFOLIO */
/* ------------------------------------------------ */

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

html{
  scroll-behavior:smooth;
}

body{
  background:#faf8f5;
  color:#1a1a1a;
  font-family:'Manrope',sans-serif;
  overflow-x:hidden;
  line-height:1.65;
}
/* ------------------------------------------------ */
/* TEXTURA */
/* ------------------------------------------------ */

.paper-texture{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.35;

  background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBmaWxsPSIjZTBlMGRjIiBmaWxsLW9wYWNpdHk9IjAuMDQiIGQ9Ik0wIDBoNDB2NDBIMHoiLz48L3N2Zz4=');

  background-repeat:repeat;
}
body::before{

  content:"";

  position:fixed;
  inset:0;

  pointer-events:none;

  background-image:
    linear-gradient(
      rgba(0,0,0,.02) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0,0,0,.02) 1px,
      transparent 1px
    );

  background-size:60px 60px;

  opacity:.4;

  z-index:-2;
}

/* ------------------------------------------------ */
/* TIPOGRAFÍA */
/* ------------------------------------------------ */

body,
button,
input,
textarea,
.btn,
.btn-sci,
.side-menu a,
.section h3,
.titulo-modulo{
    font-family:'Manrope',sans-serif;
}

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

/* ------------------------------------------------ */
/* HEADER */
/* ------------------------------------------------ */

header{
  width:100%;
  padding:26px 60px;

  position:fixed;
  top:0;
  left:0;

  z-index:200;

  backdrop-filter:blur(12px);

  background:rgba(250,248,245,.78);

  border-bottom:1px solid rgba(224,221,216,.5);
}

.logo img{
  height:50px;
  width:auto;
  display:block;

  transition:.3s ease;
}

.logo:hover img{
  opacity:.85;
  transform:scale(.98);
}
.cursor{

  width:18px;
  height:18px;

  border:1px solid #111;
  border-radius:50%;

  position:fixed;

  left:0;
  top:0;

  pointer-events:none;

  z-index:9999;

  transform:translate(-50%,-50%);

  transition:
  width .2s ease,
  height .2s ease;
}
/* ------------------------------------------------ */
/* MENU DESKTOP + HAMBURGUESA MOBILE */
/* ------------------------------------------------ */

.menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  transition: .3s ease;
}

.menu-toggle:hover {
  transform: scale(1.08);
}

.side-menu {
  position: fixed;
  top: 35px;
  right: 80px;
  z-index: 300;
  transition: all .5s ease;
}

.side-menu ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu li {
  margin: 0;
  padding: 0;
}

.side-menu a {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 3px;
  color: #7d776d;
  transition: .25s ease;
  writing-mode: horizontal-tb;
  transform: none;
}

.side-menu a:hover {
  color: #111;
}

/* DESKTOP SCROLL */
@media (min-width: 993px) {
  .side-menu.scrolled {
    top: 50%;
    right: 34px;
    transform: translateY(-50%);
    border-left: 1px solid #d6d1c9;
    padding-left: 14px;
  }

  .side-menu.scrolled ul {
    flex-direction: column;
    gap: 24px;
  }

  .side-menu.scrolled a {
    writing-mode: vertical-rl;
  }
}

/* MOBILE / TABLET */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .side-menu,
  .side-menu.scrolled {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 100% !important;
    height: 100vh !important;
    background: #111;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-left: none !important;
    transform: none !important;
    z-index: 9998;
    transition: right .4s ease !important;
  }

  .side-menu.active,
  .side-menu.scrolled.active {
    right: 0 !important;
  }

  .side-menu ul,
  .side-menu.scrolled ul {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .side-menu a,
  .side-menu.scrolled a {
    color: #fff !important;
    font-size: 1.2rem !important;
    letter-spacing: 3px;
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }
}

/* ------------------------------------------------ */
/* HERO EDITORIAL */
/* ------------------------------------------------ */

.hero-slider{

  position:relative;

  min-height:100vh;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:140px 80px 80px;

  overflow:hidden;

  border-bottom:1px solid #e0ddd8;
}

/* ocultamos overlay antiguo */

.hero-overlay{
  display:none;
}

/* slides */

.hero-slide{

  position:absolute;

  width:100%;
  max-width:1400px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:80px;

  opacity:0;
  visibility:hidden;

  transition:.8s ease;
}

.hero-slide.active{

  opacity:1;
  visibility:visible;
}
.hero-slide{

  transition:
  transform .25s ease,
  opacity .8s ease;
}

/* ------------------------------------------------ */
/* CONTENIDO */
/* ------------------------------------------------ */

.hero-content{

  flex:0 0 420px;

  position:relative;
  left:auto;
  bottom:auto;

  max-width:none;
}

.hero-tag{

  display:block;

  margin-bottom:18px;

  color:#7d776d;

  font-size:12px;
  letter-spacing:3px;

  text-transform:uppercase;

  font-family:"Inter",sans-serif;
}

.hero-content h1{

  font-size:clamp(4rem,8vw,7rem);

  line-height:.88;

  font-weight:400;

  color:#111;

  margin-bottom:20px;
}

.hero-content p{

  color:#4b4844;

  font-size:18px;

  max-width:420px;

  font-family:"Inter",sans-serif;
}

/* ------------------------------------------------ */
/* PANEL DIGITAL */
/* ------------------------------------------------ */

.hero-panel{

  width:min(850px,55vw);

  aspect-ratio:16/9;

  position:relative;

  overflow:hidden;

  border-radius:16px;

  background:#fff;

  transform:
      rotateY(-12deg)
      rotateX(4deg);

  transition:.6s ease;

  box-shadow:
      0 40px 70px rgba(0,0,0,.12),
      0 15px 30px rgba(0,0,0,.08);
}

.hero-panel:hover{

  transform:
      rotateY(-6deg)
      rotateX(2deg)
      translateY(-8px);
}

/* costado */

.hero-panel::before{

  content:"";

  position:absolute;

  top:0;
  right:-14px;

  width:14px;
  height:100%;

  background:#d8d8d8;
}

/* base */

.hero-panel::after{

  content:"";

  position:absolute;

  left:0;
  bottom:-14px;

  width:100%;
  height:14px;

  background:#ececec;
}

.hero-panel img{

  width:100%;
  height:100%;

  object-fit:cover;

  display:block;
}

/* ------------------------------------------------ */
/* BOTONES */
/* ------------------------------------------------ */

.hero-buttons{

  display:flex;

  gap:16px;

  margin-top:32px;

  flex-wrap:wrap;
}

.btn{

  padding:14px 30px;

  border:1px solid #111;

  background:transparent;

  color:#111;

  text-transform:uppercase;

  letter-spacing:2px;

  font-size:12px;

  transition:.25s ease;
}

.btn:hover{

  background:#111;

  color:#fff;
}

.btn-primary{

  background:#111;

  color:#fff;
}

.btn-primary:hover{

  background:transparent;

  color:#111;
}

/* ------------------------------------------------ */
/* CONTROLES */
/* ------------------------------------------------ */

.hero-controls{

  position:absolute;

  right:60px;
  bottom:60px;

  z-index:20;

  display:flex;

  gap:12px;
}

.hero-controls button{

  width:52px;
  height:52px;

  border:1px solid #d8d4cd;

  background:#fff;

  color:#111;

  cursor:pointer;

  transition:.25s ease;
}

.hero-controls button:hover{

  background:#111;

  color:#fff;
}
/* ------------------------------------------------ */
/* SECCIONES */
/* ------------------------------------------------ */

.section{
  position:relative;
  z-index:20;

  background:#faf8f5;

  max-width:1100px;

  margin:auto;

  padding:120px 60px;

  border-bottom:1px solid #e0ddd8;
}

.section h3,
.titulo-modulo{
  font-size:26px;
  font-weight:500;

  text-transform:uppercase;
  letter-spacing:3px;

  margin-bottom:60px;

  border-left:3px solid #111;

  padding-left:20px;

  color:#2b2926;
}

/* ------------------------------------------------ */
/* SOBRE MI */
/* ------------------------------------------------ */

#sobre-mi{
  position:relative;
  z-index:30;

  background:#faf8f5;
}

.about-container{
  display:flex;
  gap:70px;

  align-items:flex-start;

  flex-wrap:wrap;
}

.about-image{
  flex:1;

  min-width:240px;
  max-width:320px;
}

.about-image img{
  width:100%;

  display:block;

  border:1px solid #dfdad3;

  filter:grayscale(.15);

  transition:.4s ease;
}

.about-image img:hover{
  filter:grayscale(0);

  transform:translateY(-4px);
}

.about-content{
  flex:2;

  min-width:300px;
}

.about-content p{
  font-size:20px;

  margin-bottom:26px;

  color:#2b2926;
}

.about-content p:first-of-type::first-letter{
  float:left;

  font-size:70px;
  line-height:.8;

  margin-right:12px;

  font-weight:500;
}

.about-highlight{
  display:inline-block;

  margin-top:12px;

  font-size:12px;
  letter-spacing:3px;

  text-transform:uppercase;

  color:#6e675e;

  border-bottom:1px solid #cfc9c0;

  padding-bottom:8px;

  font-family:"Inter",sans-serif;
}
.about-image{
  position:relative;
}

.about-image::before{
  content:"";

  position:absolute;

  top:-20px;
  left:-20px;

  width:100%;
  height:100%;

  border:1px solid #d8d1c9;

  z-index:-1;
}

/* ------------------------------------------------ */
/* STACK TECNOLÓGICO */
/* ------------------------------------------------ */

.tech-stack{

  display:flex;
  flex-wrap:wrap;

  gap:10px;

  margin-top:40px;
  margin-bottom:35px;
}

.tech-stack span{

  padding:10px 16px;

  border:1px solid #d9d3cb;

  font-family:"Inter",sans-serif;

  font-size:12px;

  letter-spacing:2px;

  text-transform:uppercase;

  color:#6e675e;

  transition:.3s ease;
}

.tech-stack span:hover{

  background:#111;

  color:#faf8f5;

  border-color:#111;
}
/* ------------------------------------------------ */
/* PROCESO DE TRABAJO */
/* ------------------------------------------------ */

.process-section {
  max-width: 1100px;
  margin: auto;
  padding: 120px 60px;
  border-bottom: 1px solid #e0ddd8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  position: relative;
  padding: 40px 25px;
  overflow: hidden;
  transition: .35s ease;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  right: 25px;
  height: 1px;
  background: #d9d3cb;
  transition: .35s ease;
}

.step::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: #1d1d1d;
  opacity: 0;
  transition: .35s ease;
  z-index: -1;
}

.step span {
  display: block;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: 3px;
  color: #000;
  transition: .35s ease;
}

.step h4 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  margin-bottom: 16px;
  color: #2b2926;
  transition: .35s ease;
}

.step p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #6e675e;
  transition: .35s ease;
}

.step:hover {
  transform: translateY(-8px);
}

.step:hover::after {
  opacity: 1;
}

.step:hover::before {
  background: #fff;
}

.step:hover span,
.step:hover h4,
.step:hover p {
  color: #fff;
}

/* TABLET */
@media (max-width: 992px) {

  .process-section {
    padding: 100px 32px;
  }

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

}

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

  .process-section {
    padding: 80px 24px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step {
    padding: 32px 22px;
    border: 1px solid #e0ddd8;
  }

  .step::before {
    left: 22px;
    right: 22px;
  }

  .step:hover {
    transform: none;
  }

}
/* ------------------------------------------------ */
/* DESTACADOS */
/* ------------------------------------------------ */

.proyectos-destacados{
  position:relative;
  z-index:20;

  background:#faf8f5;

  padding:120px 40px;
}

.proyectos-grid{
  max-width:1400px;

  margin:auto;

  display:grid;

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

  gap:24px;
}

.proyecto-card{
  position:relative;

  height:520px;

  overflow:hidden;

  background-size:cover;
  background-position:center;

  transition:.45s ease;
}

.proyecto-card::before{
  content:"";

  position:absolute;
  inset:0;

  background:
  linear-gradient(
    to top,
    rgba(0,0,0,.84),
    rgba(0,0,0,.08)
  );

  transition:.35s ease;
}

.proyecto-card:hover{
  transform:translateY(-8px);
}

.proyecto-card:hover::before{
  background:
  linear-gradient(
    to top,
    rgba(0,0,0,.92),
    rgba(0,0,0,.02)
  );
}

.proyecto-card .info{
  position:absolute;

  bottom:0;
  left:0;

  width:100%;

  padding:34px;

  z-index:2;
}

.proyecto-card h4{
  color:#fff;

  font-size:32px;

  margin-bottom:10px;

  font-weight:400;
}

.proyecto-card p{
  color:rgba(255,255,255,.75);

  font-size:13px;

  letter-spacing:1px;

  text-transform:uppercase;

  font-family:"Inter",sans-serif;
}

/* ------------------------------------------------ */
/* CONTACTO */
/* ------------------------------------------------ */

#contacto{
  text-align:center;
}

.btn-sci{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  padding:16px 36px;

  background:#111;

  color:#faf8f5;

  letter-spacing:2px;

  text-transform:uppercase;

  font-size:12px;

  transition:.3s ease;
}

.btn-sci:hover{
  transform:translateY(-3px);

  background:#2d2d2d;
}
.contacto-section{

  text-align:center;
}

.contacto-text{

  max-width:600px;

  margin:0 auto 40px;

  font-size:20px;

  color:#5f5a54;
}

.social-links{

  display:flex;

  justify-content:center;

  gap:20px;

    margin-top:60px;
}

.social-links a{

  width:54px;
  height:54px;

  display:flex;

  align-items:center;
  justify-content:center;

  border:1px solid #ddd5cc;

  border-radius:50%;

  font-size:18px;

  color:#111;

  transition:.3s ease;
}

.social-links a:hover{

  transform:translateY(-4px);

  background:#111;

  color:#faf8f5;
}

/* ------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------ */

footer{

  padding:40px 20px;

  text-align:center;

  border-top:1px solid #e0ddd8;

  font-size:11px;

  letter-spacing:2px;

  text-transform:uppercase;

  color:#8a847c;

  font-family:"Inter",sans-serif;
}

/* ------------------------------------------------ */
/* RESPONSIVE */
/* ------------------------------------------------ */

@media (max-width:980px){

  .section{
    padding:90px 30px;
  }

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

  .proyecto-card{
    height:420px;
  }

  .about-container{
    flex-direction:column;
  }

  .about-image{
    max-width:260px;
  }
}

@media (max-width:768px){

  header{
    padding:22px 24px;
  }

  .logo img{
    height:48px;
  }

  .side-menu{
    top:auto;
    bottom:0;
    left:0;
    right:0;

    transform:none;

    flex-direction:row;

    justify-content:center;

    gap:26px;

    padding:14px 10px;

    border-left:none;
    border-top:1px solid #ddd6ce;

    background:rgba(250,248,245,.94);

    backdrop-filter:blur(10px);
  }

  .side-menu a{
    writing-mode:horizontal-tb;

    font-size:10px;

    letter-spacing:2px;
  }

  .hero-slider{
    height:92vh;
  }

  .hero-content{
    left:24px;
    right:24px;

    bottom:120px;
  }

  .hero-content h1{
    font-size:54px;
  }

  .hero-content p{
    font-size:15px;
  }

  .hero-buttons{
    flex-direction:column;

    align-items:flex-start;
  }

  .hero-buttons .btn{
    width:100%;

    text-align:center;
  }

  .hero-controls{
    right:24px;
    bottom:40px;
  }

  .hero-controls button{
    width:46px;
    height:46px;
  }

  .section h3,
  .titulo-modulo{
    font-size:22px;

    margin-bottom:40px;
  }

  .about-content p{
    font-size:18px;
  }

  .proyecto-card{
    height:340px;
  }

  footer{
    padding-bottom:90px;
  }
}
.menu-toggle{
    display:none;

    position:fixed;
    top:22px;
    right:22px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:#111;
    color:#fff;

    font-size:1.2rem;

    cursor:pointer;

    z-index:9999;

    transition:.3s;
}

.menu-toggle:hover{
    transform:scale(1.08);
}

@media (max-width:992px){

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .side-menu{

        position:fixed;

        top:0;
        right:-100%;

        width:280px;
        height:100vh;

        background:#111;

        display:flex;
        flex-direction:column;

        justify-content:center;
        align-items:center;

        gap:35px;

        transition:.45s ease;

        writing-mode:horizontal-tb;

        z-index:9998;
    }

    .side-menu a{
        color:white;
        font-size:1.1rem;
    }

    .side-menu.active{
        right:0;
    }

}
/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  left: auto;

  width: 52px;
  height: 52px;

  border: none;
  border-radius: 50%;

  background: #111;
  color: #fff;

  font-size: 1.2rem;
  z-index: 9999;
  cursor: pointer;
}

/* MOBILE / TABLET */
@media (max-width: 992px) {

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .side-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;

    width: 100%;
    height: 100vh;

    background: #111;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 32px;

    writing-mode: horizontal-tb !important;
    transform: none !important;

    z-index: 9998;
    transition: right 0.4s ease;
  }

  .side-menu.active {
    right: 0 !important;
  }

  .side-menu a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
  }
}
/* Mantener menú hamburguesa normal en mobile aunque haya scroll */
@media (max-width: 992px) {

  .side-menu,
  .side-menu.scrolled,
  .side-menu.active,
  .side-menu.scrolled.active {
    writing-mode: horizontal-tb !important;
    transform: none !important;

    top: 0 !important;
    right: -100% !important;
    left: auto !important;

    width: 100% !important;
    height: 100vh !important;

    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .side-menu.active,
  .side-menu.scrolled.active {
    right: 0 !important;
  }

  .side-menu a,
  .side-menu.scrolled a {
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }
}
/* ------------------------------------------------ */
/* HERO MOBILE SIN IMÁGENES */
/* ------------------------------------------------ */

@media (max-width: 768px) {

  .hero-panel {
    display: none !important;
  }

  .hero-slider {
    min-height: 100vh;
    height: auto;
    padding: 120px 24px 90px;
    align-items: center;
    justify-content: center;
  }

  .hero-slide {
    position: absolute;

    width: 100%;
    height: 100%;

    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0;
  }

  .hero-content {
    flex: none;

    width: 100%;
    max-width: 100%;

    position: relative;

    left: auto;
    right: auto;
    bottom: auto;

    text-align: left;
  }

  .hero-content h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
    line-height: .9;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-controls {
    right: 24px;
    bottom: 32px;
  }

}

