
@charset "UTF-8";

/* Fonts */
:root {
  --default-font: "Montserrat", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --nav-font: "Montserrat", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}


/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #171C2F; /* Background color for the entire website, including individual sections */
  --default-color: #e8e8e8; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #EAA1C6; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #EAA1C6; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #1c1c1c; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}



/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

#introOverlay {
  cursor: url("../img/svg/martillo.png") 24 24, auto;
}


/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}



h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*NAV===========================================================================================================*/

/* =========================
   NAV — BASE (SOLID)
========================= */

.nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;

  /* sólido elegante */
  background: rgb(23, 28, 47);

  /* separación visual sutil */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  /* para que no “pese” */
  transition: opacity .25s ease, transform .25s ease;
}

/* Oculto para que el hero tenga foco (lo activás con JS) */
.nav{
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.nav.nav--visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Logo */
.nav-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img{
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
}

/* Links desktop */
.nav-links{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-link{
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
 
}

.nav-link:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Active (si después lo querés setear con JS) */
.nav-link.is-active{
  color: rgba(255,255,255,1);
  opacity: 1;
}

/* =========================
   NAV — TOGGLE (MOBILE)
========================= */

.nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

.nav-toggle span + span{
  margin-top: 6px;
}

/* Menú mobile desplegable (lo abrís con .nav--open) */
@media (max-width: 860px){
  .nav-toggle{
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    background: rgba(23, 28, 47, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    padding: 10px 18px;

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-links li{
    width: 100%;
  }

  .nav-link{
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
  }

  .nav.nav--open .nav-links{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/*Logo pagina -----------------------------------------------------------------------------------------------------------*/

.topbar{
  position: fixed;
  top: 5px;
  left: 5px;
  width: 100%;
  z-index: 2000;
  padding: 14px 18px;

  /* transparente para no tapar el hero */
  background: transparent;
  pointer-events: none; /* así no bloquea clicks del hero excepto el logo */
}

.topbar-logo{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbar-logo img{
  width: 60px;
  height: 60px;
  object-fit: cover;

}

/* Bloqueo de scroll mientras está el overlay======================================================================================= */
body.intro-lock {
  overflow: hidden;
  height: 100vh;
}

/* OVERLAY */
.intro-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;              /* bien arriba */
  pointer-events: auto;        /* captura clicks */
  user-select: none;

    /* 👇 cursor martillo */
  cursor: url("../img/svg/martillo.png") 24 24, auto;

  /* blur + oscurecido */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(23, 28, 47, 0.72); /* #171C2F con alpha */

  transition:
    opacity 650ms ease,
    background 650ms ease,
    backdrop-filter 650ms ease,
    -webkit-backdrop-filter 650ms ease;
}

/* Imagen del vidrio (frame actual) */
.glass-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Texto a la izquierda (forzado) */
.intro-copy{
  position: absolute;
  left: clamp(24px, 6vw, 90px);
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: min(560px, 80vw);
  text-align: left;
}

.intro-title{
  margin: 0 0 10px 0;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  color: #f4a7d8; /* rosa como tu referencia (ajustable) */
}

.intro-sub{
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255,255,255,0.92);
}

/* feedback suave de click (micro) */
.intro-overlay.is-hit .glass-frame{
  transform: scale(1.01);
  transition: transform 120ms ease;
}

/* Reveal final */
.intro-overlay.is-breaking{
  opacity: 0;
  background: rgba(23, 28, 47, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
}

.intro-overlay.is-breaking .glass-frame{
  animation: glassFall 520ms ease-in forwards;
}

@keyframes glassFall{
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(70px) rotate(2deg); opacity: 0; }
}

.shards{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.shard{
  position: absolute;
  width: 180px;          /* ajustable */
  opacity: 0;            /* invisibles hasta el final */
  transform: translateY(0) rotate(0deg);
  will-change: transform, opacity;
}

/* posiciones (ejemplos) */
.s1{ left: 8%;  top: 22%; width: 10px; }
.s2{ left: 22%; top: 55%; width: 30px; }
.s3{ left: 46%; top: 18%; width: 20px; }
.s4{ left: 62%; top: 46%; width: 20px; }
.s5{ left: 78%; top: 24%; width: 10px; }
.s6{ left: 70%; top: 70%; width: 10px; }

/* cuando se rompe: aparecen y caen */
.intro-overlay.is-breaking .shard{
  opacity: 1;
  animation: shardFall 520ms ease-in forwards;
}

/* variación por shard (para que no caigan iguales) */
.intro-overlay.is-breaking .s1{ animation-duration: 480ms; transform-origin: 20% 30%; }
.intro-overlay.is-breaking .s2{ animation-duration: 560ms; transform-origin: 50% 50%; }
.intro-overlay.is-breaking .s3{ animation-duration: 520ms; transform-origin: 80% 20%; }
.intro-overlay.is-breaking .s4{ animation-duration: 600ms; transform-origin: 40% 60%; }
.intro-overlay.is-breaking .s5{ animation-duration: 500ms; transform-origin: 60% 40%; }
.intro-overlay.is-breaking .s6{ animation-duration: 580ms; transform-origin: 30% 80%; }

@keyframes shardFall{
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(90px) rotate(8deg); opacity: 0; }
}



/* aqui inicia todo lo del banner, hero, el video, los botones, el titulo---------------------------------------------------------------------
*/
.hero-wrap{
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.hero-card{
  position: relative;
  width: 100%;
  height: 100vh;
  border-radius: 28;     /* importante */
  overflow: hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
}

.hero-bg iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  transform-origin:center;
    transform: scale(1.25);
  filter: saturate(1.05) contrast(1.05);
}

/* overlay cinematográfico para contraste */
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.18) 55%,
    rgba(0,0,0,0.06)
  );
}

.hero-content{
  position:relative;
  z-index:2;
  height:100%;
  padding: clamp(18px, 4vw, 48px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:end;


}

.hero-title{
  
  opacity: 0;
  visibility: hidden;
  font-weight: 800;
  color:#fff;
  line-height: 0.95;
  font-size: clamp(26px, 4.2vw, 4rem);
  margin: 0;
  text-shadow: 0 10px 35px rgba(0,0,0,0.35);
  transform: translateY(-24px);
}

.w{
  display:inline-block;
  white-space:nowrap;
  margin: 0 .12em;
}

.word-circled{
  position:relative;
  display:inline-block;
  padding: .12em .28em;
}

.oval{
  position:absolute;
  left:-21%;
  top:56%;
  transform: translateY(-60%) rotate(-2deg);
  width: 140%;
  height:auto;
  pointer-events:none;
  opacity:0.95;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.20));
}

.sticker{
  position:absolute;
  pointer-events:none;
  width: 46px;
  height:auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}

.sticker-left{ left:-23px; top:35px; }
.sticker-right{ right:-28px; top:-12px; }

/* modal */
.modal-content{
  border-radius: 0 !important;
}

.modal-video-clean{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;     
}

.modal-close-x{
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: white;
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-close-x i{
  font-size: 18px;
}

/* botones */

.hero-controls{
  position: absolute;
  left: 16px;      
  bottom: 40px;    
  z-index: 3;
  display: flex;
  gap: 8px;
}

.icon-btn{
  width: 34px;
  height: 34px;
  padding: 0;                  
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.30);
  background: rgba(0,0,0,0.30);
  color: #EA98C2;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(6px);
}

.icon-btn i{
  font-size: 21px;
  line-height: 1;
}

.icon-btn:hover{
  background: rgba(6, 0, 19, 0.623);
  border: 1px solid #EA98C2;
}

/*FINAL HERO BANNER*/

/*SOBRE Q*/



.sobreq{
  position: relative;
  min-height: 100vh;
  background-color: #171C2F;
  overflow: visible;
}

.sobreq::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/fondo/black-paper.png") repeat;
  opacity: 0.8;               /* ACÁ se regula la textura */
  pointer-events: none;
  z-index: 0; /* siempre atrás */
}




