/* ===== Base y Reseteo ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  background-color: #ece6e6;
  color: #111111;
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

h1 {
  font-size: 20px;
  font-weight: 400;
  text-transform: lowercase;
}

/* Oculto accesible */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Cursor personalizado */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url('Recursos/cursor.svg') 0 0, auto;
  }
  a, button, video, input, textarea {
    cursor: url('Recursos/cursor.svg') 0 0, pointer;
  }
}

/* Foco accesible */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

/* ===== Header y Navegación ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  background: rgba(236, 230, 230, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links a {
  display: inline-block;
  color: #111111;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.2px;
  text-decoration: none;
  text-transform: lowercase;
  transition: transform 0.2s ease;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    transform: scale(1.35);
  }
}

/* ===== Portada: Logo ===== */
.hero {
  width: 100%;
  min-height: 280px;
  padding: 120px 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #ece6e6;
}

.hero-video {
  width: 68%;
  max-width: 850px;
  height: auto;
  display: block;
  pointer-events: none;
  background: transparent !important;
  transform-origin: center;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-video.zoomed {
  transform: scale(1.15);
}

/* ===== Videos de Muestra ===== */
.video-box {
  width: 100%;
  overflow: hidden;
  background-color: #ece6e6;
  display: flex;
  justify-content: center;
}

.video-box video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  background: transparent;
}

.video-box video:focus-visible {
  outline: 2px solid #111111;
  outline-offset: -4px;
}

@media (hover: hover) and (pointer: fine) {
  .video-box video:hover {
    transform: scale(1.05);
  }
}

/* ===== Sección Contacto ===== */
.contact {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 24px 18vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 70px;
  background-color: #ece6e6;
}

.contact form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact h2 {
  font-size: 18px;
  font-weight: 400;
  text-transform: lowercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  text-transform: lowercase;
  color: #555555;
}

.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #111111;
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
  font: inherit;
  font-size: 16px;
  outline: none;
  color: #111111;
}

.field input:focus-visible, .field textarea:focus-visible {
  box-shadow: 0 2px 0 #111111;
}

.field textarea {
  min-height: 70px;
  resize: vertical;
}

.btn {
  align-self: flex-start;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid #111111;
  border-radius: 0;
  color: #111111;
  font: inherit;
  font-size: 14px;
  text-transform: lowercase;
  -webkit-appearance: none;
  transition: background 0.2s, color 0.2s;
}

.btn:disabled {
  opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) {
    background: #111111;
    color: #ece6e6;
  }
}

.form-status {
  min-height: 1.4em;
  font-size: 13px;
}

/* ===== Footer Global ===== */
.footer {
  width: 100%;
  border-top: 1px solid #111111;
  padding: 32px 24px;
  background-color: #ece6e6;
  font-size: 13px;
  color: #111111;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content a {
  color: #111111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-content a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Celulares y Pantallas Chicas ===== */
@media (max-width: 600px) {
  .header {
    padding: 14px 10px;
  }
  .nav-links {
    width: 100%;
    gap: 16px;
    justify-content: space-around;
  }
  .nav-links a {
    font-size: 13px;
    padding: 4px 2px;
  }
  .hero {
    min-height: 180px;
    padding: 85px 0 20px;
  }
  .hero-video {
    width: 82%;
  }
  .contact {
    padding: 95px 20px 22vh;
    scroll-margin-top: 55px;
  }
  .footer {
    padding: 24px 20px 32px;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== Reducción de Movimiento ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
