/* ======================= RESET Y BASE ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e1e;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1300px;
  }
}

/* ======================= NAVBAR ======================= */
.navbar {
  background-color: #2d2d2d;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 52px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #00b894;
  text-decoration: none;
  font-weight: bold;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  position: relative;
  padding-left: 20px;
}

.nav-links a::before {
  content: '>> ';
  color: #00b894;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
}

.nav-links a:hover {
  color: #f0f0f0;
}

/* ======== Botón hamburguesa ======== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1101;
  position: relative;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  display: block;
  width: 28px;
  height: 3.4px;
  background: #00b894;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(.7, 0, .3, 1);
  position: relative;
}

.menu-toggle .hamburger {
  position: relative;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle .hamburger::before {
  top: -9px;
}

.menu-toggle .hamburger::after {
  top: 9px;
}

/* Animación de X */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  transform: translateY(-9px) rotate(-45deg);
}

/* ======== Responsive menu ======== */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    width: 100vw;
    background: #212121;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0 16px 0;
    gap: 0;
    box-shadow: 0 4px 24px #00000042;
    z-index: 1100;
    transition: opacity 0.35s cubic-bezier(.7, 0, .3, 1), visibility 0.3s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    padding: 0;
  }

  .nav-links a {
    display: block;
    padding: 15px 32px;
    width: 100%;
    font-size: 1.14em;
    color: #00b894;
    border-bottom: 1px solid #232323;
    text-align: left;
    transition: background 0.2s, color 0.2s;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: #1e1e1e;
    color: #fff;
  }
}

/* ======================= HEADER ======================= */
header {
  background: transparent;
  text-align: left;
  padding: 200px 20px 140px;
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: 0;
  z-index: 0;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  text-align: left;
}

header h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3em;
  margin-bottom: 20px;
  color: #00b894;
  text-shadow: 0 0 10px rgba(0, 184, 148, 0.5);
  min-height: 1.2em;
  line-height: 1.2;
  white-space: normal;
  text-align: left;
}

header p {
  font-size: 1.1em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  min-height: 2.2em;
  text-align: left;
}

.code-text-highlight {
  font-family: 'JetBrains Mono', monospace;
  color: #00b894;
  font-weight: bold;
  background-color: rgba(0, 184, 148, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

header .button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #00b894;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, opacity 0.5s ease, visibility 0.5s ease, transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  text-align: left;
}

header .button:hover {
  background: #019875;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* ======================= VIDEO DE FONDO ======================= */
#video-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

/* ======================= TITULOS h2 ======================= */
h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  text-align: left;
}

h2::after {
  content: '|';
  display: inline-block;
  margin-left: 0.22em;
  color: #00b894;
  font-weight: bold;
  font-size: 1.06em;
  vertical-align: baseline;
  animation: pulso-cursor-h2 1.15s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes pulso-cursor-h2 {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

h2:not(.no-barra)::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #00b894;
  margin-top: 10px;
  position: absolute;
  left: 0;
  bottom: -18px;
}

/* ======================= EFECTO TYPING ======================= */
.cursor-permanente {
  display: inline-block;
  color: #00b894 !important;
  font-weight: bold;
  font-size: 1em;
  margin-left: 2px;
  animation: pulso-cursor-h2 1.15s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.typing-effect {
  overflow: hidden;
  border-right: 0.15em solid #00b894;
}

.typing-effect.cursor {
  animation: pulso-cursor-h2 1.15s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

/* ======================= LISTA PROCESO ======================= */
.lista-verde p {
  color: #f0f0f0;
  font-size: 1.05em;
  margin-bottom: 12px;
  padding-left: 8px;
  line-height: 1.6;
  text-align: left;
}

.lista-verde p::first-letter {
  color: #00b894;
  font-weight: bold;
  font-family: 'JetBrains Mono', monospace;
}

/* ======================= FORMULARIO ======================= */
.formulario-contacto {
  padding: 40px;
  border-radius: 8px;
  background-color: #222;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #00b89433;
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.1);
  margin-left: 0;
  margin-right: 0;
  display: block;
  max-width: 400px;
  text-align: left;
}

.formulario-contacto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 184, 148, 0.2);
}

.formulario-contacto label,
footer a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  color: #00b894;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background-color: #2d2d2d;
  color: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  display: block;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.formulario-contacto textarea {
  resize: vertical;
  min-height: 80px;
}

.formulario-contacto button {
  background: #00b894;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  display: block;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  text-align: left;
}

.formulario-contacto button:hover {
  background: #019875;
  transform: translateY(-2px);
}

/* ======================= CARRUSEL DE SERVICIOS (DESKTOP) ======================= */
.servicios-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  width: 100%;
  background: none;
  padding: 40px 0;
  border-radius: 8px;
}

