/* ========================================================
   ALORA STUDIO CR - ESTILOS OFICIALES (versionalorastudiocr)
   Estudio de Branding, Redes y Desarrollo Web en Costa Rica
   
   PALETA CROMÁTICA OFICIAL:
   - 3 Protagonistas:
       * Rojo Primario:   #8d151f
       * Lino Base:       #ede8d9
       * Verde Bosque:    #32493a
   - Acentos:
       * Vino Profundo:   #6e1d2c
       * Rosa Blush:      #e4b2ae
       * Terracota:       #e8ac99
       * Oro Envejecido:  #a1895a
       * Blanco Puro:     #ffffff
   
   REGLA DE COLOR: CERO NEGRO PURO (#000) EN TODO EL SITIO.
   Todos los títulos y textos usan tonos de la paleta oficial
   cumpliendo contraste mínimo AA (WCAG 2.1).
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Reglas @font-face para fuentes locales Mont si se añaden a assets/fonts/ */
@font-face {
  font-family: 'Mont';
  src: local('Mont Light'), local('Mont-Light'), url('./assets/fonts/Mont-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: local('Mont Regular'), local('Mont-Regular'), url('./assets/fonts/Mont-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: local('Mont SemiBold'), local('Mont-SemiBold'), url('./assets/fonts/Mont-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: local('Mont Bold'), local('Mont-Bold'), url('./assets/fonts/Mont-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: local('Mont Heavy'), local('Mont-Heavy'), local('Mont Black'), url('./assets/fonts/Mont-Heavy.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 3 Protagonistas Oficiales */
  --color-crimson: #8d151f; /* Rojo Primario */
  --color-linen:   #ede8d9; /* Lino Base */
  --color-forest:  #32493a; /* Verde Bosque Profundo */

  /* Acentos Oficiales */
  --color-wine:    #6e1d2c; /* Vino Profundo */
  --color-blush:   #e4b2ae; /* Rosa Blush */
  --color-peach:   #e8ac99; /* Terracota Melocotón */
  --color-gold:    #a1895a; /* Oro Envejecido */
  --color-white:   #ffffff; /* Blanco Puro */

  /* Variables Semánticas para Tipografía (CERO NEGRO PURO) */
  /* Sobre fondos claros (#ede8d9, #ffffff, #e4b2ae): */
  --color-titulo:       #8d151f; /* H1 y H2: Rojo Primario */
  --color-titulo-wine:  #6e1d2c; /* H1 y H2 variante: Vino Profundo */
  --color-subtitulo:    #32493a; /* H3, H4 y subtítulos: Verde Bosque */
  --color-texto:        #2b382f; /* Cuerpo: Tono bosque profundo cálido (contraste > 10:1 sobre blanco/lino) */
  --color-muted:        #48584b; /* Texto secundario: Oliva profundo cálido (contraste > 5.2:1, supera AA) */
  --color-border:       rgba(141, 21, 31, 0.14);
  --color-border-forest: rgba(50, 73, 58, 0.16);

  /* Sobre fondos oscuros (Verde bosque #32493a, Vino #6e1d2c, Rojo #8d151f): */
  --color-titulo-dark:    #ede8d9; /* Lino */
  --color-subtitulo-dark: #ffffff; /* Blanco Puro */
  --color-texto-dark:     #ede8d9; /* Lino */
  --color-muted-dark:     rgba(237, 232, 217, 0.82);
  --color-detalle-dark:   #a1895a; /* Oro Envejecido para etiquetas y detalles */

  --font-mont: 'Mont', 'Montserrat', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Control de visibilidad de precios (oculto por solicitud) */
  --pricing-display: none;
}

/* Modo para ocultar precios fácilmente si el cliente lo desea */
body.hide-prices {
  --pricing-display: none;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-mont);
  background-color: var(--color-linen);
  color: var(--color-texto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-linen);
  color: var(--color-texto);
  line-height: 1.6;
}

/* Reglas Estrictas de Tipografía: CERO NEGRO */
h1 {
  font-family: var(--font-mont);
  color: var(--color-titulo);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-family: var(--font-mont);
  color: var(--color-titulo);
  letter-spacing: -0.02em;
  font-weight: 800;
}

h3 {
  font-family: var(--font-mont);
  color: var(--color-subtitulo);
  letter-spacing: -0.015em;
  font-weight: 700;
}

h4 {
  font-family: var(--font-mont);
  color: var(--color-subtitulo);
  letter-spacing: -0.01em;
  font-weight: 700;
}

h5, h6 {
  font-family: var(--font-mont);
  color: var(--color-subtitulo);
  font-weight: 600;
}

p, li, label, input, textarea, select {
  color: var(--color-texto);
}

/* Clases de texto atenuado sin negro */
.text-muted {
  color: var(--color-muted) !important;
}

.text-brand-title {
  color: var(--color-titulo) !important;
}

.text-brand-wine {
  color: var(--color-titulo-wine) !important;
}

.text-brand-subtitle {
  color: var(--color-subtitulo) !important;
}

.text-brand-body {
  color: var(--color-texto) !important;
}

/* Títulos y textos en contenedores con fondo oscuro */
.bg-forest h1, .bg-forest h2,
.bg-wine h1, .bg-wine h2,
.bg-crimson h1, .bg-crimson h2,
footer h1, footer h2 {
  color: var(--color-titulo-dark) !important;
}

.bg-forest h3, .bg-forest h4, .bg-forest h5,
.bg-wine h3, .bg-wine h4, .bg-wine h5,
.bg-crimson h3, .bg-crimson h4, .bg-crimson h5,
footer h3, footer h4, footer h5 {
  color: var(--color-subtitulo-dark) !important;
}

.bg-forest p, .bg-wine p, .bg-crimson p, footer p,
.bg-forest li, .bg-wine li, .bg-crimson li, footer li {
  color: var(--color-texto-dark) !important;
}

.bg-forest .text-muted, .bg-wine .text-muted, .bg-crimson .text-muted, footer .text-muted {
  color: var(--color-muted-dark) !important;
}

.tracking-editorial {
  letter-spacing: 0.22em;
}

.tracking-wide-caps {
  letter-spacing: 0.12em;
}

.italic-emphasis {
  font-style: italic !important;
  font-family: 'Montserrat', var(--font-mont) !important;
}

/* Botones Accesibles con Área Táctil >= 44px */
.btn-alora-primary {
  background-color: var(--color-crimson);
  color: var(--color-linen) !important;
  min-height: 44px;
  padding: 0.75rem 1.65rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(141, 21, 31, 0.22);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-alora-primary span,
.btn-alora-primary i {
  color: var(--color-linen) !important;
  display: inline-flex;
  align-items: center;
}

.btn-alora-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(237, 232, 217, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-alora-primary:hover::after {
  left: 100%;
}

.btn-alora-primary:hover {
  background-color: var(--color-wine);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 29, 44, 0.35);
  color: var(--color-linen) !important;
}

/* Ajuste proporcional para botones en la barra de navegación superior */
#main-header .btn-alora-primary {
  min-height: 40px;
  height: 40px;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

#main-header .btn-alora-primary i {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-alora-outline,
.btn-alora-outline-light {
  min-height: 46px;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-alora-outline {
  border: 1.5px solid var(--color-forest);
  color: var(--color-forest) !important;
  background-color: transparent;
}

.btn-alora-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-linen) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(50, 73, 58, 0.25);
}

/* Variante Outline para fondos oscuros (ej. fondo Forest) */
.btn-alora-outline-light,
.bg-forest .btn-alora-outline {
  border: 1.5px solid rgba(237, 232, 217, 0.45) !important;
  color: var(--color-linen) !important;
  background-color: rgba(237, 232, 217, 0.08) !important;
}

.btn-alora-outline-light i,
.btn-alora-outline-light span,
.bg-forest .btn-alora-outline i,
.bg-forest .btn-alora-outline span {
  color: var(--color-linen) !important;
}

.btn-alora-outline-light:hover,
.bg-forest .btn-alora-outline:hover {
  background-color: var(--color-linen) !important;
  color: var(--color-forest) !important;
  border-color: var(--color-linen) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-alora-outline-light:hover i,
.btn-alora-outline-light:hover span,
.bg-forest .btn-alora-outline:hover i,
.bg-forest .btn-alora-outline:hover span {
  color: var(--color-forest) !important;
}

.btn-alora-gold {
  background-color: var(--color-gold);
  color: var(--color-white) !important;
  min-height: 46px;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(161, 137, 90, 0.25);
}

.btn-alora-gold:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(161, 137, 90, 0.35);
}

.btn-alora-behance {
  background-color: #0057ff;
  color: var(--color-white) !important;
  min-height: 46px;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 87, 255, 0.25);
}

.btn-alora-behance:hover {
  background-color: #0046d1;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 87, 255, 0.35);
}

/* Tarjeta de Servicio con Beneficio & Orientación de Precio */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-crimson), var(--color-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(110, 29, 44, 0.12);
  border-color: rgba(141, 21, 31, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

/* Enlace a propuesta a medida en color crema */
.link-propuesta-crema,
.link-propuesta-crema span,
.link-propuesta-crema i {
  color: var(--color-linen) !important;
  transition: color 0.25s ease;
}

.link-propuesta-crema:hover,
.link-propuesta-crema:hover span,
.link-propuesta-crema:hover i {
  color: var(--color-blush) !important;
}

.service-pricing-badge {
  display: var(--pricing-display);
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(237, 232, 217, 0.65);
  border: 1px solid rgba(141, 21, 31, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-wine);
  margin-top: 1rem;
}

/* Tarjetas de Portafolio en Grid con Bloque Reto → Solución → Resultado */
.portfolio-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: 0 4px 20px rgba(50, 73, 58, 0.06);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px -12px rgba(110, 29, 44, 0.16);
  border-color: rgba(141, 21, 31, 0.35);
}

.portfolio-card .card-media {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .card-media {
  transform: scale(1.04);
}

/* Bloque Reto / Solución / Resultado en Tarjeta y Modal */
.case-rsr-box {
  background-color: rgba(237, 232, 217, 0.5);
  border: 1px solid rgba(50, 73, 58, 0.12);
  border-radius: 0.85rem;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-top: 0.85rem;
}

.case-rsr-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.35;
}

.case-rsr-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  shrink: 0;
}

