/*
 * style.css - Archivo principal de estilos y metadatos del tema
 */
/*
Theme Name: Sydamerikaresor Theme
Theme URI: https://example.com/basic-responsive-theme/
Author: Marco Antonio Aguilar Gomez
Author URI: https://example.com/
Description: Un tema básico de WordPress con menú responsive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basic-responsive-theme
Tags: custom-menu, responsive-layout, one-column, two-columns, right-sidebar
*/

:root {
  --primary-color: #f7e08d;
  --secondary-color: #10271a;
  --info-color: #858f77;
  --danger-color: #92140c;
  --title-color: #181618;
  --main-title-color: #d8d2b3;
  --text-color: #333840;
  --text-color-footer: #597464;
  --bg-color-body: #e1d4b8;
  --bg-color-content: #fbf9f7;
  --font-size: 18px;
  --spacing: 20px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sen", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color-body);
  font-size: var(--font-size);
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--title-color);
  font-family: "Cormorant Garamond", serif;
}
h1 {
  font-family: "Cormorant Garamond", serif;
  color: var(--main-title-color);
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 2.8rem;
}
h2 {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 3rem;
  margin-bottom: 15px;
}
h3 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 2.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 2.2rem;
  margin-bottom: 8px;
}

h3 a {
  font-size: 2rem;
  font-weight: bold;
  line-height: 2.4rem;
  color: var(--title-color);
  text-decoration: none;
}
h3 a:hover {
  color: var(--info-color);
  transition: all 0.3s ease;
}

a {
  color: #10271a;
  font-weight: bold;
  text-decoration: underline;
}

a:hover {
  color: var(--info-color);
}

ol,
ul {
  padding-left: 30px;
  margin-bottom: 15px;
}
p {
  margin-bottom: 15px;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.site-header {
  background-color: var(--secondary-color);
  padding: 15px 0;
  position: relative;
  height: fit-content;
}
/* .site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/static/clouds-bg.png);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
} */
.site-header .container-branding {
  position: relative;
  z-index: 2;
  width: 80%;
  margin: 0 auto;
}
.site-branding {
  display: grid;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: 1fr 2fr 1fr;
}

.site-title {
  margin: 0;
  padding: 15px 0px;
}

.site-title a {
  color: #333;
}
.site-logo a {
  color: var(--main-title-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}
.site-logo a img {
  width: 50px;
}
.title-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  height: calc(100% - 45px - 160px); /*+++ 45px of header + 160px of carousel */
  text-align: center;
}
body.home .site-header {
  height: 50vh;
  min-height: 400px;
}
/* body.page .site-header {
  height: 255px;
} */

/* Menú principal */
.main-navigation {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

.menu-toggle {
  display: none;
  background-color: transparent;
  border: 1px solid #ddd;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
}

.main-menu {
  list-style: none;
  display: flex;
  margin: 0;
  gap: 25px;
  height: 55px;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--main-title-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.main-menu a:hover {
  border-bottom: 5px solid var(--main-title-color);
}

.main-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.main-menu li:hover > .sub-menu {
  display: block;
}

.main-menu .sub-menu a {
  padding: 10px 20px;
}
.contact-btn-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Contenido principal */
body.home .site-content {
  margin-top: 190px;
}
body.single .site-content {
  margin-top: 100px;
}
body.page .title-page-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  text-align: center;
  height: calc(100% - 45px);
}
.site-content {
  padding-top: 40px;
}

.content-area {
  float: left;
  width: 70%;
  padding-right: 30px;
}

.widget-area {
  float: right;
  width: 30%;
  padding-left: 30px;
}

/* Footer */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--title-color);
  padding: 30px 0;
  clear: both;
}

