/* fuentes y base */
body {
  font-family: "DM Sans", sans-serif;
  background-color: #f0fdf4;
  color: #1e293b;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* header y navegacion */
.floating-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* animaciones */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}
.animate-pulse {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* tarjetas tactiles */
.tactile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 2px 2px 0px rgba(30, 41, 59, 0.05);
}

.tactile-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px rgba(249, 115, 22, 0.1);
  border-color: #f97316;
}

/* tarjeta terminal hero */
#hero .tactile-card {
  background: #0f172a;
  border-color: #1e293b;
}

/* reset hover contacto */
#contacto .tactile-card:hover {
  transform: none;
  box-shadow: 2px 2px 0px rgba(30, 41, 59, 0.05);
  border-color: #e2e8f0;
}

/* botones brutalistas */
.btn-brutal {
  background-color: #f97316;
  color: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0px #1e293b;
  display: inline-block;
  text-align: center;
}

.btn-brutal:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #1e293b;
}

/* inputs formulario */
.neomorphic-input {
  background: #f0fdf4;
  border: 1px solid #e2e8f0;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.neomorphic-input:focus {
  border-color: #f97316;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  outline: none;
}

/* barra de desplazamiento */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid #f0fdf4;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* elementos de codigo y badges */
.code-badge {
  background: #1e293b;
  color: #38bdf8;
  padding: 1rem;
  border-radius: 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  box-shadow: 4px 4px 0px #000;
  border: 1px solid #334155;
}

.code-line::before {
  content: "> ";
  color: #f97316;
}

/* footer y enlaces */
footer a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

footer a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #f97316;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* enlace privacidad contacto */
#contacto a[href="legal/privacidad.html"] {
  text-decoration: underline;
  color: #1e293b;
  transition: color 0.3s ease;
}

#contacto a[href="legal/privacidad.html"]:hover {
  color: #f97316;
}

/* paginas legales */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}

.legal-container h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.legal-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal-container p {
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-container ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-container li {
  margin-bottom: 8px;
}

.legal-container a,
.back-home {
  color: #ea580c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-container a:hover {
  text-decoration: underline;
}
.back-home {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 0.9rem;
}