.tag-reto {
  background-color: rgba(110, 29, 44, 0.12);
  color: var(--color-wine);
}

.tag-solucion {
  background-color: rgba(50, 73, 58, 0.14);
  color: var(--color-forest);
}

.tag-resultado {
  background-color: rgba(161, 137, 90, 0.18);
  color: #7d632f;
}

/* Fila de Proyecto en Vista Lista (Índice Editorial) */
.project-row {
  border-bottom: 1px solid rgba(141, 21, 31, 0.12);
  padding: 1.35rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.project-row:hover {
  background-color: rgba(255, 255, 255, 0.85);
  padding-left: 1.5rem;
  border-color: var(--color-crimson);
}

.project-row:hover .project-row-title {
  color: var(--color-crimson) !important;
}

/* Floating Preview de Imagen en Hover */
.floating-cursor-preview {
  position: fixed;
  width: 290px;
  height: 195px;
  border-radius: 1rem;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 20px 40px rgba(50, 73, 58, 0.25);
  border: 2px solid white;
  background-size: cover;
  background-position: center;
}

.floating-cursor-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Marquee continuo en tono Crema Lino Oficial */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  user-select: none;
}

.marquee-content,
.marquee-content span {
  display: flex;
  animation: scrollMarquee 34s linear infinite;
  gap: 3rem;
  color: var(--color-linen) !important;
}

