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

:root {
  --clr-ocean-deep: hsl(215, 65%, 12%);
  --clr-ocean-blue: hsl(210, 80%, 45%);
  --clr-ocean-light: hsl(205, 70%, 92%);
  --clr-sand-gold: hsl(38, 90%, 55%);
  --clr-sand-dark: hsl(35, 75%, 45%);
  --clr-bg-light: hsl(35, 25%, 97%);
  --clr-text-dark: hsl(215, 40%, 15%);
  --clr-text-muted: hsl(215, 20%, 40%);
  --clr-white: hsl(0, 0%, 100%);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(12, 25, 45, 0.08);
  --shadow-md: 0 8px 24px rgba(12, 25, 45, 0.12);
  --shadow-lg: 0 16px 40px rgba(12, 25, 45, 0.18);

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--clr-text-dark);
  background-color: var(--clr-bg-light);
}

body {
  line-height: 1.6;
}

/* ================== NAVBAR ================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 14px 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo img {
  height: 44px;
  width: auto;
  transition: var(--transition-normal);
}

.navbar.scrolled .navbar-logo img {
  height: 36px;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-white);
  transition: var(--transition-normal);
}

.navbar.scrolled .navbar-brand {
  color: var(--clr-ocean-deep);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--clr-white);
  font-size: 1rem;
  transition: var(--transition-normal);
  position: relative;
  padding-bottom: 4px;
}

.navbar.scrolled .nav-links li a {
  color: var(--clr-text-dark);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-sand-gold);
  transition: var(--transition-normal);
}

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

.nav-cta {
  background-color: var(--clr-sand-gold);
  color: var(--clr-ocean-deep) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
  transition: var(--transition-bounce) !important;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
  background-color: var(--clr-sand-dark);
  color: var(--clr-white) !important;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--clr-white);
  font-size: 1.8rem;
  transition: var(--transition-normal);
}

.navbar.scrolled .nav-toggle {
  color: var(--clr-ocean-deep);
}

/* ================== HERO SECTION ================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--clr-ocean-deep);
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 30, 56, 0.7) 0%, rgba(14, 30, 56, 0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s cubic-bezier(0.2, 1, 0.2, 1) forwards 0.3s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--clr-sand-gold);
  margin-bottom: 16px;
  font-size: 1rem;
  background: rgba(12, 25, 45, 0.4);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--clr-ocean-light);
  font-weight: 400;
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  background-color: var(--clr-sand-gold);
  color: var(--clr-ocean-deep);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
  transition: var(--transition-bounce);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.5);
  background-color: var(--clr-sand-dark);
  color: var(--clr-white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--clr-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-bounce);
}

.btn-secondary:hover {
  background-color: var(--clr-white);
  color: var(--clr-ocean-deep);
  transform: translateY(-4px) scale(1.02);
}

/* ================== GENERAL SECTIONS ================== */
.section {
  padding: 110px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-bg-dark {
  background-color: var(--clr-ocean-deep);
  color: var(--clr-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-heading);
  color: var(--clr-sand-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: inherit;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--clr-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.section-bg-dark .section-subtitle {
  color: var(--clr-ocean-light);
}

/* ================== FEATURES / DESTINO GRID ================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
}

.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  border: 1px solid rgba(12, 25, 45, 0.05);
}

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

.card-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.card:hover .card-img {
  transform: scale(1.08);
}

.card-body {
  padding: 32px;
}

.card-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-sand-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 12px;
}

.card-text {
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ================== TABBED SECTIONS ================== */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.tab-btn:hover {
  transform: translateY(-2px);
  color: var(--clr-ocean-deep);
}

.tab-btn.active {
  background: var(--clr-ocean-deep);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: block;
}

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

.info-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.info-box {
  background: var(--clr-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--clr-sand-gold);
  transition: var(--transition-bounce);
}

.info-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.info-box-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-ocean-deep);
  margin-bottom: 16px;
}

.info-box-text {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
}

.info-box-text ins {
  font-weight: 700;
  color: var(--clr-text-dark);
  text-decoration: none;
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.info-box-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-ocean-blue);
  text-decoration: none;
  transition: var(--transition-normal);
}

.info-box-link:hover {
  color: var(--clr-sand-dark);
  transform: translateX(4px);
}

/* ================== MAPA & COMO LLEGAR ================== */
.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 480px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

.route-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.route-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.route-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--clr-ocean-light);
  color: var(--clr-ocean-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.route-details h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-ocean-deep);
}

.route-details p {
  color: var(--clr-text-muted);
}

/* ================== GALLERY & LIGHTBOX ================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(12, 25, 45, 0.85), transparent);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.2, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--clr-white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  backdrop-filter: blur(4px);
  z-index: 2010;
}

.lightbox-close:hover {
  background: var(--clr-sand-gold);
  color: var(--clr-ocean-deep);
  transform: scale(1.1);
}

/* ================== FOOTER ================== */
.footer {
  background-color: var(--clr-ocean-deep);
  color: var(--clr-ocean-light);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 64px;
  margin-bottom: 64px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--clr-sand-gold);
}

.footer-text {
  color: var(--clr-ocean-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: var(--clr-ocean-light);
  text-decoration: none;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a:hover {
  color: var(--clr-sand-gold);
  transform: translateX(4px);
}

.social-bar {
  display: flex;
  gap: 16px;
  list-style: none;
}

.social-bar li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition-bounce);
}

.social-bar li a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-bar li a:hover {
  background-color: var(--clr-sand-gold);
  transform: translateY(-4px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--clr-sand-gold);
  text-decoration: none;
  font-weight: 600;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
  .map-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 18px 24px;
  }
  .navbar.scrolled {
    padding: 12px 24px;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--clr-white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    clip-path: circle(0% at 100% 0);
    transition: var(--transition-normal);
  }
  .nav-links.open {
    clip-path: circle(150% at 100% 0);
  }
  .nav-links li a:not(.nav-cta) {
    color: var(--clr-ocean-deep) !important;
    font-weight: 600;
    font-size: 1.2rem;
  }
  .nav-links li a:not(.nav-cta):hover,
  .nav-links li a:not(.nav-cta).active {
    color: var(--clr-sand-gold) !important;
  }
  .nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    padding: 80px 24px;
  }
  .section-title {
    font-size: 2.3rem;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