.grid-servicios {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  scroll-behavior: smooth;
  padding: 20px 0;
  width: 100%;
}

.grid-servicios::-webkit-scrollbar {
  height: 8px;
}

.grid-servicios::-webkit-scrollbar-thumb {
  background: #00b894;
  border-radius: 10px;
}

.grid-servicios::-webkit-scrollbar-track {
  background: #222;
}

/* Tarjeta de servicio */
.servicio {
  flex: 0 0 320px;
  max-width: 96vw;
  min-width: 300px;
  scroll-snap-align: center;
  margin: 0;
  background: #1e1e1e;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  text-align: left;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
}

.servicio:hover {
  transform: scale(1.04) translateY(-3px) rotateZ(-0.5deg);
  box-shadow: 0 10px 32px rgba(0, 184, 148, 0.15), 0 1.5px 14px rgba(0, 184, 148, 0.10);
  z-index: 2;
  background: linear-gradient(105deg, #1e2525 70%, #133232 100%);
}

.servicio .icono {
  background-color: #00b894;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px 0;
  overflow: hidden;
}

.servicio .icono img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.servicio h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5em;
  color: #00b894;
  margin-bottom: 10px;
  text-align: left;
}

.servicio p {
  font-size: 0.95em;
  color: #ccc;
  line-height: 1.5;
  text-align: left;
}

.servicio .btn-servicio {
  display: inline-block;
  margin-top: 18px;
  background: #00b894;
  color: #fcfbfb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 9px 22px;
  box-shadow: 0 2px 9px #00b89428;
  transition: background 0.18s, color 0.18s, transform 0.19s;
  text-align: center;
  text-decoration: none;
}

.servicio .btn-servicio:hover,
.servicio .btn-servicio:active {
  background: #019875;
  color: #fff;
  transform: scale(1.06);
}

