/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lilex', Courier, monospace;
  background: #e8ebe2;
  color: #111;
  cursor: default;
}

/* CONTAINER PRINCIPAL */
.container {
  padding: 55px 20px;
  position: relative;
  width: 100vw;
  min-height: 100vh;
}

/* COLOR BAR */
.color-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  z-index: 100;
}

.color-bar div {
  width: 20px;
  height: 20px;
}

.bar-red    { background: #22b195; }
.bar-green  { background: #2bb78f; }
.bar-yellow { background: #FB6759; }
.bar-orange { background: #ebf346; }
.bar-blue   { background: #6BCBD2; }
.bar-indigo { background: #6BCBD2; }

/* ELEMENTOS ARRASTRABLES */
.draggable {
  position: absolute;
  cursor: move;
  user-select: none;
  background: transparent;
  transition: opacity 0.2s ease;
  max-width: 80%;
}

.draggable:hover {
  opacity: 0.8;
}

.draggable.dragging {
  cursor: grabbing;
  opacity: 0.6;
  z-index: 1000;
}

/* TEXTO NARRATIVO */
.text-block {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #333;
  text-align: left;
  line-height: 1.8rem;
  padding: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tlt2 {
     transform: rotate(-3deg);
}


.tlt {
     transform: rotate(2deg);
}

.t2 {
font-size: clamp(1.8rem, 2vw, 1.8rem);
line-height: 1.8rem;
}

.t3 {
font-size: clamp(2rem, 2.2vw, 2.2rem);
line-height: 2rem;
}

.col1 {
  width: 25vw;
}

.col2 {
  width: 30vw;
}

.col3 {
  width: 55vw;
}


.col4 {
  width: 70vw;
}


.text-block p {
  margin-bottom: 1.1em;
}

.text-block a {
  color: #2bb78f;
  text-decoration: underline;
}

.text-block a:hover {
  color: #FB6759;
}

.text-block b {
  font-weight: bold;
}

.text-block em {
  font-style: italic;
}

/* TITULARES */
h1 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(8rem, 14vw, 12rem);
  font-weight: bold;
  color: #333;
  text-align: left;
  line-height: 0.9;
  padding: 20px;
  margin-bottom: -30px;
   opacity: 97%; 
}

h2 {
    font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: bold;
  color: #333;
  text-align: left;
  padding: 2vh 2.2vw;
  margin-top: 0;
  margin-bottom: 10px;
  opacity: 97%;
}

h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(3rem, 3.2vw, 3.2rem);
  line-height: 2rem;
  font-weight: normal;
  color: #333;
  text-align: left;
  padding: 2vh 2.2vw;
  margin-top: 0;
  margin-bottom: 10px;
  opacity: 97%;
}

/* TERMINAL INPUT */
.terminal-wrapper {
  width: 100%;
  display: inline-block;
  padding: 20px;
}

.terminal-input {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  padding: 10px;
  border: none;
  border-bottom: 2px solid #FB6759;
  background-color: transparent;
  color: #FB6759;
  width: clamp(20rem, 62vw, 70rem);
  outline: none;
  caret-color: #2bb78f;
  transition: all 0.3s ease;
}

.terminal-input::placeholder {
  color: #FB6759;
  opacity: 0.5;
  font-style: italic;
}

.terminal-input:focus {
  border-bottom-color: #2bb78f;
}

/* RESPUESTA */
#response {
  display: none;
  margin-top: 30px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  color: #00FF99;
  background-color: transparent;
  border: 1px solid #00FF99;
  max-width: 70%;
  white-space: pre-wrap;
  line-height: 1.6;
  transition: all 0.3s ease;
}

#response.visible {
  display: block;
}

/* ASCII ART - NO TOCAR */
#tiresult, #tiresult2 {
  font-family: monospace;
  font-size: clamp(0.24rem, 0.45vw, 0.35rem);
  z-index: -1;
  position: absolute;
  right: 20px;
  top: 28%;
  background: transparent;
  color: #376164;
  opacity: 0.8;
  line-height: 1.15;
}

#tiresult2 {top:40% !important}

.ascii-art, .grounded-trio {
  font-family: monospace;
  font-size: 12px;
  white-space: pre;
  color: #FB6759;
  text-align: center;
  animation: bob 2.5s ease-in-out infinite;
  line-height: 1.2;
}

.grounded-trio {
  margin-top: 15px;
}

/* MENU VERTICAL */
.vertical-menu {
  position: fixed;
  top: 70px;
  right: 25px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(360deg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #1a8a74;
  z-index: 100;
}

.vertical-menu a {
  color: #1a8a74;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

.vertical-menu a:hover {
  text-decoration: underline;
}

/* LANG SWITCH */
.lang-switch {
  position: absolute;
  top: 48px;
  right: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #376164;
  z-index: 100;
}

.lang-link {
  color: #FB6759;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s ease;
}

.lang-link:hover {
  color: #2bb78f;
}

.lang-link.active {
  text-decoration: underline;
  font-weight: bold;
  color: #2bb78f;
}

/* FORMULARIO */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin-top: 3em;
  max-width: clamp(20rem, 62vw, 70rem);
  font-family: 'Courier New', Courier, monospace;
  color: #333;
}

.contact-form label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #333;
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #2bb78f;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #333;
  opacity: 0.5;
  font-style: italic;
}

/* FILAS Y COLUMNAS DEL FORMULARIO */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* BOTÓN */
.contact-form button {
  align-self: flex-start;
  padding: 0.75em 1.5em;
  background-color: #2bb78f;
  color: white;
  font-size: 1em;
  border: none;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #6BCBD2;
}

/* DOTS */
.dots {
  font-size: 16px;
  color: #2bb78f;
  animation: blink 1s step-end infinite;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 20px;
}

/* FLEX BLOCK */
.flex-block {
  padding: 20px;
}

/* RESPONSIVE */
@media screen and (max-width: 600px) {
  .container {
    padding: 20px;
  }

.col1 {
  width: 25vw;
}

.col2 {
  width: 42vw;
}


h2 {
  padding: 2vh 5vw;
}

  .text-block {
    padding-top: 20px;
    font-size: clamp(0.4rem, 2.8vw, 0.8rem);
    line-height: 1.2rem;
  }

.t2 {
font-size: clamp(1.3rem, 1.6vw, 1.4rem);
line-height: 1.2rem;
}

.t3 {
font-size: clamp(1.5rem, 1.8vw, 1.7rem);
line-height: 1.6rem;
}

  h1 {
    font-size: clamp(4.6rem, 9vw, 4rem);
  }

  .row {
    flex-direction: column;
  }

  .contact-form button {
    width: 100%;
  }

  #tiresult {
    top: 28%;
  }

  #tiresult2 {
    top: 35% !important;
  }
  
  .draggable {
    max-width: 95%;
  }
}

