:root {
  --primary: #31256e;
  --secondary: #f29a2e;
  --accent: #f6d049;
  --dark: #111827;
  --text: #233042;
  --muted: #667085;
  --white: #ffffff;
  --bg: #f6f8fb;
  --card: rgba(255,255,255,0.92);
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--primary), #4637a0);
  color: var(--white);
  font-size: .9rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  align-items: center;
}
.topbar a { font-weight: 700; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(49, 37, 110, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.brand img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.brand strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
}
.brand span {
  font-size: .82rem;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
nav a {
  font-weight: 600;
  color: var(--text);
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -.35rem;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width .25s ease;
}
nav a:hover::after { width: 100%; }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  background: url('assets/portada.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 24, 40, 0.78) 10%, rgba(49, 37, 110, 0.48) 50%, rgba(242, 154, 46, 0.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}
.eyebrow, .section-tag {
  display: inline-flex;
  background: rgba(255,255,255,.14);
  color: var(--white);
  padding: .55rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(12px);
}
.section-tag {
  background: rgba(49, 37, 110, .08);
  color: var(--primary);
}
.hero-copy h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.03;
  margin: 1rem 0;
}
.hero-copy h1 span { color: var(--accent); }
.hero-copy p {
  color: rgba(255,255,255,.92);
  font-size: 1.06rem;
  max-width: 680px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #ffbb61);
  color: #2d2000;
  box-shadow: 0 16px 30px rgba(242, 154, 46, 0.28);
}
.btn-secondary {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.btn.full { width: 100%; }

.hero-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.hero-logo {
  width: 120px;
  margin-bottom: 1rem;
}
.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}
.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.hero-card li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text);
}
.hero-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.section {
  padding: 5.5rem 0;
}
.section-alt {
  background: var(--bg);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}
.section-heading {
  margin-bottom: 2.4rem;
}
.section-heading.center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.section-heading h2,
.section-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin: .8rem 0 1rem;
  color: var(--dark);
}
.section-heading p,
.section-copy p {
  color: var(--muted);
  line-height: 1.8;
}
.about-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.info-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
.info-cards article {
  background: var(--white);
  padding: 1.2rem 1.25rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
}
.info-cards h3 {
  margin: 0 0 .35rem;
  color: var(--primary);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(17,24,39,.07);
  border: 1px solid rgba(49, 37, 110, 0.05);
}
.service-card h3 {
  margin: 0 0 .75rem;
  color: var(--primary);
}
.service-card p { color: var(--muted); line-height: 1.75; margin: 0; }

.featured-trips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.trip-card {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(17,24,39,.09);
}
.trip-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.trip-content {
  padding: 1.2rem;
}
.trip-content h3 { margin: 0 0 .5rem; color: var(--primary); }
.trip-content p { margin: 0; color: var(--muted); line-height: 1.7; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.3rem;
}
.social-links a {
  padding: .85rem 1rem;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 20px rgba(17,24,39,.06);
  font-weight: 700;
  color: var(--primary);
}
.video-wrap iframe,
.map-wrap iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.video-wrap iframe { aspect-ratio: 16 / 9; }
.map-wrap iframe { min-height: 320px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: start;
}
.contact-list {
  display: grid;
  gap: .75rem;
  margin: 1.2rem 0 1.5rem;
}
.contact-list a,
.contact-list span {
  padding: 1rem 1.1rem;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(17,24,39,.05);
  color: var(--text);
}
.contact-form {
  background: var(--white);
  padding: 1.6rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-top: 0; color: var(--primary); }
.contact-form label {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(49,37,110,.12);
  border-radius: 16px;
  padding: .95rem 1rem;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(242,154,46,.14);
}
.form-note {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.footer {
  background: #101828;
  color: rgba(255,255,255,.88);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer strong { color: white; }
.footer p { margin: .35rem 0 0; }
.footer a { color: #ffd47d; }

.floating-whatsapp,
.floating-call {
  position: fixed;
  right: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 35px rgba(17,24,39,.18);
  z-index: 35;
}
.floating-whatsapp {
  bottom: 1rem;
  background: #25d366;
  color: white;
}
.floating-call {
  bottom: 5.3rem;
  background: var(--primary);
  color: white;
  font-size: 1.35rem;
}
.floating-whatsapp svg { width: 28px; height: 28px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  font-size: 1.8rem;
  background: rgba(255,255,255,.16);
  color: white;
  cursor: pointer;
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 980px) {
  .hero-content,
  .grid-2,
  .contact-grid,
  .cards-grid,
  .featured-trips,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content { grid-template-columns: 1fr; }
  .contact-grid,
  .grid-2,
  .cards-grid,
  .featured-trips { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-toggle { display: inline-grid; place-items: center; }
  nav {
    position: absolute;
    top: calc(100% + .5rem);
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }
  nav.open { display: flex; }
  .hero { min-height: auto; }
  .hero-content { padding: 3rem 0; }
  .hero-copy h1 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .container { width: min(100% - 1.2rem, 1180px); }
  .section { padding: 4rem 0; }
  .hero-card,
  .contact-form,
  .service-card,
  .info-cards article { border-radius: 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions,
  .social-links { flex-direction: column; }
  .btn { width: 100%; }
}
