/* Estilo general */
body {
  margin: 0;
  font-family: 'Barlow', monospace;
  background-color: #f9f2e8;
  overflow-x: hidden;
  position: relative;
}

/* Header */
header {
  background-color: #1D0718;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  color: #fff8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: sticky;
;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #fff8f0;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #d72f3f;
}

.boton-testear {
  background-color: #d72f3f;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0;
  font-weight: bold;
  cursor: pointer;
  box-shadow: -2px 2px 0 #000;
  transition: background 0.3s;
  white-space: nowrap;
}

.boton-testear:hover {
  background-color: #fff8f0;
  color: #1D0718;
}

/* Intro principal */
.intro {
  text-align: center;
  margin-bottom: 4rem;
  z-index: 2;
  position: relative;
}

.intro h1 {
  font-size: 3.2rem;
  color: #362331;
  margin: 0;
  text-shadow: -2px 2px 0 #fff8f0;
}

.intro .tagline {
  font-size: 1.4rem;
  color: #1D0718;
  margin-top: 1rem;
  font-style: italic;
}

/* Textura como pseudo-elemento */
.seccion-cards::before,
footer::before,
.seccion-flotante::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/textura-base.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.seccion-cards,
footer,
.seccion-flotante {
  position: relative;
  z-index: 1;
}

/* Sección clara (cards) */
.seccion-cards {
  background-color: #f9f2e8;
  overflow: hidden;
  padding: 6rem 2rem;
}

/* Footer textual */
footer {
  background-color: #1D0718;
  color: #fff8f0;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow: hidden;
}

/* Sección flotante de cierre visual */
.seccion-flotante {
  height: 300px;
  background-color: #1D0718;
  overflow: hidden;
}

/* Cards */
.contenedor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.card {
  background-color: #fff8f0;
  border: 2px solid #362331;
  padding: 2rem;
  box-shadow: -0.5rem 0.5rem 0px #000;
  border-radius: 0;
  transform: rotate(-1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: rotate(1deg) scale(1.02);
  box-shadow: -0.5rem 0.5rem 0px #d72f3f;
  border-color: #d72f3f;
}

.foto-perfil {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid #362331;
  background-color: #ddd;
}

.card h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #d72f3f;
}

.subtitulo {
  margin: 1rem 0 1.5rem;
  color: #333;
  font-weight: bold;
}

.boton {
  background-color: #d72f3f;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  display: inline-block;
  border-radius: 0;
  box-shadow: -2px 2px 0 #000;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.boton:hover {
  background-color: #000;
  color: #fff8f0;
}

/* Flotadores individuales */
.flotador {
  position: absolute;
  pointer-events: none;
  opacity: 1;
}

.flotador-1 {
  top: 5%; left: 5%; width: 360px;
  animation: orbita1 28s ease-in-out infinite;
}

.flotador-2 {
  top: 10%; right: 5%; width: 320px;
  animation: orbita2 34s ease-in-out infinite;
}

.flotador-3 {
  bottom: 25%; left: 10%; width: 300px;
  animation: orbita3 26s ease-in-out infinite;
}

.flotador-4 {
  bottom: 10%; right: 10%; width: 340px;
  animation: orbita4 32s ease-in-out infinite;
}

.flotador-5 {
  top: 60%; left: 50%; width: 380px;
  animation: orbita5 30s ease-in-out infinite;
}

@keyframes orbita1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -40px); }
}

@keyframes orbita2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-60px, 50px); }
}

@keyframes orbita3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes orbita4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 40px); }
}

@keyframes orbita5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(70px, -20px); }
}

/* Nota legal adicional en el footer */
footer .nota-legal {
  font-size: 0.75rem;
  color: #ccc0b5;
  margin-top: 1.5rem;
  font-style: italic;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