/* ASCII ART */

#tiresult, #tiresult2 {
  font-family: monospace;
  font-size: clamp(0.24rem, 0.45vw, 0.35rem);
  z-index: -1;
  position: absolute;
  right: 20px;
  top: 28%;
  background: transparent;
  color: #111;
  opacity: 0.8;
  line-height: 1.15;
}

  #tiresult2 {top:40% !important}


.ascii-art, .grounded-trio {
  font-family: monospace;
  font-size: 12px;
  white-space: pre;
  color: #111;
  text-align: center;
  animation: bob 2.5s ease-in-out infinite;
  line-height: 1.2;
}

.grounded-trio {
  margin-top: 0;
}

  #tiresult {
  top: 28%;
}

  #tiresult2 {top:48% !important}
}

/* ANIMACIONES */
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* ANIMACIONES */
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* POSICIONAMIENTO INICIAL DE ELEMENTOS */
.pos-title {
  left: 3vw;
  top: 5px;
}

.pos-wtf {
  left: 42vw;
  top: 220px;
}

.pos-manifiesto {
  left: 35vw;
  top: 290px;
}

.pos-consultoria {
  left: 35vw;
  top: 680px;
}

.pos-dots {
  left: 10vw;
  top: 50vh;
}

  .pos-conversar {
  left: 10vw;
  top: 160vh;
}
.pos-formulario {
  left: 10%;
  top: 330vh;
}

/* RESPONSIVE POSITIONING */
@media screen and (max-width: 1100px) {
  .pos-title {
    left: 5%;
    top: 10px;
  }
  
  .pos-wtf {
    left: 36vw;
    top: 29.5vh;
    font-size: x-small;
  }
  
  .pos-manifiesto {
    left: 34vw;
    top: 37vh;
  }
  
  .pos-consultoria {
    left: 36vw;
    top: 100vh;
  }

  .pos-conversar {
  left: 10vw;
  top: 160vh;
}
.pos-formulario {
  left: 10%;
  top: 340vh;
}
}

@media screen and (max-width: 768px) {
  .pos-title {
    left: 5%;
    top: 10px;
  }
  
  .pos-wtf {
    left: 36vw;
    top: 29.5vh;
    font-size: x-small;
  }
  
  .pos-manifiesto {
    left: 34vw;
    top: 37vh;
    font-size: smaller;
  }
  
  .pos-consultoria {
    left: 36vw;
    top: 115vh;
    font-size: smaller;
  }

  .pos-conversar {
  left: 10vw;
  top: 170vh;
  font-size: smaller;
}
.pos-formulario {
  left: 10%;
  top: 340vh;
}
}

@media screen and (max-width: 600px) {
  .pos-title {
    left: 0;
    top: 5px;
  }
  
  .pos-wtf {
    left: 5vw;
    top: 150px;
    font-size: x-small;
  }
  
  .pos-manifiesto {
    left: 5vw;
    top: 37vh;
  }
  
  .pos-consultoria {
    left: 47vw;
    top: 75vh;
  }
  
  .pos-dots {
    left: 3%;
    top: 60vh;
  }
  
  .pos-conversar {
    left: 6vw;
    top: 130vh;
  }
  
  .pos-formulario {
    left: 5vw;
    top: 350vh;
  }

  .col3 {
  width: 70vw;
}

}

/* P5.JS ANIMATION CONTAINER */
.p5-animation {
  background: transparent;
  padding: 5px;
  position: absolute;
  cursor: move;
  user-select: none;
  transition: opacity 0.2s ease;
  border: 1px solid #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.p5-animation iframe {
  display: block;
  border: none;
  width: min(35vh, 35vw);
  height: min(35vh, 35vw);
}

.p5-animation .piece-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  color: #111;
  text-align: center;
  margin: 0;
  padding: 0;
}

.p5-animation:hover {
  opacity: 0.8;
}

.p5-animation.dragging {
  cursor: grabbing;
  opacity: 0.6;
  z-index: 1000;
}

.pos-p5-animation {
  left: 5vw;
  top: 110vh;
}

/* RESPONSIVE - P5 ANIMATION */
@media screen and (max-width: 1100px) {
  .pos-p5-animation {
    left: 5vw;
    top: 110vh;
  }
}

@media screen and (max-width: 768px) {
  .pos-p5-animation {
    left: 5vw;
    top: 250vh;
  }
  
  .p5-animation .piece-title {
    font-size: 0.65rem;
  }
}

@media screen and (max-width: 600px) {
  .pos-p5-animation {
    left: 6vw;
    top: 210vh;
  }
  
  .p5-animation .piece-title {
    font-size: 0.6rem;
  }
}