/* separadores como overlays */
 .separator{
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  z-index: 3; /* arriba del fondo */
}

/* top: lo subimos un poco para que se monte con la sección anterior */
 .separator-top{
  top: 0;
  transform: translateY(-45%); /* ajusta: 40%-70% según tu SVG */
}

/* bottom: lo bajamos un poco para que se monte con la siguiente */
 .separator-bottom{
  bottom: 0;
  transform: translateY(55%);
}


.sobreq-inner{
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
   padding: clamp(42px, 7vw, 110px);   /* más aire en bordes */
  gap: clamp(10px, 1.8vw, 22px);      /* menos separación entre columnas */
  grid-template-columns: 1.35fr 0.65fr; /* acerca columnas (visual un poco más protagonista) */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto; /* por si el compu grande se ve todo muy separado*/
}


.sobreq-visual{
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);    
  width: min(560px, 40vw);
  aspect-ratio: 1 / 1;
  order: 2; 
  z-index: 1;
}


.sobreq-star{
  position: absolute;
  inset: 0;
  
  object-fit: contain;
  z-index: 1;
  pointer-events: auto; /* para el molinete luego */
  cursor: grab;
  touch-action: none;
  transform: scale(1.15);
  transform-origin: center;

}

.sobreq-star:active{
  cursor: grabbing;
}

