/* Pino Huacho Cabin - Main Styles */
:root {
  --primary-color: #2d5016;
  --secondary-color: #4a7c59;
  --accent-color: #1e88e5;
  --wood-color: #8d6e63;
  --wood-light: #a1887f;
  --nature-green: #66bb6a;
  --lake-blue: #42a5f5;
  --text-dark: #2e2e2e;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-nature: #e8f5e8;
  --shadow: 0 4px 12px rgba(45, 80, 22, 0.15);
  --shadow-lg: 0 8px 25px rgba(45, 80, 22, 0.2);
  --border-radius: 12px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--bg-light);
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light) !important;
  display: flex;
  align-items: center;
}

.navbar-brand::before {
  content: "🏠";
  margin-right: 0.5rem;
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
}

.nav-link:hover {
  color: var(--nature-green) !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.btn {
  background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 10px 20px !important;
  margin-left: 1rem;
}

.nav-link.btn:hover {
  background: linear-gradient(135deg, var(--wood-light) 0%, var(--wood-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(45, 80, 22, 0.3), rgba(30, 136, 229, 0.2)), 
               url('../img/portada.jpg') center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(45, 80, 22, 0.7) 0%, 
    rgba(74, 124, 89, 0.6) 50%,
    rgba(30, 136, 229, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  margin: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-buttons .btn-warning {
  background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
  color: white;
}

.hero-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-warning:hover {
  background: linear-gradient(135deg, var(--wood-light) 0%, var(--wood-color) 100%);
}

.hero-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nature-green) 0%, var(--lake-blue) 100%);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 3rem;
}

.feature-card h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Calendar Styles */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background-color: #e9ecef;
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 2px;
}

.calendar-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

.calendar-day {
  background: white;
  padding: 1rem 0.5rem;
  min-height: 70px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  position: relative;
  border-radius: 8px;
  border: 2px solid transparent;
}

.calendar-day:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.available {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  color: #2d5016;
  border-color: #66bb6a;
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #d4edda 0%, #c8e6c8 100%);
  border-color: #4caf50;
}

.calendar-day.occupied {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border-color: #f44336;
  cursor: not-allowed;
}

.calendar-day.maintenance {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57c00;
  border-color: #ffc107;
  cursor: not-allowed;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border: 3px solid #2196f3;
  transform: scale(1.1);
  z-index: 3;
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.calendar-day.other-month {
  opacity: 0.3;
  background: #f8f9fa;
  color: #6c757d;
  cursor: default;
}

.calendar-day.past {
  opacity: 0.5;
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.calendar-day.today {
  font-weight: 700;
  position: relative;
}

.calendar-day.today::after {
  content: '•';
  position: absolute;
  bottom: 4px;
  color: #2196f3;
  font-size: 1.2rem;
}

.date-number {
  font-size: 1.1rem;
  font-weight: 600;
}

.calendar-day small {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Legend */
.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-block;
}

.legend-color.available {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border: 2px solid #66bb6a;
}

.legend-color.occupied {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #f44336;
}

.legend-color.maintenance {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px solid #ffc107;
}

.legend-color.selected {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #2196f3;
}

.legend-item {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Gallery */
.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45, 80, 22, 0.9));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Forms */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
  background-color: var(--bg-nature);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-warning {
  background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--wood-light) 0%, var(--wood-color) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-success {
  background: linear-gradient(135deg, var(--nature-green) 0%, #4caf50 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
}

.btn-success:hover {
  background: linear-gradient(135deg, #4caf50 0%, var(--nature-green) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

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

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Activity Cards */
.activity-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--lake-blue);
  font-size: 3rem;
}

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

.activity-card h5 {
  color: var(--primary-color);
  font-weight: 600;
}

/* Amenities */
.amenity-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
}

.amenity-item:last-child {
  border-bottom: none;
}

/* Specifications */
.cabin-specs {
  background: linear-gradient(135deg, var(--bg-nature) 0%, white 100%);
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.spec-row {
  transition: all 0.2s ease;
}

.spec-row:hover {
  background-color: rgba(45, 80, 22, 0.05);
  padding-left: 0.5rem;
}

/* Pricing Info */
.pricing-info {
  background: linear-gradient(135deg, var(--bg-nature) 0%, rgba(102, 187, 106, 0.1) 100%);
  border: 2px solid rgba(45, 80, 22, 0.1);
  border-radius: var(--border-radius);
}

/* Step Cards */
.step-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  padding: 2rem;
}

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

.step-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  color: white;
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.2) 0%, rgba(102, 187, 106, 0.1) 100%);
  color: var(--primary-color);
  border-left: 4px solid var(--nature-green);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.1) 100%);
  color: #c62828;
  border-left: 4px solid #f44336;
}

.alert-info {
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.2) 0%, rgba(66, 165, 245, 0.1) 100%);
  color: var(--lake-blue);
  border-left: 4px solid var(--lake-blue);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
  color: #f57c00;
  border-left: 4px solid #ffc107;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light);
}

.social-links a {
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.social-links a:hover {
  color: var(--nature-green) !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .gallery-img {
    height: 220px;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .calendar-day {
    min-height: 50px;
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }
  
  .calendar-header {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .date-number {
    font-size: 0.9rem;
  }
  
  .legend-item {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--nature-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-custom {
  box-shadow: var(--shadow);
}

.shadow-custom-lg {
  box-shadow: var(--shadow-lg);
}