.marquee-wrapper:hover .marquee-content,
.marquee-wrapper:hover .marquee-content span {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Paleta Interactiva Click-to-Copy (ahora en El Estudio / Identidad) */
.color-swatch-chip {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.color-swatch-chip:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 22px rgba(50, 73, 58, 0.16);
}

/* Chips de Cotizador Interactivo */
.quote-service-chip {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(141, 21, 31, 0.15);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  user-select: none;
}

.quote-service-chip:hover {
  border-color: var(--color-crimson);
  background-color: var(--color-white);
  transform: translateY(-2px);
}

.quote-service-chip.selected {
  border-color: var(--color-crimson);
  background-color: var(--color-crimson);
  color: var(--color-white) !important;
  box-shadow: 0 4px 14px rgba(141, 21, 31, 0.22);
}

.quote-service-chip.selected .chip-icon {
  color: var(--color-white) !important;
}

.quote-service-chip.selected .chip-text {
  color: var(--color-white) !important;
}

/* Tarjetas de Testimonios */
.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(50, 73, 58, 0.05);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(110, 29, 44, 0.1);
  border-color: rgba(141, 21, 31, 0.3);
}

/* Acordeón FAQ */
.faq-item {
  border-bottom: 1px solid rgba(141, 21, 31, 0.14);
  transition: all 0.3s ease;
}

.faq-header {
  cursor: pointer;
  padding: 1.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
  max-height: 380px;
  padding-bottom: 1.35rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-crimson);
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.85rem;
  height: 3.85rem;
  background-color: #25D366;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.38);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.52);
  color: white !important;
}

