@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* ===== Amigo Turista green palette ===== */
  --primary-color: #00995e;
  --primary-dark: #036240;
  --primary-light: #0abf75;
  --primary-soft: #e6f5ee;

  --text-dark: #1d293d;
  --text-light: #62748e;
  --extra-light: #fafafa;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Dancing Script", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--primary-color);
  text-align: center;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.section__description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.75rem;
  text-align: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-family: "Roboto", serif;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--primary-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", serif;
  color: var(--text-dark);
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
  background-color: var(--white);
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
}

.nav__logo a img {
  max-width: 140px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--white);
  transition: transform 0.5s;
  z-index: -1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.nav__links .btn {
  color: var(--white);
  background-color: var(--primary-color);
}

/* ===== HERO ===== */
.header__container {
  display: grid;
  gap: 2rem;
  padding-top: 7rem;
}

.header__image img {
  max-width: 600px;
  margin-inline: auto;
  border-radius: 1rem;
}

.header__content img {
  max-width: 50px;
  margin-inline: auto;
  transform: rotate(-10deg);
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.15;
}

.header__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--extra-light);
  overflow: hidden;
}

.about__container {
  display: grid;
  gap: 2rem;
}

.about__image {
  position: relative;
  isolation: isolate;
  max-width: 450px;
  margin-inline: auto;
}

.about__image img {
  border: 0.75rem solid var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  width: 350px;
}

.about__image::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background-color: var(--primary-soft);
  border-radius: 0.5rem;
  transform: rotate(8deg);
  z-index: -1;
}

.about__content .section__header {
  margin-bottom: 1rem;
}

.about__content .section__header span {
  color: var(--primary-color);
}

.about__signature {
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-dark);
  text-align: center;
}

/* ===== RENT A CAR ===== */
.rent__description {
  max-width: 640px;
  margin: 1rem auto 0;
}

.rent__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

/* Card */
.rent__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(29, 41, 61, 0.06);
 
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),

}


/* Media */
.rent__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-soft);
}

.rent__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rent__card:hover .rent__media img {
  transform: scale(1.06);
}

/* Badge */
.rent__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 153, 94, 0.35);
}

.rent__badge--alt {
  background: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.rent__badge--dark {
  background: var(--text-dark);
  box-shadow: 0 4px 12px rgba(29, 41, 61, 0.35);
}

/* Body */
.rent__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}

.rent__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rent__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.rent__subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0;
}

/* Specs */
.rent__specs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(29, 41, 61, 0.07);
  border-bottom: 1px solid rgba(29, 41, 61, 0.07);
}

.rent__specs li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.rent__specs li i {
  font-size: 1.1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Footer / CTA */
.rent__footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.25rem;
}

.rent__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
}

.rent__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 153, 94, 0.3);
}

.rent__cta i {
  font-size: 1rem;
}

/* Responsive */
@media (width > 640px) {
  .rent__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 900px) {
  .rent__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ===== ROUTES (travel cards) ===== */
.rutas {
  padding: 5rem 1rem;
  background: var(--extra-light);
}

.rutas__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.rutas__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.rutas__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;

  color: var(--primary-color);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.rutas__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--text-dark);
}

.rutas__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Grid 2x2 */
.rutas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card (horizontal: foto izquierda, info derecha) */
.ruta-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;

}


.ruta-card:focus-visible {
  transform: translateY(-4px);
 
  outline: none;
}

/* Media */
.ruta-card__media {
  position: relative;
  overflow: hidden;
  background: var(--primary-soft);
  height: 220px;
}

.ruta-card__media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ruta-card:hover .ruta-card__media img {
  transform: scale(1.06);
}

.ruta-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 153, 94, 0.35);
  z-index: 1;
}

.ruta-card__badge--alt {
  background: var(--text-dark);
  box-shadow: 0 4px 12px rgba(29, 41, 61, 0.35);
}

/* Body */
.ruta-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Route endpoints */
.ruta-card__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.ruta-card__endpoint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ruta-card__endpoint i {
  font-size: 0.95rem;
  color: var(--primary-color);
}

.ruta-card__arrow {
  font-size: 1rem;
  color: #b8c0cc;
  flex-shrink: 0;
}

/* Title & desc */
.ruta-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.ruta-card__desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* Meta (con iconos) */
.ruta-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0.75rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(29, 41, 61, 0.07);
}

