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

:root {
  /* --primary: #0885ed; */
  --primary:#38BFEF;
  /* --secondary: #c0ee00; */
  --secondary: #C0FF3E;
  --accent: #d4af37;
  --red: #c41e3a;
  --orange: #f39c12;
  --blue: #0062a1;
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray-light: #f1f3f5;
  --gray: #6c757d;
  --black: #212529;
  --maxw: 1200px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height:
    1.6;
  color: var(--text);
  background-color: var(--dark);
}

/* Espaciado para
títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  line-height: 1.3;
  color:
    var(--primary);
}

/* Espaciado para párrafos */
p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

/* Espaciado para listas */
ul,
ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  list-style: none;
}

a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

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

a:focus {
  border-bottom: dashed 2px var(--secondary);
}

/* Espaciado entre líneas de texto */
body {
  line-height:
    1.5;
}

hr {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 20px 0;
}

img {
  width: 100%;
  display: block;
  margin: 0%;
}
.xcontainer{
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.white {
  color: var(--light);
}

.dorado {
  color: var(--accent);
}

.big-ico {
  width: 3rem;
  height: 3rem;
}

.mid-ico {
  width: 26px;
  height: 26px;
}

.blue {
  color: var(--secondary);
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--dark);
}

.box-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content; /* Solo ocupa lo necesario */
}

.idiomas {
    width: 24px;
    height: 24px;
    z-index: 5;
}

.foot-ico {
  width: 20px;
  height: 20px;
}

.container {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--light);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary);
  color: var(--dark);
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  outline: dashed 2px var(--secondary);
  transform: translateY(-3px);
  color: var(--blue);
}

.btn-secondary {
  background:
    var(--secondary);
}

.btn-secondary:hover {
  background: #032a54;
}

.title {
  text-align: center;
  color: var(--dark);
  width: 100%;
  max-width: var(--maxw);
  margin: 3rem auto;
}

.title h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--primary);
}

.title p {
  max-width: 900px;
  margin: 1rem auto;
  color: var(--light);
}

/* __________Header__________ */
header {
  background: var(--primary);
}

.border-l-r {
  border-left: solid 2px #e3e3e3;
  border-right: solid 2px #e3e3e3;
  padding: 0% 25px;
}

.head-line {
  background: var(--primary);
  margin: 0;
  padding: 2px 0%;
  position: sticky;
  top: 0%;
}

.line {
  display: grid;
  grid-template-columns: 130px auto;
  gap: 5px;
  width: 95%;
  height: 46px;
  max-width: var(--maxw);
  margin: 0% auto;
  align-items: center;
  position: relative;
}

.logo {
  width: 100px;
  background: var(--white);
  border-radius: 2px;
  z-index: 15;
  padding: 2px;
  position: absolute;
  top: 0%;
  left: 0%;
}

.line-datos {
  display: grid;
  grid-template-columns: auto 52px;
  align-items: center;
}

/* ________Menu________ */
button.hamburger {
  width: 24px;
  aspect-ratio: 1 / 1;
  display: block;
  cursor: pointer;
  background: var(--white);
  border: none;
  color: var(--primary);
  font-size: 20px;
  z-index: 1001;
  border-radius: 5px;
}

.navbar {
  width: 100%;
}

.menu {
  display: none;
  gap: 5px;
  width: 100%;
  height: 100%;
  background: var(--primary) !important;
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 10;
}

.menu.active {
  display: block;
}

.ghost {
  height: 34px;
}

/* ESTILOS BASE PARA DETAILS/SUMMARY */
details.menu-item summary {
  list-style: none;
  cursor: pointer;
  padding: 5px 0%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 14px;
  font-weight: bold;
  position: relative;
  text-align: center;
}

details.menu-item summary::-webkit-details-marker {
  display: none;
}

details.menu-item summary::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 10px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
}

details.menu-item[open] summary::after {
  transform: rotate(-180deg);
}

/* Estilos para el contenido */
details.menu-item .sub-menu {
  padding: 8px 2px;
  background-color: white;
  z-index: 3;
  box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
  outline: dashed 1px var(--gray-light);
}

details.menu-item .sub-menu .sub-3colm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 95%;
  max-width: var(--maxw);
  padding: 2rem 1rem;
  margin: 0% auto;
}

.nav-link {
  margin: 0;
  padding: 0;
}

.nav-link li {
  width: 100%;
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
  border-bottom: solid 1px var(--gray-light);
}

.nav-link a {
  color: var(--gray);
  position: relative;
  padding-right: 20px;
}

.nav-link a:hover {
  color: var(--primary);
}

