/* CSS Custom Properties / Variables */
:root {
  /* Colors - Ivory Background Theme */
  --background: hsl(45, 29%, 97%);
  --foreground: hsl(0, 0%, 15%);
  --border: hsl(43, 20%, 85%);
  
  --card: hsl(45, 20%, 95%);
  --card-foreground: hsl(0, 0%, 15%);
  
  --primary: hsl(43, 38%, 65%);
  --primary-foreground: hsl(45, 29%, 97%);
  
  --secondary: hsl(40, 10%, 90%);
  --secondary-foreground: hsl(0, 0%, 20%);
  
  --muted: hsl(40, 10%, 92%);
  --muted-foreground: hsl(0, 0%, 40%);
  
  --accent: hsl(38, 45%, 85%);
  --accent-foreground: hsl(0, 0%, 20%);

  --whatsapp: #25D366;

  /* Footer Colors */
  --footer-bg: #1A1A1A;
  --footer-text: #F4F3EF;
  --footer-muted: #9CA3AF;
  --footer-primary: #C6B386;
  --footer-border: rgba(255,255,255,0.1);

  /* Fonts */
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Other vars */
  --radius: 0.25rem;
  --shadow-sm: 0px 4px 10px 0px rgba(0,0,0,0.03);
  --shadow: 0px 10px 30px 0px rgba(0,0,0,0.05);
  --shadow-md: 0px 20px 40px 0px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: #262626;
  font-weight: normal;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

address {
  font-style: normal;
}

/* Layout Utilities */
.app-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; width: 100%; }
.container { width: 100%; padding-left: 1rem; padding-right: 1rem; margin-left: auto; margin-right: auto; max-width: 1280px; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-full { top: 100%; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Spacing Utilities */
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-mobile-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.pb-safe-12 { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-auto { margin-top: auto; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wide-extra { letter-spacing: 0.3em; }
.tracking-02em { letter-spacing: 0.2em; }
.tracking-03em { letter-spacing: 0.3em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* Colors & Backgrounds */
.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-primary { background-color: var(--primary); }
.bg-primary-10 { background-color: color-mix(in srgb, var(--primary) 10%, transparent); }
.bg-primary-20 { background-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.bg-background-90 { background-color: color-mix(in srgb, var(--background) 90%, transparent); }
.bg-background-95 { background-color: color-mix(in srgb, var(--background) 95%, transparent); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-dark { background-color: #262626; }

.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.hover-text-primary:hover { color: var(--primary); }
.text-white { color: #fff; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-foreground-80 { color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.text-whatsapp { color: var(--whatsapp); }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-style: solid; border-top:0; border-left:0; border-right:0;}
.border-t { border-top-width: 1px; border-style: solid; border-bottom:0; border-left:0; border-right:0;}
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; border-left:0; border-right:0;}
.border-border { border-color: var(--border); }
.border-border-half { border-color: color-mix(in srgb, var(--border) 50%, transparent); }
.border-white-20 { border-color: rgba(255, 255, 255, 0.2); }
.border-primary-20 { border-color: color-mix(in srgb, var(--primary) 20%, transparent); }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; border-top-color: var(--border); }
.divide-x > :not([hidden]) ~ :not([hidden]) { border-left-width: 1px; border-left-style: solid; border-left-color: var(--border); }
.divide-border > :not([hidden]) ~ :not([hidden]) { border-color: var(--border); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-xl-gold { box-shadow: 0 0 30px rgba(198, 179, 134, 0.3); }
.shadow-sticky { box-shadow: 0 -8px 30px rgba(0,0,0,0.1); }
.drop-shadow-sm { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05)); }

.opacity-10 { opacity: 0.1; }
.opacity-60 { opacity: 0.6; }
.opacity-90 { opacity: 0.9; }

.backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.blur-3xl { filter: blur(64px); }

/* Icons */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }
.icon-xxl { width: 3rem; height: 3rem; }

/* Transitions & Animations */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }
.group:hover .group-hover-scale-105 { transform: scale(1.05); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.delay-500 { animation-delay: 500ms; opacity: 0; animation-fill-mode: forwards; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Components */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }

.grayscale-20 { filter: grayscale(20%) contrast(125%); }

.hero-gradient { background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.5), transparent); }

/* Buttons */
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background-color: color-mix(in srgb, var(--primary) 90%, black); }
.btn-whatsapp { background-color: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background-color: #20bd5a; }
.btn-whatsapp-light { background-color: rgba(37, 211, 102, 0.1); color: var(--whatsapp); }
.btn-whatsapp-light:hover { background-color: rgba(37, 211, 102, 0.2); }
.btn-glass:hover { background-color: rgba(255, 255, 255, 0.2); }
.btn-primary:hover { background-color: color-mix(in srgb, var(--primary) 90%, black); }
.btn-outline-white:hover { background-color: #f9fafb; }
.btn-muted { background-color: var(--muted); color: var(--foreground); }
.btn-muted:hover { background-color: color-mix(in srgb, var(--muted) 80%, black); }

.hover-bg-gray-50:hover { background-color: #f9fafb; }
.hover-scale:hover { transform: scale(1.05); }

.filter-btn:hover { background-color: color-mix(in srgb, var(--muted) 80%, black); }
.filter-btn.active { background-color: var(--foreground); color: var(--background); }

/* Group hover specific */
.group:hover .group-hover-primary { color: var(--primary); }

/* Details/Summary */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .group-open-rotate-180 { transform: rotate(-180deg); }

/* Responsive adjustments */
@media (min-width: 640px) {
  .sm-flex-row { flex-direction: row; }
  .sm-items-center { align-items: center; }
  .sm-w-auto { width: auto; }
  .sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-divide-y-0 > :not([hidden]) ~ :not([hidden]) { border-top-width: 0; }
  .sm-divide-x > :not([hidden]) ~ :not([hidden]) { border-left-width: 1px; border-left-style: solid; border-left-color: var(--border); }
  .sm-pt-0 { padding-top: 0; }
  .sm-mb-12 { margin-bottom: 3rem; }
  .sm-mx-0 { margin-left: 0; margin-right: 0; }
  .sm-px-0 { padding-left: 0; padding-right: 0; }
  .sm-flex-wrap { flex-wrap: wrap; }
  .sm-justify-center { justify-content: center; }
  .sm-text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm-aspect-3-2 { aspect-ratio: 3 / 2; }
  .sm-aspect-square { aspect-ratio: 1 / 1; }
  .sm-text-base { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 768px) {
  .md-text-xs { font-size: 0.75rem; line-height: 1rem; }
  .md-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md-text-5xl { font-size: 3rem; line-height: 1; }
  .md-text-6xl { font-size: 3.75rem; line-height: 1; }
  .md-px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-p-8 { padding: 2rem; }
  .md-pb-12 { padding-bottom: 3rem; }
  .md-mb-16 { margin-bottom: 4rem; }
  .md-hidden { display: none !important; }
  .md-flex { display: flex; }
  .md-flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg-text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg-flex { display: flex !important; }
  .lg-hidden { display: none !important; }
  .lg-pt-0 { padding-top: 0; }
  .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-gap-8 { gap: 2rem; }
  .lg-h-full { height: 100%; }
}

/* Header specifics */
.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header-scrolled { background-color: var(--background); background-color: color-mix(in srgb, var(--background) 95%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }

/* Mobile Menu Animation */
.slide-in { animation: slideIn 0.2s ease-out forwards; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer specific */
.bg-footer { background-color: var(--footer-bg); }
.text-footer-text { color: var(--footer-text); }
.text-footer-muted { color: var(--footer-muted); }
.text-footer-primary { color: var(--footer-primary); }
.border-footer-border { border-color: var(--footer-border); }
.border-footer-border-light { border-color: rgba(255,255,255,0.1); }
.social-link { background-color: rgba(255,255,255,0.05); }
.social-link:hover.whatsapp { background-color: var(--whatsapp); }
.social-link:hover.phone { background-color: var(--primary); }
.social-link:hover.location { background-color: rgba(255,255,255,0.2); }

/* Sticky Bar & Floating CTA */
.btn-primary-sticky { background-color: var(--primary); color: var(--primary-foreground); }
.btn-primary-sticky:active { transform: scale(0.95); }
.btn-whatsapp-sticky { background-color: rgba(37, 211, 102, 0.1); color: var(--whatsapp); border-color: rgba(37, 211, 102, 0.2); }
.btn-whatsapp-sticky:active { transform: scale(0.95); }
.btn-location-sticky { background-color: var(--muted); color: var(--foreground); }
.btn-location-sticky:active { transform: scale(0.95); }
.flex-15 { flex: 1.5; }

.floating-btn:hover { box-shadow: var(--shadow-2xl); transform: scale(1.05); }
.bg-primary-foreground-20 { background-color: rgba(255,255,255,0.2); }
.border-primary-foreground-10 { border-color: rgba(255,255,255,0.1); }

.min-h-hero { min-height: 90vh; }