.ruta-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
}

.ruta-card__meta li i {
  font-size: 0.95rem;
  color: var(--primary-color);
}

/* CTA (sin flecha) */
.ruta-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-soft);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}

.ruta-card:hover .ruta-card__cta {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

/* Responsive */
@media (width > 640px) {
  .rutas__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .ruta-card {
    grid-template-columns: 42% 1fr;
    align-items: stretch;
  }

  .ruta-card__media {
    height: auto;
    align-self: stretch;
  }

  .ruta-card__body {
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    justify-content: center;
  }
}

@media (width > 1024px) {
  .rutas__grid {
    gap: 2rem;
  }

  .ruta-card__title {
    font-size: 1.35rem;
  }
}

/* ===== DESTINATIONS ===== */
.destination {
  background-color: var(--extra-light);
  padding: 5rem 0;
}

.destination__grid {
  margin-block: 4rem 2rem;
  display: grid;
  gap: 1rem;
}

.destination__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: 1.75rem;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  isolation: isolate;
}

.destination__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Zoom sutil de la imagen al hacer hover */
.destination__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 0.6s ease;
}

.destination__card:hover::before {
  transform: scale(1.06);
}

/* Overlay degradado oscuro (bottom → top) */
.destination__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: -1;
}

.destination__card__content {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--white);
}

.destination__card__content h4 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.destination__card__desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.destination__card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.destination__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.destination__tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 153, 94, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ===== REVIEWS ===== */
.review__container {
  display: grid;
  gap: 2rem;
}

.review__image img {
  max-width: 500px;
  margin-inline: auto;
  border-radius: 1rem;
}

.review__content {
  overflow: hidden;
}

.swiper {
  width: 100%;
  margin-top: 2rem;
}

.review__card > span {
  display: inline-block;
  font-size: 5rem;
  color: var(--primary-color);
}

.review__card .section__description {
  margin-bottom: 1rem;
  text-align: left;
}

.review__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.review__card h5 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.review__card > div {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review__card > div > span {
  font-size: 1rem;
  color: goldenrod;
}

/* ===== CONTACT / CTA ===== */
.contact {
  background-color: var(--primary-soft);
}

.contact__description {
  max-width: 600px;
  margin: 1rem auto 0;
}

.contact__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact__info {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
}

.contact__info li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.contact__info li i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* ===== BANNER ===== */
.banner {
  overflow: hidden;
}

.banner__wrapper {
  width: max-content;
  display: flex;
  align-items: center;
  animation: scroll-left 45s linear infinite;
}

.banner__wrapper img {
  width: 300px;
  height: 220px;
  object-fit: cover;
  display: block;
}

@keyframes scroll-left {
  to {
    transform: translateX(-50%);
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--extra-light);
  padding-top: 3rem;
}

.footer__logo {
  margin-bottom: 2rem;
}

.footer__logo img {
  max-width: 150px;
  margin-inline: auto;
}

.footer__links {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__links a {
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__socials a {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.footer__socials a:hover {
  color: var(--primary-color);
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (width > 540px) {
  .tour__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .destination__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: transparent;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    gap: 3rem;
    background-color: transparent;
    transform: none !important;
    box-shadow: none;
    z-index: 1;
  }

  .nav__links a {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
  }

  .nav__links a:hover {
    border-color: var(--primary-color);
  }

  .nav__links .btn {
    color: var(--white);
    background-color: var(--primary-color);
    border-bottom: none;
    padding-bottom: 0.75rem;
  }

  .header__container {
    padding-top: 2rem;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .header__image {
    grid-area: 1 / 2 / 2 / 3;
  }

  .header__content :is(h1, .section__description) {
    text-align: left;
  }

  .header__cta {
    justify-content: flex-start;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__content
    :is(.section__header, .section__description, .about__signature) {
    text-align: left;
  }

  .tour__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .destination__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .review__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .review__image {
    grid-area: 1 / 2 / 2 / 3;
  }

  .review__content :is(.section__subheader, .section__header) {
    text-align: left;
  }

  .review__content .section__header {
    max-width: 400px;
  }

  .footer__links {
    gap: 3rem;
  }
}

@media (width > 1024px) {
  .tour__grid,
  .destination__grid {
    gap: 1.5rem;
  }
}