.nav-link a:hover::after {
  content: "➜";
  position: absolute;
  right: 0;
  transform: translateX(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-link a:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.sub-3colm .photo-dsc,
.info-menu {
  display: none;
  border-radius: 5px;
}

.three-columns {
  width: 100%;
  /* CORREGIDO: espacio eliminado */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/*______________//Header______________*/
/* __________Tabla__________ */
table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #333;
  font-family: Arial, sans-serif;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

thead {
  background-color: #333;
  color: white;
}

tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

tbody tr:hover {
  background-color: #ddd;
  cursor: default;
}
/* __________//Tabla__________ */
.esnna {
  width: 95;
  max-width: 600px;
  margin: 1rem auto;
}

ol {
  list-style: decimal;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 5fr);
  gap: 2rem;
  /* width: 95%;
  max-width: 1400px; */
}

/* Tours Section */
.tours {
  padding: 3rem 0;
}

.tour-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-btn {
  padding: 8px 16px;
  background: #e9ecef;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size:
    0.9rem;
}

.category-btn.active,
.category-btn:hover {
  background:
    var(--primary);
  color: white;
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tour-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    var(--transition);
}

.tour-card:hover {
  transform: translateY(-5px);
}

.tour-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition:
    var(--transition);
}

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

.tour-info {
  padding: 1.2rem;
}

.tour-info h3 {
  margin-bottom: 0.5rem;
  color:
    var(--primary);
  font-size: 1.2rem;
}

.tour-meta {
  /*display: grid;
grid-template-columns: auto 1fr auto;*/
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size:
    0.9rem;
}

.tour-meta span {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap:
    5px;
  align-items: center;
}

.tour-meta .ico {
  width: 17px;
  height: 17px;
}

.descripcion {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tour-price {
  color:
    var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Why Us Section */
.why-us {
  background: var(--blue);
  color: white;
  padding: 3rem 0;
}

.why-us .titlex {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin: 0% auto;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top:
    1.5rem;
}

.feature {
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: var(--transition);
  text-align: center;
}

.feature h3 {
  color: var(--secondary);
}

.feature:hover {
  transform: translateY(-5px);
}

/* Testimonials */
.testimonials {
  padding: 3rem 0;
  background: #f8f9fa;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial {
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
  /* Necesario
para el pseudo-elemento */
}

.testimonial::before {
  content: '"';
  font-size:
    4rem;
  color: #e9ecef;
  position: absolute;
  top: 10px;
  left: 15px;
}

.testimonial-text {
  position: relative;
  z-index: 1;
}

.author-img {
  width: 40px;
  height: 40px;
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(4, 59,
        114, 0.9), rgba(4, 59, 114, 0.9)) no-repeat center center / cover;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns:
    1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  margin-bottom:
    1rem;
  padding-bottom: 8px;
  font-size: 1.2rem;
}

.footer-section h3::after {
  content: "";
  /* Asegúrate de que el contenido esté aquí si lo necesitas */
  width: 50px;
  /* Ya definido, pero lo mantengo */
  height: 2px;
  /* Ya definido,
pero lo mantengo */
}

.footer-links li {
  margin-bottom: 8px;
}

.contact-info li {
  margin-bottom: 12px;
  gap: 5px;
  /* Esto asume que tienes un display flex o grid
en el li */
}

.social-links {
  display: flex;
  margin-top: 1rem;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
}

.footer-bottom {
  text-align:
    center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* _______________Acordeon_______________*/
.accordion-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.accordion {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.accordion-input {
  display: none;
}

.accordion-label {
  display: flex;
  justify-content: space-between;
  align-items:
    center;
  padding: 1rem;
  background: var(--white);
  cursor: pointer;
  transition:
    all 0.3s ease;
  position: relative;
}

.accordion-label:hover {
  background:
    var(--light);
}

.accordion-label span {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.1rem;
  flex: 1;
  margin-right: 1rem;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--light);
}

.accordion-content p {
  padding: 0 1.5rem;
  margin: 0;
  line-height: 1.6;
  color: var(--gray);
}

/* Cuando
el acordeón está abierto */
.accordion-input:checked+.accordion-label {
  background: var(--primary);
}

.accordion-input:checked+.accordion-label span {
  color: var(--white);
}

.accordion-input:checked+.accordion-label .accordion-icon {
  transform: rotate(180deg);
  color: var(--white);
}

.accordion-input:checked+.accordion-label+.accordion-content {
  max-height:
    500px;
  padding: 1.5rem 0;
}

/* Efecto de borde superior para el primero */
.accordion:first-child {
  border-top: 3px solid var(--primary);
}

/* Responsive
*/
@media (max-width: 768px) {
  .accordion-label {
    padding: 1.2rem;
  }

  .accordion-label span {
    font-size: 1rem;
  }

  .accordion-content p {
    padding: 0 1.2rem;
  }
}

/* _______________//Acordeon_______________*/
/* Responsive Design -
Media Queries */
@media screen and (min-width: 768px) {

  /* Title */
  .title {
    margin: 6rem auto;
  }

  .title h2 {
    font-size: 2.2rem;
    margin: 2rem auto;
  }

  /* Tours */
  .tour-grid {
    grid-template-columns:
      repeat(auto-fill, minmax(360px, 1fr));
  }

  /* Why Us */
  .features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Testimonials
*/
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(auto-fit,
        minmax(250px, 1fr));
  }
}

/* Large devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
  .line {
    display: grid;
    grid-template-columns: 150px auto;
    margin: 0 auto;
    height: 24px;
    gap: 10px;
    max-width: var(--maxw);
  }

  .navbar {
    width: 100%;
    justify-items: center;
  }

  .logo {
    width: 120px;
  }

  button.hamburger {
    display: none;
  }

  .menu {
    display: grid !important;
    grid-template-columns: 150px repeat(6, 1fr);
    margin: 0% auto;
    gap: 5px;
    width: 95%;
    height: 34px;
    max-width: var(--maxw);
    position: static !important;
  }

  details.menu-item summary:hover {
    color: var(--blue);
  }

  /* SOBREESCRIBIR ESTILOS PARA DESKTOP */
  details.menu-item .sub-menu {
    width: 100%;
    position: absolute;
    top: 58px;
    left: 0;
    outline: none;
  }

  details.menu-item .sub-menu .sub-3colm {
    grid-template-columns: 2fr 2fr 1fr;
  }

  .sub-3colm .photo-dsc,
  .info-menu {
    display: block;
  }

  /* Asegurar que el menú siempre sea visible en desktop */
  .menu.active {
    display: grid !important;
  }

  /*______________//Header______________*/
  .cta h2 {
    font-size: 2.2rem;
  }
}

/* Para pantallas menores a 992px (mobile) */
@media screen and (max-width: 991px) {
  .menu:not(.active) {
    display: none;
  }

  .menu.active {
    display: block;
  }
}