.whatsapp-tooltip {
  position: absolute;
  right: 4.65rem;
  background: var(--color-forest);
  color: var(--color-linen);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Toast de notificación de copiado */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-forest);
  color: var(--color-linen);
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(50, 73, 58, 0.35);
  border: 1px solid rgba(237, 232, 217, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

#toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* Animaciones y Utilidades */
.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animaciones Dinámicas de Entrada para el Hero */
@keyframes dynamicEntranceUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes dynamicEntranceScale {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(6px);
  }
  65% {
    transform: translateY(-2px) scale(1.008);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-animate-badge {
  animation: dynamicEntranceUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-animate-title {
  animation: dynamicEntranceScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-animate-tagline {
  animation: dynamicEntranceUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-animate-desc {
  animation: dynamicEntranceUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-animate-cta {
  animation: dynamicEntranceUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-animate-mockup {
  animation: dynamicEntranceUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

/* Input Styles sin negro */
input, textarea, select {
  color: var(--color-texto);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(50, 73, 58, 0.18);
  font-family: var(--font-mont);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-crimson);
  box-shadow: 0 0 0 3px rgba(141, 21, 31, 0.15);
  outline: none;
}

/* ========================================================
   SUITE DE DINAMISMO & MOVIMIENTO (ALORA MOTION SYSTEM)
   ======================================================== */

/* 1. Barra de Progreso de Scroll Fina */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #8d151f 0%, #6e1d2c 45%, #a1895a 100%);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.05s linear;
  box-shadow: 0 1px 8px rgba(141, 21, 31, 0.45);
}

/* 2. Cursor Personalizado (Solo Desktop y No Táctil) */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, width, height, background-color, border-color;
}

.custom-cursor-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-crimson);
  box-shadow: 0 0 8px rgba(141, 21, 31, 0.5);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              opacity 0.25s ease;
}

.custom-cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(141, 21, 31, 0.45);
  background-color: rgba(237, 232, 217, 0.12);
  backdrop-filter: blur(0.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.3s ease;
}

.custom-cursor-text {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
}

/* Estado Hover: Enlaces, Botones y Controles */
body.cursor-hover-link .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(1.6);
  background-color: var(--color-wine);
}

body.cursor-hover-link .custom-cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(141, 21, 31, 0.75);
  background-color: rgba(141, 21, 31, 0.08);
}

/* Estado Hover: Proyectos e Imágenes (Badge "Ver") */
body.cursor-hover-project .custom-cursor-dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

body.cursor-hover-project .custom-cursor-ring {
  width: 76px;
  height: 76px;
  border-color: var(--color-crimson);
  background-color: rgba(141, 21, 31, 0.94);
  box-shadow: 0 10px 30px rgba(110, 29, 44, 0.4);
}

body.cursor-hover-project .custom-cursor-text {
  opacity: 1;
  transform: scale(1);
}

/* Adaptación de Contraste Automática en Secciones Oscuras (#estudio, footer, etc.) */
body.cursor-on-dark .custom-cursor-dot {
  background-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(161, 137, 90, 0.6);
}

body.cursor-on-dark .custom-cursor-ring {
  border-color: rgba(237, 232, 217, 0.65);
  background-color: rgba(237, 232, 217, 0.08);
}

body.cursor-on-dark.cursor-hover-link .custom-cursor-ring {
  border-color: var(--color-gold);
  background-color: rgba(161, 137, 90, 0.15);
}

body.cursor-on-dark.cursor-hover-project .custom-cursor-ring {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.cursor-on-dark.cursor-hover-project .custom-cursor-text {
  color: var(--color-forest);
}

/* 3. Enlaces del Menú con Subrayado Dinámico (De izquierda a derecha) */
.nav-link-animated {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.nav-link-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-animated:hover::after {
  transform: scaleX(1);
}

/* 4. Inclinación 3D (Tilt) para Tarjetas */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Parallax Blobs */
.parallax-blob {
  will-change: transform;
}

/* Desactivar cursor personalizado en móviles, tablets y pantallas táctiles */
@media (hover: none) or (pointer: coarse), (max-width: 1023px) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* Desactivar animaciones y cursor si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .custom-cursor-dot,
  .custom-cursor-ring,
  .scroll-progress-bar {
    display: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nav-link-animated::after {
    transform: none !important;
  }

  .tilt-card {
    transform: none !important;
  }
}
