/* ============================================================
   RESET
   ============================================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
      sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
  }
  
  /* ============================================================
     CONTENEDOR PRINCIPAL
     ============================================================ */
  .container {
    position: relative;          /* contexto para full-bleed */
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* ============================================================
     HEADER
     ============================================================ */
  .header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    top: 0;
    z-index: 100;
  }
  
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    margin-left: 20px;
  }
  
  .logo-img {
    height: 26px;
    width: auto;
  }
  
  .nav {
    display: flex;
    gap: 32px;
  }
  
  .nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-link:hover {
    color: #ff6b6b;
  }
  
  .auth-buttons {
    display: flex;
    gap: 12px;
  }
  
  .btn-secondary {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .btn-secondary:hover {
    background: #f9fafb;
  }
  
  .btn-primary {
    background: #ff6b6b;
    border: 1px solid #ff6b6b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .btn-primary:hover {
    background: #ff5252;
  }
  
  /* ============================================================
     HERO GALLERY  (full-bleed sin superposiciones)
     ============================================================ */
  .hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    height: 400px;
    margin-bottom: 32px;
  
    /* full-width real y centrado */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
  
    padding: 0;                  /* sin padding para no sumar ancho */
    box-sizing: border-box;
    overflow: hidden;
    z-index: 0;                  /* siempre por debajo del contenido */
  }
  
  .gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* ============================================================
     LAYOUT PRINCIPAL
     ============================================================ */
  .content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  
    position: relative;   /* mantiene contexto, no eleva capa */
    z-index: 0;
  }
  
  /* ============================================================
     BREADCRUMB & TITULAR
     ============================================================ */
  .breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
  }
  
  .breadcrumb-separator {
    margin: 0 8px;
  }
  
  .tour-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
  }
  
  .tour-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .tour-location {
    color: #6b7280;
    font-size: 16px;
  }
  
  .tour-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .rating {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .stars {
    color: #fbbf24;
    font-size: 16px;
  }
  
  .rating-text,
  .participants,
  .duration {
    color: #6b7280;
    font-size: 14px;
  }
  
  /* ============================================================
     GUIDE CARD
     ============================================================ */
  .guide-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 32px;
  }
  
  .guide-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .guide-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
  }
  
  .guide-joined {
    color: #6b7280;
    font-size: 14px;
  }
  
  /* ============================================================
     DESCRIPTION
     ============================================================ */
  .tour-description h2,
  .tour-description h3 {
    color: #111827;
    margin-bottom: 16px;
    margin-top: 32px;
  }
  
  .tour-description h2 {
    font-size: 24px;
    font-weight: 600;
  }
  
  .tour-description h3 {
    font-size: 20px;
    font-weight: 600;
  }
  
  .tour-description p {
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.7;
  }
  
  /* ============================================================
     LISTAS
     ============================================================ */
  .itinerary-list,
  .included-list,
  .not-included-list {
    list-style: none;
    margin-bottom: 24px;
  }
  
  .itinerary-list li,
  .included-list li,
  .not-included-list li {
    color: #4b5563;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
  }
  
  .itinerary-list li:before {
    content: "📍";
    position: absolute;
    left: 0;
  }
  
  .included-list li:before {
    content: "✅";
    position: absolute;
    left: 0;
  }
  
  .not-included-list li:before {
    content: "❌";
    position: absolute;
    left: 0;
  }
  
  /* ============================================================
     MAP SECTION
     ============================================================ */
  .map-section {
    margin: 40px 0;
  }
  
  .map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  
  /* ============================================================
     REVIEWS
     ============================================================ */
  .reviews-section {
    margin: 40px 0;
  }
  
  .reviews-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111827;
  }
  
  .reviews-summary {
    margin-bottom: 32px;
  }
  
  .rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .rating-item {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .rating-label {
    min-width: 120px;
    font-size: 14px;
    color: #6b7280;
  }
  
  .rating-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .rating-fill {
    height: 100%;
    background: #ff6b6b;
    transition: width 0.3s;
  }
  
  .rating-value {
    font-weight: 600;
    color: #111827;
    min-width: 30px;
  }
  
  .review-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  
  .review-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .reviewer-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
  }
  
  .review-rating {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .review-date {
    color: #6b7280;
    font-size: 12px;
  }
  
  .review-text {
    color: #4b5563;
    line-height: 1.6;
  }
  
  /* ============================================================
     RELATED TOURS
     ============================================================ */
  .related-tours {
    margin: 48px 0;
  }
  
  .related-tours h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111827;
  }
  
  .tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }
  
  .tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px #0000001a;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
  }
  
  .tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #00000026;
  }
  
  .tour-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  
  .tour-card-content {
    padding: 16px;
  }
  
  .tour-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    text-decoration: none;
  }
  
  .tour-card-price {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 14px;
  }
  
  /* ============================================================
     SIDEBAR (BOOKING)
     ============================================================ */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .booking-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
  }
  
  .booking-price {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .price-label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .price-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
  }
  
  .booking-info {
    margin-bottom: 24px;
  }
  
  .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  
  .info-label {
    color: #6b7280;
    font-size: 14px;
  }
  
  .info-value {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
  }
  
  .btn-book {
    width: 100%;
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 16px;
  }
  
  .btn-book:hover {
    background: #ff5252;
  }
  
  .booking-note {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
  }
  
  /* ============================================================
     FOOTER
     ============================================================ */
  .footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0 24px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
  }
  
  .footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
  }
  
  .footer-section ul li a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .footer-section ul li a:hover {
    color: #ff6b6b;
  }
  
  .footer-section ul li button.footer-link-button {
    background-color: transparent;
    border: none;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: inherit;
  }
  
  .footer-section ul li button.footer-link-button:hover {
    color: #ff6b6b;
    text-decoration: underline;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
  }
  
  /* ============================================================
     MOBILE STICKY BOOKING FOOTER
     ============================================================ */
  .mobile-sticky-booking-footer {
    display: none;
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* ============================================================
     REVIEWS SUMMARY GRID
     ============================================================ */
  .reviews-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    font-family: sans-serif;
  }
  
  .generic-ratings h4,
  .category-ratings h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
  }
  
  .rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95em;
  }
  
  .rating-row .stars-link {
    min-width: 60px;
    margin-right: 10px;
  }
  
  .rating-row > span:first-child {
    min-width: 100px;
    margin-right: 10px;
    color: #555;
  }
  
  .bar-container {
    flex-grow: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-right: 10px;
    overflow: hidden;
  }
  
  .bar {
    height: 100%;
    background-color: #008294;
    border-radius: 5px;
  }
  
  .score-count {
    min-width: 20px;
    text-align: right;
    color: #555;
  }
  
  .score-value {
    min-width: 35px;
    text-align: right;
    font-weight: bold;
    color: #333;
  }
  
  /* ============================================================
     INFO BOX ALT
     ============================================================ */
  .info-box-alt {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
  }
  
  .info-icon-attention {
    font-size: 24px;
    color: #ff6b6b;
    margin-right: 15px;
  }
  
  /* ============================================================
     TOUR INFO DETAILED SECTION
     ============================================================ */
  .tour-info-detailed-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
  }
  
  .info-column .info-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
  }
  
  .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
  }
  
  .info-icon {
    font-size: 18px;
    color: #6b7280;
    margin-right: 12px;
    width: 24px;
    text-align: center;
  }
  
  .info-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
  }
  
  .info-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    width: 100%;
  }
  
  .info-details {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    width: 100%;
  }
  
  .description-content ul,
  .description-content ol {
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 1em;
  }
  
  .description-content ul li,
  .description-content ol li {
    margin-bottom: 0.5em;
  }
  
  /* ============================================================
     SHOW REVIEWS BUTTON
     ============================================================ */
  .show-reviews-button-container {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  
  .show-reviews-button,
  .btn-view-all-reviews {
    padding: 10px 20px;
    font-size: 1em;
  }
  
  /* ============================================================
     MEDIA QUERIES
     ============================================================ */
  
  /* — 1024 px — */
  @media (max-width: 1024px) {
    .content-wrapper {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  
    .hero-gallery {
      grid-template-columns: 1fr;
      height: auto;
    }
  
    .gallery-grid {
      grid-template-columns: repeat(4, 1fr);
      height: 120px;
    }
  }
  
  /* — 768 px — */
  @media (max-width: 768px) {
    .nav-wrapper {
      flex-direction: column;
      gap: 16px;
    }
  
    .nav {
      order: 3;
      width: 100%;
      justify-content: center;
    }
  
    .tour-title {
      font-size: 24px;
    }
  
    .tour-stats {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .gallery-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .tours-grid {
      grid-template-columns: 1fr;
    }
  
    .booking-card {
      display: none;
    }
  }
  
  /* — 480 px — */
  @media (max-width: 480px) {
    .container {
      padding: 0 16px;
    }
  
    .tour-title {
      font-size: 20px;
    }
  
    .guide-info {
      flex-direction: column;
      text-align: center;
    }
  
    .rating-item {
      flex-direction: column;
      gap: 8px;
      align-items: flex-start;
    }
  
    .rating-bar {
      width: 100%;
    }
  
    .footer-section h4,
    .footer-section ul {
      text-align: center;
    }
  }
  
  /* ============================================================
     FIX MÓVIL (< 768 px)
     ============================================================ */
  @media (max-width: 768px) {
    .header {
      position: static;
      padding: 8px 0;
    }
  
    .nav,
    .auth-buttons {
      display: none;
    }
  
    .logo {
      margin-left: 0;
    }
  
    .hero-gallery {
      grid-template-columns: 1fr;
      height: 25vh;
      min-height: 160px;
    }
  
    .gallery-main,
    .gallery-main-img {
      height: 100%;
    }
  
    .gallery-grid {
      display: none;
    }
  
    .nav-wrapper {
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
    }
  
    .logo {
      margin: 0;
      padding-left: 16px;
    }
  }
  
  /* miniaturas adicionales bajo hero en móvil */
  @media (max-width: 768px) {
    .hero-gallery + .gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4px;
      margin-top: 8px;
    }
  
    .mobile-sticky-booking-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
  
    .mobile-sticky-booking-footer .mobile-booking-prompt {
      font-size: 12px;
      color: #4b5563;
      line-height: 1.3;
      text-align: center;
      flex-grow: 0;
    }
  
    .mobile-sticky-booking-footer .btn-book {
      width: 60%;
      padding: 10px 16px;
      font-size: 14px;
      margin-bottom: 0;
      white-space: nowrap;
    }
  }
  
  /* ============================================================
     REVIEWS SUMMARY GRID (≥ 768 px)
     ============================================================ */
  @media (min-width: 768px) {
    .reviews-summary-grid {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }
  
    .tour-info-detailed-section {
      grid-template-columns: 1fr 1fr;
      gap: 48px;
    }
  }
  