.nav-arrow {
  display: inline-flex;
  background: #181818a0;
  border: 2px solid #00b894;
  color: #00b894;
  font-size: 2em;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  z-index: 3;
  box-shadow: 0 2px 8px #00b89422;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* ======================= FOOTER Y CAJAS PRINCIPALES ======================= */
footer,
.section-code-bg,
.quienes-box {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

footer {
  background-color: #2d2d2d;
  padding: 20px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: #ccc;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

footer a {
  text-decoration: none;
}

/* ======================= LÍNEAS ENTRE SECCIONES ======================= */
.seccion::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-top: 80px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.06);
  z-index: 999;
  pointer-events: none;
}

body::before {
  left: 40px;
}

body::after {
  right: 40px;
}

/* ======================= ANIMACIÓN SCROLL ======================= */
.seccion {
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: left;
}

.seccion.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================= ¿QUIÉNES SOMOS? ======================= */
.quienes-box {
  background-color: #1e1e1e;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

.quienes-box:hover {
  transform: none !important;
  box-shadow: none !important;
}

.section-code-bg {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 60px 20px;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.section-code-bg:hover {
  box-shadow: 0 8px 20px rgba(0, 184, 148, 0.2);
  transform: translateY(-5px);
  border-color: rgba(0, 184, 148, 0.2);
}

/* ======================= AJUSTES MOBILE ======================= */
@media (max-width: 900px) {
  .servicios-wrapper {
    /* Nueva configuración para móvil */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px; /* Asegura un espacio consistente entre los elementos */
    padding: 20px 0;
  }

  .grid-servicios {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
    gap: 20px;
    padding: 0;
    width: 100%;
    /* Desactivamos la barra de scroll */
    scrollbar-width: none;
  }

  .grid-servicios::-webkit-scrollbar {
    display: none;
  }

  .servicio {
    width: 100%;
    max-width: 100%;
    /* Quitamos el margen, ya que el gap en el padre lo maneja */
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    align-items: flex-start;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 184, 148, 0.13);
    background: linear-gradient(105deg, #202626 70%, #162a2a 100%);
    /* Eliminamos la transformación de hover en mobile */
    transform: none;
    transition: none;
  }

  .servicio:hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(0, 184, 148, 0.13);
  }

  .servicio:last-child {
    margin-bottom: 0;
  }

  .servicio .icono {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
  }

  .servicio h3 {
    font-size: 1.15em;
    margin-bottom: 7px;
    line-height: 1.2;
  }

  .servicio p {
    font-size: 0.97em;
    margin-bottom: 0;
    color: #e0e0e0;
  }

  .servicio .btn-servicio {
    display: inline-block;
    margin-top: 16px;
    background: #00b894;
    color: #181818;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 9px 22px;
    box-shadow: 0 1px 8px #00b89433;
    transition: background 0.22s, transform 0.22s;
    text-align: center;
    width: auto;
  }

  .servicio .btn-servicio:active {
    background: #019875;
    color: #fff;
    transform: scale(0.97);
  }

  .nav-arrow {
    display: none;
  }

  .container,
  .section-code-bg {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    width: 100%;
  }

  .formulario-contacto {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .servicio {
    padding: 13px 3vw;
    border-radius: 7px;
  }

  .servicio .icono {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .servicio .icono img {
    width: 24px;
    height: 24px;
  }
}

/* —————— Usa el mismo keyframe que ya tienes —————— */
@keyframes pulso-cursor-h2 {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

/* —————— Haz que el h1 sea inline y relativo —————— */
header h1 {
  display: inline-block;
  position: relative;
}

/* —————— El pseudo-elemento ::after es tu cursor —————— */
header h1::after {
  content: '|';
  display: inline-block;
  margin-left: 0.22em;
  /* igual que en h2 */
  color: #00b894;
  /* mismo verde */
  font-weight: bold;
  /* Ajusta este tamaño para que el cursor no desentone con tu h1 */
  font-size: 1em;
  vertical-align: baseline;
  animation: pulso-cursor-h2 1.15s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

/* —————— Cursor parpadeante para el h1 —————— */
@keyframes blink-caret {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.typing-target {
  display: inline-block;
  /* Para que el pseudo-elemento vaya pegado al texto */
  position: relative;
  /* Contexto para ::after */
}

.typing-target::after {
  content: '|';
  margin-left: 0.22em;
  /* Ajusta el espacio si lo necesitas */
  color: #00b894;
  /* Tu verde de marca */
  font-weight: bold;
  font-size: 1em;
  /* Que encaje con el tamaño de tu h1 */
  vertical-align: baseline;
  animation: blink-caret 1.15s step-end infinite;
}

/* Estado inicial: tarjetas ocultas y desplazadas hacia abajo */
.grid-servicios .servicio {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Cuando la clase in-view esté presente, vuelve al estado natural */
.grid-servicios .servicio.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) {
  .grid-servicios {
    overflow-x: hidden !important;
    scroll-snap-type: none !important;
  }
  .grid-servicios::-webkit-scrollbar {
    display: none !important;
  }
  .grid-servicios::-webkit-scrollbar-thumb {
    background: transparent !important;
  }
  .grid-servicios::-webkit-scrollbar-track {
    background: transparent !important;
  }
}

@media (max-width: 900px) {
  .servicio .icono {
    width: 80px;
    height: 80px;
    margin-bottom: 14px;
  }
  .servicio .icono img {
    width: 44px;
    height: 44px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #121212;
  color: #f0f0f0;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  z-index: 10000;
  box-shadow: 0 -2px 12px rgba(0, 184, 148, 0.18);
  border-top: 1px solid #00b89433;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  padding-right: 10px;
  flex: 1 1 auto;
}

.cookie-banner a {
  color: #00b894;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #00b894;
  color: #121212;
  font-weight: bold;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 10px;
}

@media (min-width: 600px) {
  .cookie-banner button {
    margin-top: 0;
  }
}

.privacy-note {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.privacy-note a {
  color: #00b894;
  text-decoration: underline;
}

.mensaje-gracias {
  font-size: 1.1em;
  color: #00b894;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.mensaje-gracias {
  background-color: rgba(0, 184, 148, 0.08);
  border: 1px solid #00b894;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 1.2em;
  color: #00b894;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 20px;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================== THANK YOU PAGE =================== */
/* Contenedor centrado (quitamos estilos inline) */
.thank-you__content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Tamaño del título */
.thank-you__title {
  font-size: 2.2em;
}

/* Efecto Typewriter para título y mensaje */
.thank-you__title,
.thank-you__message {
  overflow: hidden;
  /* oculta texto fuera del ancho */
  white-space: nowrap;
  /* no quiebra línea */
  border-right: .15em solid #00b894;
  /* cursor */
  display: inline-block;
  /* para animar width */
  /* animación: typing y luego blink-caret */
  animation: typing 2s steps(40, end) forwards,
  blink-caret .75s step-end infinite;
}

/* Retraso en el párrafo para que empiece tras el título */
.thank-you__message {
  animation-delay: 2.3s, 2.3s;
}

/* Keyframes de máquina de escribir */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* Botón primario (idéntico al de header .button) */
.button--primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 24px;
  background: #00b894;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.button--primary:hover {
  background: #019875;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* ———————— BOTÓN GLOBAL ———————— */
.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 24px;
  background: #00b894;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  transition: background 0.3s ease,
  transform 0.3s ease,
  box-shadow 0.3s ease;
}

.button:hover {
  background: #019875;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* ———————— EFECTO TYPEWRITER ———————— */
/* Selector único para título y párrafo */
.typing-target,
.typing-text {
  overflow: hidden;
  /* oculta el texto que está fuera */
  white-space: nowrap;
  /* no dejará saltos de línea */
  border-right: 0.15em solid #00b894;
  /* cursor */
  display: inline-block;
  /* animación de escritura + parpadeo del cursor */
  animation: typing 2s steps(40, end) forwards,
  blink-caret .75s step-end infinite;
}

/* Para el párrafo le damos un pequeño delay */
.typing-text {
  animation-delay: 2.3s, 2.3s;
}

/* Keyframes */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* ———————— THANK YOU PAGE ———————— */
.thank-you__content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.thank-you__title {
  font-size: 2.2em;
}

.thank-you__message {
  font-size: 1.2em;
  color: #00b894;
  background: rgba(0, 184, 148, 0.08);
  border: 1px solid #00b894;
  border-radius: 8px;
  padding: 20px;
  margin-top: 1rem;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ———————— EFECTO TYPEWRITER GENERAL ———————— */
.typing-target,
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid #00b894;
  display: inline-block;
  animation: typing 2s steps(40, end) forwards,
  blink-caret .75s step-end infinite;
}

.typing-text {
  animation-delay: 2.3s, 2.3s;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* ———————— BOTÓN GLOBAL ———————— */
.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 24px;
  background: #00b894;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  transition: background .3s, transform .3s, box-shadow .3s;
}

.button:hover {
  background: #019875;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* ————— Ajustes de título y typewriter en móvil ————— */
@media (max-width: 600px) {
  /* Contenedor del header empaquetado */
  header .container {
    padding: 0 16px;
    /* margen lateral */
  }

  /* Ajuste de tamaño del H1 genérico y en thank-you */
  header h1,
  .thank-you__title {
    line-height: 1.2;
    margin: 0 auto 0.5rem;
    /* centrado y espaciado */
    max-width: 100%;
    /* no sobrepase el ancho */
  }

  /* Anular efecto typewriter para que rompa líneas */
  .typing-target,
  .typing-text {
    white-space: normal !important;
    /* permite wrap */
    overflow: visible !important;
    /* muestra todo el texto */
    border-right: none !important;
    /* quita la raya de caret */
    animation: none !important;
    /* desactiva animación */
    display: block;
    /* bloque para full width */
  }

  .typing-target::after {
    content: none;
    /* oculta el cursor parpadeante */
  }
}

/* =================== THANK YOU PAGE REEMPLAZADO =================== */
/* Contenedor centrado y ancho fijo como en el resto */
.thank-you__content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

/* TITULAR idéntico al header principal + typewriter */
.thank-you__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3em;
  color: #00b894;
  text-shadow: 0 0 10px rgba(0, 184, 148, 0.5);
  margin-bottom: 1rem;
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #00b894;
  display: inline-block;
  animation: typingTitle 2s steps(40, end) forwards,
  blink-caret .75s step-end infinite;
}

/* MENSAJE secundario con caja fija y escritura simultánea */
.thank-you__message {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.2em;
  color: #f0f0f0;
  width: 600px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.5rem auto 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: transparent;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #00b894;
  display: inline-block;
  animation: typingMsg 2s steps(40, end) forwards,
  blink-caret .75s step-end infinite,
  showBox .5s ease 2s forwards;
}

/* BOTÓN recolocado un pelín */
.thank-you__btn {
  margin-top: 2.5rem;
}

/* ———— KEYFRAMES para ambas animaciones ———— */
/* 1) escritura del título (100% ancho natural) */
@keyframes typingTitle {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* 2) escritura del mensaje hasta 600px */
@keyframes typingMsg {
  from {
    width: 0;
  }
  to {
    width: 600px;
  }
}

/* 3) cursor parpadeante */
@keyframes blink-caret {
  0%, 100% {
    border-color: #00b894;
  }
  50% {
    border-color: transparent;
  }
}

/* 4) mostrarmos fondo y borde tras escritura */
@keyframes showBox {
  from {
    background-color: transparent;
    border-color: transparent;
  }
  to {
    background-color: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
  }
}

/* ————— Ajustes para móviles (≤600px) ————— */
@media (max-width: 600px) {
  .thank-you__title {
    font-size: 2em;
    border-right: none;
    white-space: normal;
    animation: typingTitle 1.5s steps(40, end) forwards;
  }

  .thank-you__message {
    width: 100%;
    max-width: 300px;
    border-right: none;
    white-space: normal;
    animation: typingMsg 1.5s steps(30, end) forwards,
    showBox .5s ease 1.5s forwards;
  }
}