.sobreq-img{
  position: absolute;
  border-radius: 18px;
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}


.sobreq-img.img-top{
  width: 50%;
  height: 60%;
  left: 35%;
  top: 18%;
  transform: rotate(6deg);
}

.sobreq-img.img-bottom{
  width: 48%;
  height: 62%;
  left: 15%;
  top: 30%;
  transform: rotate(-6deg);
}

/*stickers*/

.sobreq-board{
  position: relative;
  width: 100%;
  height: clamp(520px, 68vh, 720px);
  z-index: 2;
 
}



.sobreq-sticker{
  position: absolute;
  z-index: 20;
  width: clamp(120px, 12vw, 190px);
  height: auto;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
   touch-action: none;      /* importante en mobile */
  cursor: grab;
  pointer-events: auto;
  will-change: transform;
}

.sobreq-sticker:active{ cursor: grabbing; }

.sobreq-sticker.is-dragging{
  cursor: grabbing;
}


#sobre-q .sobreq-sticker,
#sobre-q .sobreq-star,
#sobre-q .sobreq-img{
  cursor: grab;
}
#sobre-q .sobreq-sticker:active,
#sobre-q .sobreq-star:active,
#sobre-q .sobreq-img:active{
  cursor: grabbing;
}




/* posiciones base */
.s1{ 
  left: 0px;  
  top: 0px; 
width: clamp(120px, 13vw, 250px); }

.s2{ 
 left: 90%; 
  top: 90%;
  width: clamp(120px, 15vw, 350px)
 }

.s3{ left: 15%;  
  top: 87%;
 width: clamp(120px, 10vw, 150px);
 }

.s4{ left: 110%; 
  top: 10%; 
 width: clamp(120px, 20vw, 400px);}

 .s5{ left: -20%; 
  top: 50%; 
 width: clamp(50px, 7vw, 80px);}


/*texto*/

.sobreq-text{
  max-width: 400px;
   order: 2;
  margin: auto; /*centra*/
   text-align: right;
   position: relative;
  z-index: 1;
  pointer-events: auto; 
}



.sobreq-title{
  color: #F7BC1D;
  margin: 0 0 10px 0;
   position: relative;
  display: inline-block;
  font-size: clamp(34px, 4vw, 2.5rem);
  font-weight: 800;
}

.title-scramble-q{
    display: inline-block;
    font-size: clamp(34px, 4vw, 2.5rem);
}

.sobreq-underline{
  position: absolute;
  left: -4%;
  bottom: -8px;
  width: 108%;
  height: auto;
  color: #ffffff; /* mismo amarillo del título */
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(1deg);
  overflow: visible;
}


