/* 
  Neo-Modernismo Orgánico Design System - Réplica Exacta
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #C1593C;
  --primary-foreground: #FFFFFF;
  --secondary: #7A9B76;
  --secondary-foreground: #FFFFFF;
  --muted: #E8DCC4;
  --muted-foreground: #2B2B2B;
  --accent: #7A9B76;
  --accent-foreground: #FFFFFF;
  --background: #FDFBF7;
  --foreground: #2B2B2B;
  --card: #FFFFFF;
  --card-foreground: #2B2B2B;
  --border: #E8DCC4;
  --radius: 1.5rem;
  --font-display: "Clash Display", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1.2s ease-out;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(43, 43, 43, 0.7), rgba(43, 43, 43, 0.4), transparent);
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .animate-up {
  opacity: 1;
  transform: translateY(0);
}

.delay-300 { transition-delay: 0.3s; }
.delay-500 { transition-delay: 0.5s; }
.delay-700 { transition-delay: 0.7s; }

/* Shadows */
.shadow-organic {
  box-shadow: 0 4px 6px -1px rgba(193, 89, 60, 0.1), 0 2px 4px -1px rgba(193, 89, 60, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-organic-lg {
  box-shadow: 0 10px 20px -5px rgba(193, 89, 60, 0.15), 0 4px 8px -2px rgba(193, 89, 60, 0.08), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #E8DCC4; }
::-webkit-scrollbar-thumb { background: #C1593C; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #A14A30; }

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  transform-origin: top;
}

#mobile-menu.hidden {
  display: none;
  opacity: 0;
  transform: scaleY(0);
}

#mobile-menu:not(.hidden) {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}


/* Reveal suave (fade + subidita mínima) */
.reveal-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 550ms ease, transform 550ms ease;
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