footer .site-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
  padding: 20px 0px;
}
.links-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  justify-content: space-evenly;
}
.links-info .links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.links-info div {
  width: 100%;
  max-width: 280px;
}
.links-info .links .button {
  text-align: center;
  justify-content: space-evenly;
}
.links-info a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
footer a:not(.button) {
  color: var(--primary-color);
  text-decoration: none;
}
footer .links-info a:not(.button) {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
footer .site-logo a {
  margin-bottom: 25px;
}
footer p {
  color: var(--text-color-footer);
}
footer .copyright {
  border-top: 1px solid var(--title-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
footer .info-footer .logo-footer {
  color: var(--main-title-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}
footer .info-footer .logo-footer img {
  width: 50px;
}
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: var(--main-title-color);
}
/* Estilos de posts */
.post {
}

.post-title {
  margin-bottom: 15px;
}

.post-meta {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.post-content {
  margin-bottom: 20px;
}

/* Comentarios */
.comments-area {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.comment-list {
  list-style: none;
}

.comment {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

/* Sidebar */
.widget {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Paginación */
.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.pagination .current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
/* Utilidades */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.vertical-line {
  width: 1px;
  height: 80px;
}
.bg-primary {
  background-color: var(--primary-color);
}
.bg-secondary {
  background-color: var(--secondary-color);
}
.bg-info {
  background-color: var(--info-color);
}
.bg-white {
  background-color: #fff;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-70 {
  opacity: 0.7;
}
/*++++ Carousel - START +++++++++++++++++++++++++++++++++++++++++++++++++++++ */
.carousel-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: absolute;
  bottom: -220px;
  padding: 40px 0;
}

.carousel-track {
  display: flex;
  width: calc(263px * 14); /* 5 imágenes originales + 5 duplicadas */
  animation: scroll 80s linear infinite;
}

.carousel-slide {
  min-width: 263px;
  height: 350px;
  padding: 0px;
  margin: 0px 30px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
  background-color: var(--bg-color-content);
}

/* Responsive para Tablet */
@media (max-width: 992px) {
  .carousel-track {
    width: calc(230px * 14);
    /* 3 imágenes en tablet * 10 */
  }

  .carousel-slide {
    min-width: 230px;
    margin: 0px 20px;
    height: 300px;
  }
}

/* Responsive para Móvil */
@media (max-width: 576px) {
  .carousel-track {
    width: calc(160px * 14); /* 14 images of 160px */
  }

  .carousel-slide {
    min-width: 160px;
    margin: 0px 14px;
    height: 220px;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-320px * 7)); /* 5 imágenes originales */
  }
}

/* Ajuste para responsive en las animaciones */
@media (max-width: 992px) {
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-220px * 14)); /* 5 grupos de 3 imágenes */
    }
  }
}

@media (max-width: 576px) {
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-170px * 14)); /* 5 grupos de 2 imágenes */
    }
  }
}
/*+++++++++++++++++ Carousel - END +++++++++++++++++++++++++++++++++++ */
.departures-list {
  padding-top: 60px;
  padding-bottom: 60px;
}
.departures-list .posts-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
}
.departures-list .posts-list .post-item {
  display: flex;
  text-decoration: none;
  font-weight: unset;
}
.departures-list .posts-list .post-item:hover {
  text-decoration: none;
  color: unset;
}
.departures-list .posts-list .post-item .part-ticket {
  background-color: #fff;
  border-radius: 0px 10px 10px 0px;
  padding: 30px;
  margin-left: 30px;
}
.departures-list .posts-list .post-item .info-post {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 60px 40px 60px 0px;
  border-radius: 10px 0px 0px 10px;
  background-color: var(--bg-color-content);
  transition: all 0.3s ease;
}
.departures-list .posts-list .post-item:hover .info-post {
  background-color: #fff;
}

