/* ============================================
   La Estancia Miramar - Main Stylesheet
   ============================================ */

/* ============================================
   CSS Variables (Design System)
   ============================================ */
:root {
  /* Primary Colors */
  --primary-dark: #1a1a1a;
  --primary-brown: #3e2723;
  --primary-gold: #d4af37;
  
  /* Secondary Colors */
  --secondary-cream: #f5f5dc;
  --secondary-gray: #757575;
  --secondary-light: #ffffff;
  
  /* Accent Colors */
  --accent-red: #c62828;
  --accent-green: #2e7d32;
  
  /* Background */
  --bg-light: #fafafa;
  --bg-dark: #212121;
  
  /* Text */
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #ffffff;
  
  /* Font Families */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Font Sizes */
  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: clamp(1.5rem, 3vw, 2rem);
  --fs-h4: clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-body: clamp(1rem, 2vw, 1.125rem);
  --fs-small: 0.875rem;
  
  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  
  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.8;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Container */
  --container-max: 1200px;
  --container-padding: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--secondary-light);
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  margin-bottom: var(--space-sm);
  line-height: var(--lh-relaxed);
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-brown);
}

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

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  border-color: var(--primary-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.btn-secondary:hover {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  background-color: var(--primary-dark);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--primary-gold);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-gold);
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-menu li a {
  color: var(--text-light);
  font-weight: var(--fw-medium);
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-gold);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-contact .phone {
  color: var(--text-light);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-contact .phone:hover {
  color: var(--primary-gold);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: var(--space-2xl) var(--space-sm);
}

.hero-title {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: var(--secondary-cream);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-gold);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   Cards
   ============================================ */
.card {
  background-color: var(--secondary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ============================================
   Modal
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--secondary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: var(--space-xs);
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary-dark);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid #ddd;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col h3,
.footer-col h4 {
  color: var(--primary-gold);
  margin-bottom: var(--space-md);
}

.footer-description {
  color: var(--secondary-gray);
  line-height: var(--lh-relaxed);
}

.footer-contact,
.footer-links {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer-contact li i {
  color: var(--primary-gold);
  margin-top: 4px;
}

.footer-contact a,
.footer-links a {
  color: var(--secondary-gray);
  transition: color var(--transition-fast);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--secondary-gray);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--primary-gold);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
}

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden {
  display: none;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-in-up {
  animation: slideInUp 0.6s ease;
}