/* Favorit font-family declarations
	 Sources are in ../fonts/ - include regular, bold, italic and light variants.
*/

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/FavoritPro-Regular.ttf') format('truetype'),
    url('../fonts/FavoritStd-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/favorit-bold.ttf') format('truetype'),
    url('../fonts/FavoritStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/FavoritStd-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/FavoritStd-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Favorit';
  src: url('../fonts/Favorit Light.ttf') format('truetype'),
    url('../fonts/FavoritStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Base typography using Favorit with sensible fallbacks */
body,
input,
textarea,
button {
  font-family: 'Favorit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #222;
}

/* Variables */

:root {
  --color-a: #cc0e0e;
  --color-b: #000;
  --color-c: #f1f1f1;

  --bg-color: #FFFFFF;
  --text-color: #000000;
}


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

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Favorit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
}


/* Wireframe */
.fifty-fifty {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.threesome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.foursome {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.sixty-forty {
  display: grid;
  grid-template-columns: 6fr 4fr;
}

.seventy-thirty {
  display: grid;
  grid-template-columns: 6fr 3fr;
}

@media screen and (max-width: 500px) {

  .fifty-fifty,
  .threesome,
  .foursome,
  .sixty-forty,
  .seventy-thirty {
    grid-template-columns: 1fr;
    margin-bottom: 35px;
  }
}

@media screen and (max-width: 800px) {

  .seventy-thirty {
    grid-template-columns: 1fr;
    margin-bottom: 35px;
  }
}


@media screen and (max-width: 800px) and (min-width: 501px) {

  .foursome,
  .sixty-forty {
    grid-template-columns: repeat(2, 1fr);
  }
}




.read-width {
  width: clamp(320px, 90%, 1600px);
  max-width: 1600px;
  margin: 30px auto;
}



/* Styling */
@media screen and (max-width: 900px) {
  .mob-hide {
    display: none;
  }
}

.red-head {
  font-size: 1rem;
  color: var(--color-a);

  & a {
    text-decoration: none;
    color: inherit;
  }
}

@media screen and (max-width: 900px) {
  .red-head {
    text-align: center;
  }
}


.top-banner {
  position: relative;
  width: 100%;
  padding: 20px;
  min-height: 30vh;
  background-image: url(../img/top-banner.jpg);
  background-size: cover;
  background-position: center right;

}


.homepage-banner {
  position: relative;
  width: 100%;
  padding: 20px;
  min-height: 30vh;
  background-image: url(../img/top-banner.jpg);
  background-size: cover;
  background-position: center center;

  & .logo-block {

    background: none;

    & .reclamo h1,
    & .reclamo p {
      color: var(--bg-color);
    }
  }

}

.exp-banner {
  position: relative;
  width: 100%;
  padding: 20px;
  min-height: 30vh;
  background-image: url(../img/top-banner-experiencia.jpg);
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
}

.ruta-banner {
  position: relative;
  width: 100%;
  padding: 20px;
  min-height: 30vh;
  background-image: url(../img/top-banner-ruta.jpg);
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;

  & .logo-block {
    width: clamp(300px, 40%, 600px);


    & .reclamo h1,
    & .reclamo p {
      text-transform: none;
    }
  }
}

.reserva-button-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;

  & img {
    height: 15px;
  }
}

.top-banner-nav-block {
  position: absolute;
  top: 10px;
  right: 2%;
  width: 80%;
  display: flex;
  gap: 20px;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}

.homepage-banner .top-banner-nav-block {
  top: 0;
  right: 0;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.65);
}


.top-menu nav ul {

  list-style: none;
  text-align: right;

  & li {

    display: inline-block;
    margin-right: 25px;

    & a {
      position: relative;
      text-transform: uppercase;
      text-decoration: none;
      color: var(--color-b);

      &::after {
        content: '';
        position: absolute;
        width: 80%;
        transform: scaleX(0);
        height: 2px;
        bottom: -6px;
        left: 10%;
        background-color: var(--color-a);
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
      }
    }

    &.activo {

      & a {
        color: var(--color-a);


        &::after {
          transform: scaleX(1);
          transform-origin: bottom left;
        }
      }
    }
  }
}


@media screen and (max-width: 900px) {

  .top-banner-nav-block {
    width: 100%;
    display: block;
    top: 0;
    right: 0;
    background: white;
    padding: 20px 0;
    margin: -10px 0 0 0;
  }

  .homepage-banner .top-banner-nav-block {
    padding: 20px 0 20px;
  }

  .top-menu {
    width: 100%;
  }

  .top-menu nav ul {

    margin-bottom: 20px;
    text-align: center;

    & li {
      display: inline-block;
      margin-left: 5px;
      margin-right: 5px;

    }
  }

  .reserva-button-top {

    display: grid;
    grid-template-columns: 1fr  1fr;

    & div:nth-child(1) {
      display: block;
      text-align: center;
    }

    & div:nth-child(2) {
      text-align: center;
    }
  }
}

.logo-block {

  width: clamp(300px, 40%, 500px);
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);

  & .logo {
    margin: 20px auto 20px 20px;
    width: 120px;

    & img {
      width: 100%;
    }
  }

  & .reclamo {

    margin: 40px auto 40px 40px;

    & h1 {
      font-size: calc(3rem);
      line-height: 1;
      text-transform: uppercase;
      font-weight: 700;
      font-style: italic;
      color: var(--color-b);

      & span {
        color: var(--color-a);
      }
    }

    & p {
      font-size: calc(1rem);
      line-height: 1;
    }
  }

  .cta-buttons {
    margin: 20px auto 20px 20px;
    padding: 10px 15px;
    border-radius: 6px;
  }

}


