/* Hotel Los Portales - Production CSS - FIXED VERSION */
/* Compiled styles for production deployment */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1E5A96;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Typography */
.font-heading {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Color System */
.text-portales-blue { color: #1E5A96 !important; }
.text-oaxaca-gold { color: #FFCC5C !important; }
.text-white { color: #ffffff !important; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.text-green-600 { color: #059669; }
.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { border-color: #e5e7eb; }
.bg-gray-900 { background-color: #111827; }
.bg-portales-blue { background-color: #1E5A96 !important; }
.bg-green-500 { background-color: #10b981; }
.bg-green-600 { background-color: #059669; }

/* Color Variations - FIXED */
.text-blue { color: #1E5A96 !important; }
.text-yellow { color: #FFCC5C !important; }
.text-white-90 { color: rgba(255, 255, 255, 0.9) !important; }
.text-white-70 { color: rgba(255, 255, 255, 0.7) !important; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9) !important; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7) !important; }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2) !important; }
.border-white-20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.bg-oaxaca-gold\/10 { background-color: rgba(255, 204, 92, 0.1) !important; }
.bg-gray-50\/30 { background-color: rgba(249, 250, 251, 0.3) !important; }

/* Layout */
.container { 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}

.max-w-6xl { max-width: 72rem; margin: 0 auto; }
.max-w-7xl { max-width: 80rem; margin: 0 auto; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; }
.max-w-2xl { max-width: 42rem; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding & Margin */
.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; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.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-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.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; }
.mb-20 { margin-bottom: 5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-3 { margin-left: 0.75rem; }
.pt-8 { padding-top: 2rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Grid */
.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)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }

/* Typography Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.title-responsive {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.1 !important;
}

/* Font Weights */
.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; }

/* Font Style */
.italic { font-style: italic; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.right-6 { right: 1.5rem; }
.left-1\/2 { left: 50%; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Sizing */
.w-1 { width: 0.25rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.h-1 { height: 0.25rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.border-white { border-color: #ffffff; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-portales-blue { border-color: #1E5A96; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Hover & Focus */
.hover\:bg-green-600:hover { background-color: #059669; }
.hover\:bg-portales-blue:hover { background-color: #1E5A96; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-oaxaca-gold:hover { color: #FFCC5C; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Transforms */
.transform { transform: translateX(var(--transform-translate-x, 0)) translateY(var(--transform-translate-y, 0)) rotate(var(--transform-rotate, 0)) skewX(var(--transform-skew-x, 0)) skewY(var(--transform-skew-y, 0)) scaleX(var(--transform-scale-x, 1)) scaleY(var(--transform-scale-y, 1)); }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }
.ease-in-out { transition-timing-function: ease-in-out; }

/* Animation */
.animate-bounce { 
  animation: bounce 1s infinite; 
}

/* CRITICAL FIX - Custom Components */
.section-spacing {
  padding: 6rem 0 !important;
}

.hero-bg {
  background-image: linear-gradient(
    rgba(30, 90, 150, 0.4), 
    rgba(30, 90, 150, 0.6)
  ), url('images/hero-intro.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
  background-repeat: no-repeat !important;
  min-height: 100vh !important;
  width: 100% !important;
  display: flex !important;
  position: relative !important;
}

.hero-text-shadow {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.minimalist-nav {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(30, 90, 150, 0.1) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  width: 100% !important;
}

.gold-cta {
  background: linear-gradient(135deg, #FFCC5C 0%, #FFB84D 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 204, 92, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #1E5A96 !important;
  text-decoration: none !important;
}

.gold-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 204, 92, 0.4) !important;
  color: #1E5A96 !important;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-mobile {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}

.gallery-image {
  transition: transform 0.7s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Backdrop */
.backdrop-blur-sm {
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* Background gradients - BRAVE COMPATIBLE */
.bg-gradient-to-b {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2)) !important;
}

.from-transparent {
  --gradient-from: transparent;
}

.to-black\/20 {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* Brave Browser Specific Fixes */
@supports (-webkit-appearance: none) {
  .hero-bg {
    background-attachment: scroll !important;
    -webkit-background-size: cover !important;
  }
  
  section#hero {
    display: block !important;
    min-height: 100vh !important;
    position: relative !important;
    width: 100% !important;
  }
  
  /* Navigation específico para Brave - consolidado arriba */
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

/* Additional utilities */
.scroll-smooth {
  scroll-behavior: smooth;
}

/* Responsive - ENHANCED */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .md\:text-4xl { font-size: 2.25rem !important; }
  .md\:text-5xl { font-size: 3rem !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:space-y-0 > * + * { margin-top: 0 !important; }
  .md\:space-x-8 > * + * { margin-left: 2rem !important; }
  .md\:gap-20 { gap: 5rem !important; }
}

@media (max-width: 768px) {
  body {
    font-size: 16px !important;
  }
  
  .container { 
    padding: 0 1rem !important; 
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }
  
  .gold-cta {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    touch-action: manipulation;
    white-space: nowrap;
  }
  
  .section-spacing {
    padding: 3rem 0 !important;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  
  .gallery-mobile {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1rem !important;
  }
  
  .gallery-mobile .md\:col-span-2 {
    grid-column: span 1 !important;
  }
  
  .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
  
  .hero-bg {
    background-attachment: scroll !important;
    min-height: 100vh !important;
  }
  
  .mb-20 { margin-bottom: 3rem !important; }
  .mb-16 { margin-bottom: 2.5rem !important; }
  
  .gap-16 { gap: 2rem !important; }
  .gap-20 { gap: 2rem !important; }
  
  .space-y-2 { margin-top: 0.5rem !important; }
  .space-x-8 { margin-left: 0 !important; }
}

@media (max-width: 480px) {
  .hero-bg {
    background-attachment: scroll !important;
    min-height: 100vh !important;
  }
  
  .text-xl { font-size: 1.125rem !important; }
  .text-lg { font-size: 1rem !important; }
  
  .section-spacing {
    padding: 2.5rem 0 !important;
  }
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

/* Print */
@media print {
  .fixed { position: relative !important; }
  .shadow-lg, .shadow-xl { box-shadow: none !important; }
}

/* EMERGENCY FALLBACK STYLES - ENHANCED FOR BRAVE */
section {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

section#hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  position: relative !important;
  width: 100vw !important;
}

nav {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
}

/* Navigation logo específico - REFORZADO */
.minimalist-nav img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 3.5rem !important;
  width: auto !important;
  max-width: none !important;
}

.minimalist-nav .flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.minimalist-nav > div {
  display: block !important;
  visibility: visible !important;
}

.minimalist-nav .flex.items-center {
  display: flex !important;
}

img {
  max-width: 100% !important;
  height: auto !important;
}

/* Footer logo específico - TAMAÑO EQUILIBRADO */
.footer-logo {
  max-height: 80px !important;
  height: 80px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
}

a {
  text-decoration: none !important;
}