.sobreq-underline-path{
  stroke-dasharray: 999;
  stroke-dashoffset: 999;
  opacity: 0;
}


.sobreq-copy{
  margin: 0;
  font-size: clamp(16px, 1.3vw, 17px);
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
}

.sobreq-hint{
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 6;
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
}




@media (max-width: 600px){
  .sobreq-inner{ grid-template-columns: 1fr; }

  .sobreq-text{ order: 1; margin-left: 0; }
  .sobreq-board {order: 2}
  .sobreq-visual{ margin: 24px auto 0; width: min(620px, 90vw); }

  .sobreq-hint{ display: none; } /* quitar hint en mobile */

   .sobreq-sticker{ width: clamp(90px, 18vw, 140px);
   opacity: 0.9; }
  /* si molesta alguno: */
  /* .sobreq-sticker.s2{ display:none; } */

}




/*-cierra sobre Q---------------------------------------------------------------------------------*/

/* ===== PORTFOLIO BASE ===== */

.port{
  position: relative;
  min-height: 100vh;
  background: #F3F6DC;      /* plano */
  overflow: hidden;         /* importante */
}

.port::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/fondo/asfalto.png") repeat;
  opacity: 0.55;            /* regula textura */
  pointer-events:none;
  z-index:0;
}



.port-inner{
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: clamp(46px, 7vw, 110px) 0;
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  justify-items: center;
  text-align: center;
  z-index: 2; 
  
}


/* título */
.port-title{
  color: #179B60;
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 1.05;
  font-size: clamp(34px, 4vw, 2.5rem);
  font-weight: 800;
}

.title-scramble-port{
  font-size: clamp(34px, 5vw, 3.5rem);
}

.port-title-mark{
  position: absolute;
  top: -12px;
  width: clamp(22px, 2.2vw, 34px);
  height: auto;
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(-8deg);
}

.port-title-mark.ml{
  left: -34px;
}

.port-title-mark.mr{
  right: -34px;
  top: 30px;
}

.port-text{
  margin-bottom: clamp(10px, 1vw, 24px);
}


.port-underline{
  position: absolute;
  left: 4%;
  bottom: -10px;
  width: 92%;
  height: auto;
  pointer-events: none;
  opacity: 0.95;
}

.port-underline-path{
  stroke-dasharray: 999;
  stroke-dashoffset: 999;
  opacity: 0;
}

/* copy */
.port-copy{
  margin: 10px 0 0 0;
  font-size: clamp(16px, 1.2vw, 25px);
  opacity: 0.9;
  color: #171C2F;
}

/* ===== DECK / FLICKITY ===== */
.port-deck{
  width: 900px;
  margin: 0 auto;
  overflow: visible; 
 /* display: grid;
  place-items: center;*/
}

/* el carrusel: padding lateral para que se vean las cartas de atrás */
.port-carousel{
  width: 100%;
  padding: 0px;
  overflow: visible; /* ajusta el “peek” */
  
}

/* Flickity: permite que se vea el overflow de las celdas */
.port-carousel .flickity-viewport{
  overflow: visible;
}

/* cada celda (card) */
.port-card{
  width: clamp(180px, 30vw, 300px);
  aspect-ratio: 2 / 3;
  margin: 0 8px;              /* 👈 menos separación */
  border-radius: 22px;
  overflow: visible;          /* 👈 importante */
  position: relative;


}




/* la imagen */


.port-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;

  transform-origin: 50% 80%;
  transition:
    transform 520ms cubic-bezier(.22,.61,.36,1),
    opacity 360ms ease;
      border: 3px solid #171C2F;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}



.port-card-sticker{
  position: absolute;
  width: clamp(42px, 4.2vw, 64px);
  height: auto;
z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: rotate(10deg) scale(0.85);
  transform-origin: 70% 30%;
}

.port-card-sticker1{
top: 12px;
  right: 0px;
}

.port-card-sticker2{
top: 150px;
  left: 0px;
}

.port-card-sticker3{
top: 50px;
  right: 0px;
}