@media screen and (max-width: 900px) {

  .top-banner,
  .exp-banner,
  .ruta-banner {
    min-height: 30vh;
    padding: 0;
    background-size: cover;
  }


  .logo-block,
  .ruta-banner .logo-block {

    width: 100%;
    padding: 100px 0 20px;

    & .logo {
      margin: 20px auto 20px auto;
      text-align: center;

      & img {
        margin: 0 auto;
      }
    }

    & .reclamo {
      margin: 20px auto 20px auto;
      padding: 0 20px;
      text-align: center;

      & p {
        margin-top:20px;
      }
    }

    & .cta-buttons {
      margin: 20px auto 20px auto;
      text-align: center;
    }
  }

  。reclamo {
    margin-top:20px;
  }

}

button {
  padding: 10px 15px;
  border-radius: 6px;
  background-color: var(--color-a);
  color: var(--bg-color);
  border: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  cursor: pointer;
  transition: filter 0.3s ease-out;

  &.btn-alt {
    background-color: var(--bg-color);
    color: var(--color-b);
    border: 1px solid var(--color-b);
  }

  & span {
    display: inline-block;
    margin-left: 10px;
    transform: translateX(0px);
    transition: transform 0.3s ease-out;
  }

  &:hover {
    filter: brightness(0.85);

    & span {
      transform: translateX(5px);
    }
  }

}


.lined {
  position: relative;
}

.lined::after {
  width: 2px;
  height: 70%;
  background-color: var(--color-c);
  right: 0;
  top: 15%;
  content: '';
  position: absolute;
  display: block;
}

@media screen and (max-width: 900px) {
  .lined::after {
    display: none;
  }
}



.icon-link {

  display: grid;
  grid-template-columns: 120px auto;
  width: clamp(200px, 100%, 400px);
  margin: 0 auto 20px;

  & div:nth-child(1) {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    & img {
      max-width: 60px;
      object-fit: contain;
      object-position: center center;
    }
  }

  & a {
    font-size: 1.3rem;
    color: var(--color-a);
    text-decoration: none;
  }
}

@media screen and (max-width: 900px) and (min-width: 500px) {

  .icon-link {
    grid-template-columns: 30px auto;

    & img {
      margin-top: 30px;
      width: 20px;
    }
  }
}



.separator-box {

  padding: 20px 0;
  background-image: url('../img/separator-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--bg-color);

  & h2 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
  }

  & .sixty-forty>div:nth-child(2) {
    text-align: right;
  }
}


.separator-box-tall {
  height: clamp(300px, 30vh, 500px);
  padding: 20px 0;
  background-image: url('../img/separator-cars.jpg');
  background-size: cover;
  background-position: center right;
  color: var(--bg-color);

  & h2 {
    color: var(--bg-color);
    text-transform: none;
    font-size: 3rem;
    font-weight: 400;
    line-height:1;
  }

  & .sixty-forty>div:nth-child(2) {
    text-align: right;
  }
}

.map-block {

  height: 250px;

  & h4 {
    margin-top: 20px;
    font-weight: 400;
    font-size: 1.6rem;
  }

}


.flex-map {
  width: 100%;
  display: grid;
  grid-template-columns: 340px auto;
  gap: 10px;
}

.map {
  width: 100%;
  height: 100%;

  & img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;

  }
}

.table-holder {
  overflow-y: scroll;
  width: 90%;
  height: 200px;
  margin: 20px 0;
  border-spacing: none;
}

.ruta-list {
  margin: 0 auto;
  width: 90%;

  & tr td,
  & tr th {
    padding: 5px;
    border-bottom: 1px solid var(--color-c);
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
  }

  & tr td {
    text-align: right;
  }
}

@media screen and (max-width: 900px) {

  .map-block {
    height: auto;
  }

  .flex-map {
    grid-template-columns: 1fr;
  }

  .ruta-list {
    width: 100%;
  }

  .table-holder {
    width: 100%;
  }


  .fifty-fifty.modelos-destacados {
    grid-template-columns: 1fr;
  }

  .threesome.ruta-grid {
    gap: 20px;
  }

}

@media screen and (max-width: 800px) {
  .threesome.ruta-grid {
    grid-template-columns: 1fr;
  }
}

