@font-face {
  font-family: "Gazpacho";
  src: url("../assets/fonts/gazpacho-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.glass-nav {
  background-color: rgba(34, 45, 58, 0.95);
  backdrop-filter: blur(10px);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #9d6340;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
body {
  font-size: 16px;
  line-height: 1.6;
}
h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}
h2 {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}
h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
}
@media (min-width: 768px) {
  h1 {
    font-size: 48px !important;
  }
  h2 {
    font-size: 32px !important;
  }
  h3 {
    font-size: 24px !important;
  }
}
.btn-ui {
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.nav-ui {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}
.eyebrow-ui {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
}
.label-ui {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}
.card-spec-ui {
  font-size: 13px !important;
  font-weight: 500 !important;
}
.footer-link-ui {
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* =============================================
   ANIMACIONES — FASE 1
   ============================================= */

/* --- Hero: entrada escalonada --- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-line {
  animation: heroLineIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.1s;
}

.hero-eyebrow {
  animation: heroFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.25s;
}

.hero-title {
  animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.4s;
}

.hero-tagline {
  animation: heroFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.55s;
}

.hero-cta {
  animation: heroFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.7s;
}

/* --- Scroll reveal --- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estado inicial: invisible hasta que el observer lo activa */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.reveal-left.is-visible {
  animation: revealLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.reveal-right.is-visible {
  animation: revealRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Escalonado para listas de cards */
.reveal-stagger > * {
  opacity: 0;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation: revealUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0ms both; }
.reveal-stagger.is-visible > *:nth-child(2) { animation: revealUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 120ms both; }
.reveal-stagger.is-visible > *:nth-child(3) { animation: revealUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 240ms both; }
.reveal-stagger.is-visible > *:nth-child(4) { animation: revealUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 360ms both; }
.reveal-stagger.is-visible > *:nth-child(5) { animation: revealUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 480ms both; }

/* --- Focus en inputs del formulario --- */
@keyframes inputGlow {
  from { box-shadow: 0 0 0 0 rgba(157, 99, 64, 0); }
  to   { box-shadow: 0 0 0 3px rgba(157, 99, 64, 0.18); }
}

input:focus,
textarea:focus {
  animation: inputGlow 0.25s ease forwards;
  transition: border-color 0.2s ease;
}

/* =============================================
   ANIMACIONES — FASE 2
   ============================================= */

/* --- Cards de valores: hover elevado + ícono rota --- */
.value-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(157, 99, 64, 0.12);
}
.value-card:hover .value-card-icon {
  transform: rotate(15deg) scale(1.1);
}
.value-card-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  justify-content: center;
}

/* --- Galería: cross-fade al cambiar imagen --- */
#gallery-main-img {
  transition: opacity 0.25s ease;
}
#gallery-main-img.gallery-fading {
  opacity: 0;
}

/* --- Menú móvil: slide-down animado --- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.menu-open {
  animation: slideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --- Menú móvil: items se escalonan --- */
#mobile-menu.menu-open a:nth-child(1) { animation: slideDown 0.2s ease 0.04s both; }
#mobile-menu.menu-open a:nth-child(2) { animation: slideDown 0.2s ease 0.08s both; }
#mobile-menu.menu-open a:nth-child(3) { animation: slideDown 0.2s ease 0.12s both; }
#mobile-menu.menu-open a:nth-child(4) { animation: slideDown 0.2s ease 0.16s both; }

/* =============================================
   ANIMACIONES — FASE 3
   ============================================= */

/* --- Spinner en botón de envío --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(234, 227, 223, 0.35);
  border-top-color: #EAE3DF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* --- Shake en error del formulario --- */
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  30%       { transform: translateX(6px); }
  45%       { transform: translateX(-4px); }
  60%       { transform: translateX(4px); }
  75%       { transform: translateX(-2px); }
  90%       { transform: translateX(2px); }
}

.form-shake {
  animation: formShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* --- Flash verde en éxito --- */
@keyframes successFlash {
  0%   { background-color: rgba(157, 99, 64, 1); }
  30%  { background-color: rgba(22, 163, 74, 1); }
  100% { background-color: rgba(157, 99, 64, 1); }
}

.btn-success-flash {
  animation: successFlash 1.2s ease both;
}

/* --- Feedback slide-down al aparecer --- */
@keyframes feedbackIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
  }
}

.feedback-visible {
  animation: feedbackIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --- Iconos de contacto: pulse suave en hover --- */
@keyframes contactIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(157, 99, 64, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(157, 99, 64, 0.15); }
}

.contact-icon-pulse:hover {
  animation: contactIconPulse 0.8s ease infinite;
}

/* --- Thumbnail activo con glow en la galería --- */
@keyframes thumbGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 32, 0); }
  50%       { box-shadow: 0 0 8px 2px rgba(232, 168, 32, 0.4); }
}

.gallery-thumb-active {
  animation: thumbGlow 1.8s ease infinite;
}

/* --- Respeto a preferencias de accesibilidad --- */
@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero-eyebrow,
  .hero-title,
  .hero-tagline,
  .hero-cta,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-stagger > *,
  .value-card,
  .value-card-icon,
  #gallery-main-img,
  #mobile-menu.menu-open,
  #mobile-menu.menu-open a,
  .btn-spinner,
  .form-shake,
  .btn-success-flash,
  .feedback-visible,
  .contact-icon-pulse:hover,
  .gallery-thumb-active {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