.port-card-sticker4{
top: 12px;
  right: 0px;
}

.port-card-sticker5{
top: 82px;
  left: 0px;
}

/* SOLO en la tarjeta central activa (Flickity aplica .is-selected) */
.port-card.is-selected .port-card-sticker{
  opacity: 1;
  transform: rotate(20deg) scale(1);
}


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

/* tag rosa */
.port-tag{
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #F5A6D6; /* rosa */
  color: #171C2F;
 /* border: 2px solid #171C2F;*/
}

/* CTA */
.port-cta{
  margin-top: 6px;
}

.port-cta-btn{
  display: inline-block;
  padding: 5px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 700;
  color: #171C2F;
  font-size: 1.25rem;
}

.port-cta-btn:hover{
  color: #276FB4;
}

/* stickers laterales */
.port-sticker{
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  width: clamp(90px, 12vw, 170px);
  height: auto;
}
.port-sticker.sl{ left: 2%; top: 46%; transform: translateY(-50%); }
.port-sticker.sr{ right: 2%; top: 52%; transform: translateY(-50%); }

@media (max-width: 700px){
  .port-carousel{ padding: 10px 22px; }
  .port-sticker{ display:none; } /* si molestan en mobile */
}



/* central */
.port-card.is-selected{
  z-index: 5;
  opacity: 1;
}
.port-card.is-selected .port-card-inner{
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* primer nivel */
.port-card.is-prev .port-card-inner{
  transform: translateX(-16px) scale(0.92) rotate(-6deg);
  opacity: 0.55;
}
.port-card.is-next .port-card-inner{
  transform: translateX(16px) scale(0.92) rotate(6deg);
  opacity: 0.55;
}

/* segundo nivel (bien ocultas, deck real) */
.port-card.is-prev2 .port-card-inner{
  transform: translateX(-28px) scale(0.82) rotate(-12deg);
  opacity: 0.28;
}
.port-card.is-next2 .port-card-inner{
  transform: translateX(28px) scale(0.82) rotate(12deg);
  opacity: 0.28;
}


/*Fin de portfolio-----inicio de Team*/

/* ===== TEAM BASE ===== */
.team{
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  background-color: #2a1f1a; /* ajustá a tu color base */
}

/* textura seamless */
.team::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/fondo/wall.png") repeat;
  opacity: 0.45;
  pointer-events:none;
  z-index:0;
}

.team-inner{
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(18px, 3vw, 36px);
}

.team-head{
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 56px);
}



.team-title{
    color: #EB4426;
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 1.05;
  font-size: clamp(34px, 4vw, 60px);

}


.title-scramble-team{

  font-size: clamp(34px, 5vw, 60px);
}


/* doodles */
.team-doodle{ 
   position: absolute; /* clave */
 
  transform: translateY(-50%);
  width: 46px;
  height: auto;
  opacity: .9;
  pointer-events: none;
}

.team-doodle--l{
  left: 140px;     /* probá px para mover fácil */
  top: 90px;        /* o subí/bajá */
}

.team-doodle--r{
  right: 140px;
  top: -30px;
}


