/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b2e;
  --navy-light: #1a2d45;
  --teal: #1ab3c8;
  --teal-dark: #0e9aad;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #888;
  --text: #333;
  --font: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--white);
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.top-bar-contact {
  display: flex;
  gap: 30px;
  align-items: center;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.top-bar-contact a:hover { color: var(--teal); }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon {
  position: relative;
  font-size: 20px;
  color: var(--navy);
}

.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--teal);
  color: white;
  font-size: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.navbar-logo img { height: 50px; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-menu a {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 20px 22px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: rgba(255,255,255,0.1);
}

.navbar-search {
  color: white;
  font-size: 16px;
  padding: 20px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  transition: all 0.3s;
}

/* ===== HEADER (top-bar + navbar combined) ===== */
.site-header { position: sticky; top: 0; z-index: 1000; }

/* ===== HERO / SLIDER ===== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.88) 45%, transparent 70%);
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  max-width: 480px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 15px;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--navy-light); }

.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-teal:hover { background: var(--teal-dark); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #555;
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-dark:hover { background: #333; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 60px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,25,45,0.45);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }

.page-hero-actions {
  display: flex;
  gap: 8px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  padding-bottom: 16px;
  margin-bottom: 40px;
  position: relative;
}

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

/* ===== SERVICES SECTION (Inicio Sec 2) ===== */
.services-section {
  padding: 70px 60px;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  cursor: pointer;
}

.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #555;
}

.service-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.service-includes {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 12px;
  color: #555;
}

.service-features li::before { content: '✓ '; color: var(--teal); }

/* ===== MARKETING SECTION (Inicio Sec 3) ===== */
.marketing-section {
  padding: 70px 60px;
  background: var(--gray-light);
}

.marketing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.marketing-grid.reverse { direction: rtl; }
.marketing-grid.reverse > * { direction: ltr; }

.marketing-images {
  position: relative;
}

.marketing-images-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.marketing-images-stack img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.marketing-images-stack img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}

.marketing-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.marketing-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.marketing-accent {
  width: 50px; height: 3px;
  background: var(--teal);
}

/* ===== ATREVETE SECTION (Inicio Sec 4) ===== */
.atrevete-section {
  position: relative;
  padding: 80px 60px;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.atrevete-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,25,45,0.6);
}

.atrevete-content {
  position: relative;
  z-index: 1;
  color: white;
}

.atrevete-content h2 {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.atrevete-content p {
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 28px;
  opacity: 0.9;
}

/* ===== TOURS LIST (Tours Privados) ===== */
.tours-section {
  padding: 60px;
}

.tours-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 13px;
  color: #666;
}

.tours-filter-bar select {
  padding: 8px 14px;
  border: 1px solid #ccc;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tour-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  cursor: pointer;
}

.tour-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.tour-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.tour-card-body { padding: 20px; }

.tour-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: var(--navy);
}

.tour-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #555;
}

.tour-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tour-includes {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.tour-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 12px;
  color: #555;
}

.tour-features li::before { content: '✓ '; color: var(--teal); }

/* ===== TOUR DETAIL ===== */
.tour-detail-section {
  padding: 60px;
}

.tour-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.tour-gallery-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  margin-bottom: 10px;
}

.tour-gallery-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tour-gallery-thumbs img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.tour-gallery-thumbs img:hover,
.tour-gallery-thumbs img.active { opacity: 1; }

.thumb-nav {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  padding: 4px;
  flex-shrink: 0;
}

.tour-info p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.tour-specs {
  margin-bottom: 20px;
}

.tour-specs table {
  width: 100%;
  border-collapse: collapse;
}

.tour-specs td {
  padding: 6px 0;
  font-size: 14px;
  vertical-align: top;
}

.tour-specs td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 160px;
}

.tour-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: 13px;
  color: #555;
}

.tour-amenities li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tour-amenities li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== RELATED PRODUCTS ===== */
.related-section {
  padding: 60px;
  background: var(--gray-light);
}

.related-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.related-card {
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.related-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card-body {
  padding: 16px;
}

.related-card-body h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

/* ===== GALLERY PAGE ===== */
.gallery-section {
  padding: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.85; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 70px 60px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 40px 24px;
  text-align: center;
}

.contact-card-icon {
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-card p, .contact-card a {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.contact-map {
  width: 100%;
  height: 450px;
  border: none;
  margin-bottom: 60px;
}

.contact-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.contact-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--teal);
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-info {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 13px;
}

.footer-info a:hover { opacity: 0.85; }

.footer-social a {
  color: white;
  font-size: 18px;
  margin-left: 12px;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--teal);
  color: white;
  width: 40px; height: 40px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 500;
}

.scroll-top.visible { opacity: 1; pointer-events: all; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,25,45,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.search-overlay.open { display: flex; }

.search-overlay form {
  display: flex;
  gap: 0;
  width: 600px;
  max-width: 90vw;
}

.search-overlay input {
  flex: 1;
  padding: 16px 20px;
  font-size: 18px;
  border: none;
  outline: none;
  font-family: var(--font);
}

.search-overlay button[type="submit"] {
  background: var(--teal);
  color: white;
  border: none;
  padding: 0 24px;
  font-size: 18px;
  cursor: pointer;
}

.search-close {
  position: absolute;
  top: 24px; right: 32px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tours-grid { grid-template-columns: 1fr; }
  .tour-detail-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .navbar { padding: 0 20px; }
  .navbar-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 10px 0; }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 14px 24px; width: 100%; }
  .hamburger { display: flex; }
  .hero { height: 400px; }
  .hero-content { left: 24px; bottom: 40px; }
  .hero-content h1 { font-size: 28px; }
  .hero-overlay { background: linear-gradient(to right, rgba(255,255,255,0.9) 60%, transparent 100%); }
  .services-section, .marketing-section, .tours-section, .tour-detail-section, .related-section, .gallery-section, .contact-section { padding: 40px 20px; }
  .tour-gallery-thumbs img { width: 65px; }
  .services-grid { grid-template-columns: 1fr; }
  .marketing-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 20px; flex-direction: column; align-items: flex-start; }
  .footer-info { flex-direction: column; gap: 12px; }
  .page-hero { padding: 30px 20px; height: 260px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero-content { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== LOGO SVG ===== */
.logo-white,
.logo-navy {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-white svg,
.logo-navy svg {
  height: 52px;
  width: auto;
}

.top-bar .logo-navy svg { height: 46px; }
.navbar .logo-white svg { height: 52px; }
