/**
 * SumaqPacha - Estilos personalizados
 * Complementa las utilidades de Tailwind CSS con estilos adicionales
 */

/* ===================================
   Variables CSS personalizadas
   =================================== */
:root {
  --primary-50: #eef4f3;
  --primary-100: #dce9e7;
  --primary-200: #b8d3cf;
  --primary-300: #95bdb8;
  --primary-400: #5f9188;
  --primary-500: #3f736a;
  --primary-600: #1f4d45;
  --primary-700: #193e38;
  --primary-800: #132f2b;
  --primary-900: #0e241f;
  --secondary-500: #c65a2e;
  --accent-500: #c9a227;
  --surface-white: #ffffff;
  --surface-soft: #f5f5f5;
}

/* ===================================
   Reset y ajustes globales
   =================================== */
* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Animaciones personalizadas
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Aplicar animación fade-in a secciones */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* ===================================
   Mejoras de accesibilidad
   =================================== */
a:focus,
button:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ===================================
   Sombras personalizadas
   =================================== */
.shadow-custom {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-custom-hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Efectos de hover personalizados
   =================================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Botones personalizados
   =================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

/* ===================================
   Scroll suave para navegación
   =================================== */
html {
  scroll-behavior: smooth;
}

/* ===================================
   Skeleton loading (opcional)
   =================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===================================
   Utilidades adicionales
   =================================== */

/* Gradiente de texto */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Contenedor con blur backdrop */
.backdrop-blur-custom {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===================================
   Responsive utilities
   =================================== */

/* Ocultar scrollbar pero mantener funcionalidad */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ===================================
   Animación para el toggle de precios
   =================================== */
.toggle-transition {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* ===================================
   Estilos para el menú móvil
   =================================== */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
  display: block;
}

/* ===================================
   Cards con efecto glassmorphism
   =================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===================================
   Print styles (para SEO y accesibilidad)
   =================================== */
@media print {

  nav,
  footer,
  .no-print {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ===================================
   Animación de entrada para elementos
   =================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Loader / Spinner (opcional)
   =================================== */
.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-600);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   Mejoras para imágenes
   =================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Placeholder mientras carga la imagen */
img[src=""] {
  background-color: #f0f0f0;
}

/* ===================================
   Navegación: hover en links de menú
   =================================== */
.nav-link-hover {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background-color: var(--primary-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 9999px;
}

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

/* ===================================
   Títulos de sección con líneas decorativas
   =================================== */
.section-title-lined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
}

.section-title-lined::before,
.section-title-lined::after {
  content: "";
  display: none;
  height: 3px;
  width: 10.1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, var(--primary-200), transparent);
}

.section-title-lined::after {
  transform: scaleX(-1);
}

@media (min-width: 640px) {
  .section-title-lined {
    gap: 1rem;
  }

  .section-title-lined::before,
  .section-title-lined::after {
    display: block;
    width: 15.2rem;
  }
}

@media (min-width: 1024px) {

  .section-title-lined::before,
  .section-title-lined::after {
    width: 22rem;
  }
}