/* ===== COLUMN ===== */
.team-col{
  margin-top: 7rem;
  margin-bottom: 5rem;
  display: grid;

  /* Cada columna mide lo que mide la card */
  grid-template-columns: repeat(4, max-content);

  /* Separación REAL sin achicar */
  column-gap: clamp(28px, 5vw, 84px);
  row-gap: clamp(18px, 5vw, 80px);

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

@media (min-width: 1000px){
  .team-col{ margin-top: 8rem; }

}


/* responsive: baja a 2 y luego 1 */
@media (max-width: 700px){
  .team-col{ grid-template-columns: repeat(2, minmax(160px, 1fr)); margin-top: 4rem;}
  .team-card{ margin-top: 0 !important; margin-left: 0 !important
}
@media (max-width: 520px){
  .team-col{ grid-template-columns: 1fr; }
}
}

/* ===== CARD ===== */
.team-card{
    width: clamp(170px, 18vw, 260px);
  max-width: 260px;
  position: relative;
 
}


@media (max-width: 900px){
  .team-col{ grid-template-columns: repeat(2, max-content); }
  .team-card{ width: 220px; }
}
@media (max-width: 520px){
  .team-col{ grid-template-columns: 1fr;  margin-top: 1rem;}
  .team-card{ width: min(320px, 86vw); }
}


.team-card.c1{ margin-top: 24px; }
.team-card.c2{ margin-top: 0px; }
.team-card.c3{ margin-top: 44px; }
.team-card.c4{ margin-top: 10px; }


.team-polaroid{
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  will-change: transform;
}



/* ===== STICKERS ===== */
.team-sticker{
  position: absolute;
  
  height: auto;
  pointer-events: auto;
  user-select: none;
  transform-origin: center;
    width: clamp(42px, 4.2vw, 58px);

}


/* CAM */
.team-card.c1 .team-sticker.s1{
  top: 20%;
  left: 2%;
 width: 70px;
}

.team-card.c1 .team-sticker.s2{
  top: 88%;
  left: 92%;

}



/* TIFA */
.team-card.c2 .team-sticker.s1{ top: 10%; left: 16%;
  width: 100px;  }  /* pato */

/* JULI */
.team-card.c3 .team-sticker.s1{ top: 98%; left: 85%;
 width: 130px;
}  /* estrella */

/* CAMI */
.team-card.c4 .team-sticker.s1{ top: 10%; left: 10%;
 width: 80px; }  /* gato */

@keyframes stickerWiggle{
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  35% {
    transform: translate(-50%, -50%) rotate(-4deg) scale(1.05);
  }
  65% {
    transform: translate(-50%, -50%) rotate(3deg) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
  }
}

.team-sticker:hover{
  animation: stickerWiggle 400ms cubic-bezier(.22,.61,.36,1) both;
}

/**Fin TEAM*/



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

.contact{
  position: relative;
  min-height: 100vh;
  background: #171C2F; /* color plano base */
  overflow: hidden;
}

/* textura encima */
.contact::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/fondo/mooning.png") repeat;
  opacity: 0.35;            /* ajustable */
  pointer-events:none;
  z-index:0;
}

.contact-inner{
  position: relative;
  z-index: 2;
  max-width: 1150px;
  min-height: 90vh;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) 24px;


}

/* ===== Header ===== */

.contact-head{
  text-align: left;
  color: #276FB4;
  padding-left: 30px;
}

.contact-title{
  margin: 0;
  font-size: clamp(42px, 4vw, 70px);
  line-height: 1;
  position: relative;
  display: inline-block;
  
}



.contact-doodle{
  position: absolute;
  right: -88px;
  top: 40%;
  transform: translateY(-50%) rotate(-6deg);
  width: 78px;
  opacity: 0.95;
  pointer-events: none;
  color: #F3F6DC;
}

.contact-sub{
  margin-top: 0px;
  margin-left: 10px;
  color: #276FB4;

}

.contact-kicker{
  display: inline-block;
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 600;

}

.bi-instagram {
  font-size: 2rem;
}

.bi-envelope{
  font-size: 2rem;
}


/* ===== Cuerpo ===== */

.contact-body{
  display: grid;
  gap: 8px;
}

.contact-list{
  list-style: none;
  padding-top: 30px;
  margin: 0;

  gap: 1px;
}

.contact-link{
  position: relative;
  display: inline-flex;
  align-items: start;
  gap: 14px;
  padding-top: 10px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #F3F6DC;
  text-decoration: none;
}

.contact-link:hover{
  color: #276FB4;
}

.contact-ico{
  font-size: 22px;
}

/* ===== Firma ===== */

/* ===== Firma / Logo ===== */

.contact-sign{
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 3;
  pointer-events: none; /* no interfiere */
}

