/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --primary: #0B192C;
  --secondary: #1E3E62;
  --accent: #E8B86D;
  --accent-hover: #D4A35B;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F6;
  --text-main: #111827;
  --text-muted: #4B5563;
  --border: #E5E7EB;
  --success: #10B981;
  --success-hover: #059669;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --section-padding: 5rem 2rem;
  --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 0.5rem; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-padding); }
.section-alt { background-color: var(--surface-alt); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 600;
  border-radius: 0.5rem; transition: var(--transition); gap: 0.5rem;
}
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--secondary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); background-color: var(--surface-alt); }
.btn-accent { background-color: var(--accent); color: var(--primary); }
.btn-accent:hover { background-color: var(--accent-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-whatsapp { background-color: var(--success); color: #fff; }
.btn-whatsapp:hover { background-color: var(--success-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.header {
  position: fixed; top: 0; left: 0; width: 100%;
  background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  z-index: 1000; border-bottom: 1px solid var(--border); transition: var(--transition);
}
.header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--primary); }

.hero {
  padding-top: 140px; padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  display: flex; align-items: center; min-height: 90vh;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; }
.hero-image img { width: 100%; height: 600px; object-fit: cover; border-radius: 1.5rem; box-shadow: var(--shadow-lg); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: var(--surface); padding: 2.5rem; border-radius: 1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--accent); }
.feature-icon { width: 50px; height: 50px; background-color: var(--surface-alt); color: var(--primary); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--surface); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border); display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-img { height: 240px; width: 100%; object-fit: cover; border-radius: 0; }
.service-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.service-content p { color: var(--text-muted); flex: 1; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-top: 4rem; }
.step-item { text-align: center; }
.step-number { width: 60px; height: 60px; background-color: var(--primary); color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }

.faq-container { max-width: 800px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; font-size: 1.125rem; font-weight: 600; color: var(--primary); background: none; font-family: var(--font-display); }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s ease; color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 800px; margin-top: 1rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; margin-top: 3rem; }
.contact-info { background: var(--primary); color: #fff; padding: 3rem; border-radius: 1rem; }
.contact-info h3 { color: #fff; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-top: 2rem; }
.info-item-icon { color: var(--accent); font-size: 1.5rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--primary); }
.form-control { width: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; font-family: inherit; font-size: 1rem; transition: var(--transition); background-color: var(--surface); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 25, 44, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

.footer { background-color: var(--primary); color: #fff; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer h4 { color: #fff; font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; }

.internal-hero { padding-top: 140px; padding-bottom: 4rem; background-color: var(--primary); color: #fff; text-align: center; }
.internal-hero h1 { color: #fff; margin-bottom: 1rem; }
.internal-hero p { color: rgba(255, 255, 255, 0.8); font-size: 1.25rem; max-width: 600px; margin: 0 auto; }
.content-block { max-width: 800px; margin: 0 auto; }
.content-block ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); }

@media (max-width: 992px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-image img { height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; background-color: var(--surface); flex-direction: column; padding: 2rem; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
}


/* ==========================================================================
   PREMIUM REDESIGN (CIVITATIS STYLE)
   ========================================================================== */
:root {
  --brand-pink: #e3004b; /* Civitatis pink */
  --brand-pink-hover: #c40040;
  --dark-gray: #333333;
}

/* NEW HEADER */
.header.civi-header {
  background-color: var(--brand-pink);
  border-bottom: none;
  backdrop-filter: none;
}
.header.civi-header .logo {
  color: #fff;
}
.header.civi-header .logo span {
  color: #fff;
}
.header.civi-header .nav-links a {
  color: #fff;
}
.header.civi-header .nav-links a:hover,
.header.civi-header .nav-links a.active {
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid #fff;
}
.header.civi-header .btn-primary {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff !important;
}
.header.civi-header .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
}
.header.civi-header .mobile-menu-btn {
  color: #fff;
}

/* NEW HERO SECTION */
.hero.civi-hero {
  padding-top: 80px; /* Header height */
  padding-bottom: 0;
  min-height: 80vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1552832230-c0197dd311b5?auto=format&fit=crop&w=1920') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.civi-hero-content {
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 0 1.5rem;
  margin-top: -50px;
}
.civi-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.civi-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* SEARCH BAR */
.search-bar-civi {
  display: flex;
  background: #fff;
  border-radius: 3rem;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  max-width: 800px;
  margin: 0 auto;
}
.search-bar-civi input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
}
.search-bar-civi .btn-search {
  background-color: var(--brand-pink);
  color: #fff;
  border: none;
  border-radius: 3rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-bar-civi .btn-search:hover {
  background-color: var(--brand-pink-hover);
}

/* TRUST BAR */
.trust-bar-civi {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-bar-grid {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-item svg {
  width: 24px;
  height: 24px;
}

/* DESTINATIONS GRID */
.destinations-section {
  padding: 5rem 0;
  background-color: #f5f5f5;
}
.destinations-header {
  text-align: center;
  margin-bottom: 3rem;
}
.destinations-header h2 {
  font-size: 2.5rem;
  color: var(--dark-gray);
  font-weight: 400; /* As in Civitatis */
}
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.destination-card {
  position: relative;
  height: 280px;
  border-radius: 0; /* Square edges as in reference */
  overflow: hidden;
  display: block;
}
.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.destination-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.destination-card:hover img {
  transform: scale(1.05);
}
.destination-name {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  z-index: 2;
  margin: 0;
}

/* NEW FOOTER */
.footer.civi-footer {
  background-color: var(--dark-gray);
  padding: 4rem 0 2rem;
  color: #ccc;
}
.footer.civi-footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}
.footer.civi-footer a {
  color: #ccc;
}
.footer.civi-footer a:hover {
  color: #fff;
}
.civi-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 3rem;
}
.civi-footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.payment-methods {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.payment-methods img {
  height: 24px;
  background: #fff;
  padding: 2px 4px;
  border-radius: 4px;
}
.social-links {
  display: flex;
  gap: 0.5rem;
}
.social-icon {
  width: 32px;
  height: 32px;
  background: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s ease;
}
.social-icon:hover {
  background: var(--brand-pink);
}

@media (max-width: 992px) {
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .civi-footer-grid { grid-template-columns: 1fr 1fr; }
  .civi-footer-bottom-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-grid { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
@media (max-width: 768px) {
  .destinations-grid { grid-template-columns: 1fr; }
  .civi-footer-grid { grid-template-columns: 1fr; }
  .civi-footer-bottom-grid { grid-template-columns: 1fr; }
  .search-bar-civi { flex-direction: column; border-radius: 1rem; padding: 1rem; }
  .search-bar-civi .btn-search { border-radius: 0.5rem; width: 100%; justify-content: center; }
  .civi-hero-title { font-size: 2rem; }
}