.departures-list .posts-list .post-item .info-post img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  margin-left: -30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.departures-list .posts-list .post-item:hover .info-post img {
  transform: translateX(10px);
}
.departures-list .price-post {
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background-color: var(--info-color) !important;
  color: #fff;
  margin-left: 0px !important;
}
.departures-list .price-post .date-departure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.departures-list .price-post .date-departure .day {
  font-size: 3rem;
  font-weight: bold;
}
.departures-list .price-post .date-departure .month-year {
  font-size: 1.6rem;
}
.departures-list .price-post hr {
  width: 100%;
  opacity: 0.3;
}
.departures-list .price-post .price-box {
  text-align: right;
}
.departures-list .price-post .price {
  font-size: 1.4rem;
}
.departures-list .divider {
  position: relative;
}
.departures-list .divider {
  width: 15px;
  min-width: 15px;
  background: url(/static/dots-tickets.svg) center center;
  background-repeat: repeat-y;
  background-size: contain;
}
.date-price-spot-list {
  display: flex;
  flex-direction: column;
}
.date-price-spot-list .date-price-spot {
  display: flex;
  flex-direction: column;
  gap: 0px;
  border-top: 1px solid #ffffff4f;
  padding: 10px 0px;
}
.date-price-spot-list .date-price-spot .date-price {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
.date-price-spot-list .date-price-spot .date-price-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  line-height: 1.6rem;
}
.date-price-spot-list .date-price-spot .date-price-box .date {
  font-size: 1.2rem;
}
.date-price-spot-list .date-price-spot .date-price-box .price {
  font-size: 1.3rem;
}
.date-price-spot-list .date-price-spot .slots-box span {
  display: inline-block;
  padding: 0px 7px;
  font-weight: bold;
  margin-left: 9px;
  margin-right: 19px;
  color: var(--info-color);
  border-radius: 6px;
  background-color: #fff;
}
.date-price-spot-list .date-price-spot .slots-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.date-price-spot-container {
  width: 100%;
}
.date-price-spot-container h4 {
  color: #fff;
}
.date-price-spot-container .view-more {
  text-align: right;
}
/*+++++++ header for posts +++++++++++++++++++++++++++++++++++++++++ */
.header-post-container {
  display: grid;
  align-items: center;
  align-content: center;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-top: 50px;
  margin-bottom: -100px;
}
.header-post-container .img-post {
  width: 100%;
  height: 100%;
}
.header-post-container .img-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
.booking-departures-container {
  background-color: var(--info-color) !important;
  padding: 20px;
  height: fit-content;
  border-radius: 10px;
}
.booking-departures-container h2 {
  color: #fff;
  padding-left: 20px;
}
.booking-departures-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 25px;
  color: #fff;
  position: relative;
}
.booking-departures-list .booking-departures {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 10px;
  transition: all 0.3s ease;
}
.booking-departures-list .booking-departures:hover {
  background-color: #0000001a;
}

.booking-departures-list .booking-departures .date-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 245px;
}
.booking-departures-list .booking-departures .date-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.booking-departures-list .booking-departures .date-icon {
  width: 50px;
  text-align: center;
}
.booking-departures-list .booking-departures .date {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 2rem;
}
.booking-departures-list .booking-departures .slots-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.booking-departures-list .booking-departures .slots-box .amount {
  width: 50px;
}
.booking-departures-list .booking-departures .slots-box span {
  font-size: 1.2rem;
  padding: 0px 5px;
  font-weight: bold;
  color: var(--info-color);
  border-radius: 6px;
  background-color: #fff;
  width: 32px;
  text-align: center;
  display: block;
  margin: auto;
}
.booking-departures-list .booking-departures .slots-box .full span {
  background-color: var(--danger-color);
}
.booking-departures-list .booking-departures .slots-box div.full {
  color: var(--danger-color);
}

.booking-departures-list .booking-departures .price-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-left: auto;
  gap: 10px;
}
.booking-departures-list .booking-departures .price-box .price {
  font-size: 1.4rem;
  font-weight: bold;
}
.booking-departures-list .booking-departures .booking-box .button {
  min-width: 118px;
}

.header-post-container .tickets-left {
  background-color: var(--bg-color-content);
  border-radius: 10px;
  padding: 30px 15px 10px 15px;
  display: flex;
  justify-content: space-around;
  margin-top: -25px;
  font-size: 1.2rem;
}
.header-post-container .tickets-left span {
  font-size: 1.6rem;
  font-weight: bold;
}