.contact-logo{
  width: clamp(70px, 10vw, 140px);
  height: auto;
  opacity: 1;
  transform: translateY(6px);
  transition:
    opacity 600ms cubic-bezier(.22,.61,.36,1),
    transform 600ms cubic-bezier(.22,.61,.36,1);

  pointer-events: auto;
  cursor: default;
}


/*.contact-brand{
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.25;
  color: #2E5FA7; /
}*/


.contact .contact-logo{
  opacity: 0;
  transform: translateY(10px);
}

.contact.is-ready .contact-logo{
  opacity: 0.35;
  transform: translateY(0);
}


.contact-logo:hover{
  opacity: 0.55;
  transform: translateY(0) scale(1.03);
}



/* ===== Stickers ===== */

.contact-stickers{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.c-sticker{
  position: absolute;
  width: clamp(60px, 10vw, 140px);
  opacity: 1;
}

/* posiciones iniciales (después las animamos) */
.c-star{ top: 18%; right: 12%;  width: 180px}
.c-bolt{ top: 42%; right: 30%; width: 120px }
.c-cat{ bottom: 11%; right: 45%; width: 150px}
.c-duck{ bottom: 0%; left: 5%; width: 180px;}

@media (max-width: 700px){
  .contact-head{ text-align: center; }
  .contact-body{ text-align: center; }
  .contact-link{ justify-content: center; }
}

/* =========================================================
   CONTACTO — Animaciones (entrada + hover reactivo)
   Reemplaza el bloque anterior completo
   ========================================================= */

.contact-inner,
.contact-stickers .c-sticker,
.contact-link,
.contact-brand{
  will-change: transform, opacity;
}

/* --------- Estado inicial (antes de entrar) --------- */
.contact .contact-head,
.contact .contact-body{
  opacity: 0;
  transform: translateY(10px);
}

.contact .contact-brand{
  opacity: 0;
  transform: translateY(8px);
}

/* Stickers: invisibles al inicio */
.contact .c-sticker{
  opacity: 0;
  transform: translateY(10px) scale(0.98) rotate(0deg);
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.18));
}

/* Texto “hablemos / no mordemos” */
.contact-kicker{
  display: inline-block;
  font-weight: 700;
  margin-right: 10px;
}
.contact-kicker-sub{
  display: inline-block;
  font-weight: 600;
  opacity: 0.72;
}

/* --------- Activación (cuando entra en viewport) --------- */
.contact.is-ready .contact-head,
.contact.is-ready .contact-body{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms cubic-bezier(.22,.61,.36,1),
              transform 520ms cubic-bezier(.22,.61,.36,1);
}

.contact.is-ready .contact-brand{
  opacity: 0.25; /* tu firma suave */
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1),
              transform 700ms cubic-bezier(.22,.61,.36,1);
  transition-delay: 160ms;
}

/* Entrada base SOLO para pato + gato (los “presentamos”) */
.contact.is-ready .c-duck,
.contact.is-ready .c-cat{
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-2deg);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1),
              transform 900ms cubic-bezier(.22,.61,.36,1);
  transition-delay: 220ms;
}

/* estrella + rayo NO aparecen al entrar (solo en hover) */
.contact .c-star,
.contact .c-bolt{
  opacity: 0;
}

/* --------- Hover: “pasan cosas” (Opción B) --------- */
/* Off-screen suave por defecto (para que entren) */
.contact .c-star{
  transform: translateX(22px) translateY(10px) scale(0.92) rotate(12deg);
  transform-origin: 70% 30%;
}

.contact .c-bolt{
  transform: translateX(-22px) translateY(10px) scale(0.92) rotate(-12deg);
  transform-origin: 30% 30%;
}

/* Respiración mientras hover */
@keyframes contactBreath {
  0%   { transform: translateX(0) translateY(0) scale(1) rotate(var(--rot, 0deg)); }
  50%  { transform: translateX(0) translateY(-2px) scale(1.03) rotate(var(--rot, 0deg)); }
  100% { transform: translateX(0) translateY(0) scale(1) rotate(var(--rot, 0deg)); }
}