.ruta-text {

  padding-right: 20px;

  & p {
    text-align: justify;
    margin-bottom: 20px;
  }

}

.modelos-block {
  border-radius: 10px;
  background-color: var(--page-bg);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  margin: 50px auto;
  padding: 20px;
  width: clamp(250px, 90%, 400px);

  & figure {
    width: 80%;
    height: 170px;
    margin: -40px auto 0;

    & img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center top;
    }
  }

  p {
    font-size: 0.8rem;
    text-transform: uppercase;
  }

  .external-link {
    & a {
      color: var(--color-b);
      border-bottom: 1px solid var(--color-b);
      text-decoration: none;
    }

    & span {
      color: var(--color-a);
    }
  }
}


footer {

  padding: 10px;
  background-color: var(--text-color);
  color: var(--bg-color);
  text-transform: uppercase;

  & a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin: 0 10px;
  }

}

@media screen and (max-width: 900px) {

  footer {
    text-align: center;

    & a {
      display: block;
      margin: 10px auto;
    }
  }

}




/*  Booking form (updated to match site variables and button styles) */
.booking-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 900px;
  margin: 20px auto;
  padding: 18px;
  background: var(--bg-color, #fff);
  border: 1px solid var(--color-c, #e6e6e9);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(11, 15, 20, 0.03);

  & div.full-width {
    grid-column: span 3;
  }

  & div.two-col {
    grid-column: span 2;
  }

}

@media screen and (max-width:900px) {

  .booking-form {
    grid-template-columns: 1fr;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;

    & div.full-width {
      grid-column: span 1;
    }

    & div.two-col {
      grid-column: span 1;
    }

  }

}

.booking-form>div {
  margin-bottom: 12px;
}

.booking-form label:not(.inline) {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color, #222);
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-a, #ccd);
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
  color: var(--text-color, #222);
  min-height: 40px;
  line-height: 1.25;
}

/* Make selects honor padding in Firefox and show a consistent arrow */
.booking-form select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  /* leave space for the custom arrow */
  padding-right: 40px;
  /* simple arrow using inline SVG; fill uses currentColor (inherits text color)
     background-position offset keeps the arrow on the right with some breathing room */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'><path fill='currentColor' d='M1 1l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
}

.booking-form input[type="checkbox"],
.booking-form input[type="radio"] {
  margin-right: 8px;
  /* Use site primary text/ink color for checkbox/radio accents */
  accent-color: var(--color-a);
  width: 18px;
  height: 18px;
  transform: translateY(3px);
}

.booking-form input[type="checkbox"]:focus,
.booking-form input[type="radio"]:focus {
  outline: 3px solid color-mix(in srgb, var(--color-b) 12%, transparent);
  outline-offset: 2px;
}

/* Use site button styles where possible */
.booking-form input[type="button"],
.booking-form button {
  padding: 10px 12px;
  background-color: var(--color-a);
  color: var(--bg-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 400;
}

.booking-form input[type="button"]:hover,
.booking-form button:hover {
  opacity: 0.95;
}

.booking-form input[type="button"]:disabled,
.booking-form button:disabled {
  background-color: color-mix(in srgb, var(--color-a) 30%, white);
  cursor: not-allowed;
  opacity: 0.9;
}

.message {
  padding: 12px;
  border-radius: 6px;
  display: none;
}

.message.success {
  background: color-mix(in srgb, var(--bg-color) 70%, #e9fff0);
  color: var(--color-a);
  border: 1px solid color-mix(in srgb, var(--color-a) 20%, #bff0c9);
}

.message.error {
  background: #fff3f3;
  color: #7a1a1a;
  border: 1px solid #f4c7c3;
}

select:disabled,
input:disabled {
  background: #fafafa;
}

/* Focus outlines for accessibility */
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.booking-form button:focus {
  outline: 3px solid color-mix(in srgb, var(--color-a) 20%, transparent);
  outline-offset: 2px;
}

.terminos-text {
  font-size: 0.6rem;
  line-height: 1.2;
  text-align: justify;
  color: var(--color-b);
}

.gallery {
  display: grid;
  /* Create compact tiles where each column is at most 160px. The grid will fill available space.
     This ensures the longest side of each thumbnail box is 160px. */
  grid-template-columns: repeat(auto-fill, 120px);
  gap: 10px;
  justify-content: center;
}

/* Gallery item styles for thumbnails */
.gallery-item {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  cursor: pointer;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.gallery-item img:focus,
.gallery-item img:hover {
  transform: scale(1.03);
  filter: brightness(0.95);
  outline: none;
}

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

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

.lv-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lv-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.lv-prev, .lv-next, .lv-close {
  position: absolute;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
}

.lv-prev { left: 8px; }
.lv-next { right: 8px; }
.lv-close { top: 8px; right: 8px; font-size: 2.4rem; }

.lv-counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 12px;
}

@media screen and (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .lv-prev, .lv-next { font-size: 1.6rem; }
  .lv-close { font-size: 1.8rem; }
}


@media screen and (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}