/*+++++ Content single post +++++++++++++++++++++++++++++++++++++++++ */
.post-with-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}
.post-with-form .form-container .form {
  background-color: var(--bg-color-content);
  padding: 25px;
  border-radius: 10px;
}
.post-with-form .logo-sydamerikaresor img {
  width: 200px;
  margin: auto;
}
.form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.box-white {
  background-color: var(--bg-color-content);
  padding: 25px;
  border-radius: 10px;
}
/*+++++++++++ MEDIA QUERIES +++++++++++++++++++++++++++++++++++++++ */
/*+++++++++++++++++ Responsive +++++++++++++++++++++++++++++++++++ */
@media screen and (max-width: 1024px) {
  .site-header .container-branding {
    width: 100%;
  }
  .post-with-form {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
    line-height: 2.8rem;
  }
  h2 {
    font-size: 2.2rem;
    line-height: 2.4rem;
  }
  .site-header {
    height: fit-content;
  }
  .main-menu a {
    padding: 15px;
    border-bottom: 1px solid #ffffff3d;
  }
  .menu-toggle {
    display: block;
    width: 70px;
    text-align: center;
    border: none;
    padding: 10px 5px;
    margin: 0px;
    color: var(--main-title-color);
  }

  .main-menu {
    display: none;
    flex-direction: column;
  }

  .main-menu.toggled {
    display: flex;
    background-color: var(--secondary-color);
    width: 100%;
    height: 100%;
    padding-top: 12px;
    gap: 0px;
  }

  .main-menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .main-menu li:hover > .sub-menu {
    display: none;
  }

  .main-menu li.focus > .sub-menu {
    display: block;
  }

  .content-area,
  .widget-area {
    float: none;
    width: 100%;
    padding: 0;
  }

  .widget-area {
    margin-top: 40px;
  }
  /*+++++++++++++++++ Carousel - START  */
  .carousel-container {
    bottom: -180px;
  }
  /*+++++++++++++++++ Carousel - END  */
  body.home .site-content {
    margin-top: 140px;
  }
  .site-header .site-branding .contact-btn-header {
    display: none;
  }
  .site-logo a {
    font-size: 1.4rem;
  }
  .site-branding {
    grid-template-columns: 4fr 1fr;
  }
  .main-navigation {
    position: absolute;
    top: -10px;
    left: 0px;
    flex-direction: column;
    align-items: flex-end;
  }
  .title-container {
    height: calc(100% - 60px - 100px);
  }

  .site-header .container-branding {
    width: 100%;
    padding: 0 15px;
  }
  footer .site-info {
    grid-template-columns: 1fr;
  }
  .links-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .departures-list .posts-list {
    gap: 60px;
  }
  .departures-list .posts-list .post-item {
    flex-direction: column;
  }
  .departures-list .posts-list .post-item .info-post {
    flex-direction: column;
    padding: 15px;
    margin: 0px;
    border-radius: 10px 10px 0px 0px;
  }
  .departures-list .posts-list .post-item .info-post img {
    width: 100%;
    height: 200px;
    margin-top: -50px;
    margin-left: 0px;
  }
  .departures-list .posts-list .post-item .part-ticket {
    padding: 20px;
  }
  .departures-list .price-post {
    gap: 10px;
  }

  .header-post-container {
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 20px;
    margin-bottom: 0px;
  }
  /* .header-post-container .detail-post {
    flex-direction: column;
    gap: 0px;
  }
  .header-post-container .detail-post hr {
    display: block;
    margin: 15px 0px;
  }
  .header-post-container .detail-post .vertical-line {
    display: none;
  }
  .header-post-container .detail-post .date-departure .date {
    font-size: 1.6rem;
    line-height: 1.8rem;
  }
  .header-post-container .detail-post .date-departure .days {
    font-size: 1.2rem;
  }
  .header-post-container .detail-post .price {
    font-size: 2rem;
    line-height: 2.2rem;
  } */
  body.single .site-content {
    margin-top: 0px;
  }
  .booking-departures-list {
    gap: 0px;
  }
  .departures-list .divider {
    width: 100%;
    height: 15px;
    min-width: 15px;
    background: url(/static/dots-tickets-hor.svg) -15px center;
    background-repeat: repeat-x;
    background-size: contain;
  }
  .departures-list .posts-list .post-item .price-post {
    border-radius: 0px 0px 10px 10px;
  }
  .booking-departures-list .booking-departures {
    flex-direction: column;
    padding: 15px 0px;
    gap: 0px;
    border-top: 1px solid #ffffff33;
  }
  .booking-departures-list .booking-departures .date-slot {
    width: 100%;
  }
  .booking-departures .vertical-line {
    display: none;
  }
  .booking-departures-list .booking-departures .price-box {
    justify-content: flex-end;
  }
  .booking-departures-list .booking-departures .booking-box {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
  .booking-departures-list .booking-departures .booking-box .button {
    min-width: 180px;
  }
}
