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

:root {
  /* Spanish Sunset Vibes Colors */
  --flamenco-red: #e11d48;
  --sunset-orange: #f97316;
  --warm-yellow: #facc15;
  --olive-green: #84cc16;
  --sky-blue: #38bdf8;
  --accent-violet: #a855f7;

  /* Typography Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  
  /* Backgrounds */
  --bg-gradient: linear-gradient(135deg, #fff7ed, #ffe4e6, #fef9c3);
  --bg-light: #fff7ed;
  
  /* Utilities */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(249, 115, 22, 0.1);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.section-padding {
  padding: 6rem 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
}

.gradient-text {
  background: linear-gradient(to right, var(--flamenco-red), var(--sunset-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset-orange), var(--flamenco-red));
  color: white;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--sunset-orange);
  color: var(--sunset-orange);
}

.btn-outline:hover {
  background: var(--sunset-orange);
  color: white;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1rem 0;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  padding: 0.5rem 0;
}

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

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--sunset-orange);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sunset-orange);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Hero Fluid Shape Background */
.hero-bg-fluid {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background-size: cover;
  background-position: center;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: liquid-morph 15s ease-in-out infinite alternate;
  z-index: 0;
  opacity: 0.3;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

@keyframes liquid-morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  33% { border-radius: 70% 30% 50% 70% / 50% 60% 40% 40%; }
  66% { border-radius: 30% 70% 60% 40% / 60% 40% 70% 50%; }
  100% { border-radius: 50% 50% 30% 70% / 30% 70% 50% 60%; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.floating-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card img {
  border-radius: 15px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.fc-details h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fc-rating {
  color: var(--warm-yellow);
  font-size: 0.9rem;
}

.fc-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fc-tag {
  background: rgba(249, 115, 22, 0.1);
  color: var(--sunset-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Cards (Destinations) */
.destination-card {
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.dc-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dc-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .dc-img-wrapper img {
  transform: scale(1.1);
}

.dc-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--flamenco-red);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.dc-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dc-content h3 {
  margin-bottom: 0.5rem;
}

.dc-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Experiences / Features */
.experience-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  transition: var(--transition);
}

.experience-item:hover {
  transform: translateX(10px);
  background: rgba(255,255,255,0.8);
}

.ei-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--warm-yellow), var(--sunset-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Gallery Masonry */
.gallery-grid {
  display: column;
  columns: 3 300px;
  gap: 1.5rem;
}

.gallery-item {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  break-inside: avoid;
  position: relative;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

/* Footer */
footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--sunset-orange);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--flamenco-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* City Detail Pages */
.city-hero {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.city-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(31, 41, 55, 0.8));
}

.city-hero-content {
  position: relative;
  z-index: 1;
}

.city-hero h1 {
  font-size: 4rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.info-bar {
  display: flex;
  justify-content: space-around;
  padding: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.info-item {
  text-align: center;
}

.info-item h4 {
  color: var(--sunset-orange);
  margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--sunset-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-gradient);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1000;
  }
  
  .city-hero h1 {
    font-size: 2.5rem;
  }
  
  .info-bar {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
}