/* Hover mail -> estrella entra + respira */
.contact.is-hover-star .c-star{
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1) rotate(6deg);
  transition: opacity 200ms ease,
              transform 520ms cubic-bezier(.22,.61,.36,1);
  --rot: 6deg;
  animation: contactBreath 1.12s ease-in-out infinite;
}

/* Hover ig -> rayo entra + respira */
.contact.is-hover-bolt .c-bolt{
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1) rotate(-6deg);
  transition: opacity 200ms ease,
              transform 520ms cubic-bezier(.22,.61,.36,1);
  --rot: -6deg;
  animation: contactBreath 1.0s ease-in-out infinite;
}

/* Links: hover sutil */
.contact-link{
  transition: transform 260ms cubic-bezier(.22,.61,.36,1),
              opacity 260ms ease;
}
.contact-link:hover{
  transform: translateY(-1px);
}

/* Mobile: apagamos respiración infinita por rendimiento */
@media (max-width: 700px){
  .contact.is-hover-star .c-star,
  .contact.is-hover-bolt .c-bolt{
    animation: none;
  }
}


/* --------- Entrada dinámica pato + gato --------- */
.contact.is-ready .c-duck{
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-2deg);
  transition:
    opacity 600ms ease,
    transform 900ms cubic-bezier(.18,.89,.32,1.28); /* overshoot */
  transition-delay: 220ms;
}

.contact.is-ready .c-cat{
  opacity: 1;
  transform: translateY(0) scale(1) rotate(2deg);
  transition:
    opacity 600ms ease,
    transform 950ms cubic-bezier(.18,.89,.32,1.28);
  transition-delay: 320ms;
}

/* Estado inicial más marcado (antes de entrar) */
.contact .c-duck{
  opacity: 0;
  transform: translateY(-26px) scale(0.92) rotate(-12deg);
}

.contact .c-cat{
  opacity: 0;
  transform: translateY(-30px) scale(0.92) rotate(10deg);
}


@keyframes petWiggle {
  0%   { transform: scale(1) rotate(var(--base-rot)); }
  20%  { transform: scale(1.04) rotate(calc(var(--base-rot) + 3deg)); }
  40%  { transform: scale(1.02) rotate(calc(var(--base-rot) - 3deg)); }
  60%  { transform: scale(1.03) rotate(calc(var(--base-rot) + 2deg)); }
  100% { transform: scale(1) rotate(var(--base-rot)); }
}


/* Definimos rotación base */
.c-duck{ --base-rot: -2deg; }
.c-cat{  --base-rot:  2deg; }

/* Hover directo */
.c-duck:hover,
.c-cat:hover{
  animation: petWiggle 420ms ease-out;
}


/* Cursor feedback */
.c-duck,
.c-cat{
  pointer-events: auto; /* para que puedan recibir hover */
  cursor: pointer;
}

/* ===== Firma / logo abajo derecha ===== */
.contact-sign{
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.contact-sign-img{
  display: block;
  width: clamp(220px, 22vw, 420px); /* más grande */
  height: auto;
  opacity: 1;               /* sin transparencia */
  filter: none;
}

.contact.is-in .contact-sign{
  animation: inFadeUp 620ms cubic-bezier(.22,.61,.36,1) 170ms both;
}


/* Respuesta secundaria cuando hay interacción */
.contact.is-hover-star .c-duck{
  transform: scale(1.03) rotate(-1deg);
  transition: transform 260ms ease;
}

.contact.is-hover-bolt .c-cat{
  transform: scale(1.03) rotate(3deg);
  transition: transform 260ms ease;
}





/* flecha top*/

#toTop {
  position: fixed;
  bottom: 28px;
  right: 28px;

  width: 44px;
  height: 44px;

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

  background: transparent;
  border: none;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#toTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#toTop img {
  width: 55px;
  height: 55px;

  transition: transform 0.25s ease;
}

#toTop:hover img {
  transform: translateY(-4px);
}

#toTop:active img {
  transform: scale(0.9);
}

a {
  text-decoration: none;
}