/* tours.css */
/* ════ TOURS PAGE ════ */
.tours-hero{background:linear-gradient(150deg,var(--deep),var(--ocean));padding:calc(var(--nav-h) + 4.5rem) 0 5.5rem;text-align:center}
.tours-hero h1{font-family:var(--ff-display);font-size:clamp(2.5rem,5vw,3.9rem);color:#fff;font-weight:700;margin-bottom:1rem}
.tours-hero p{color:rgba(255,255,255,.7);font-size:1.08rem;max-width:540px;margin:0 auto}
.tours-filter{
  background:var(--white);border-radius:60px;
  display:inline-flex;gap:.25rem;padding:.4rem;
  box-shadow:var(--shadow-md);margin-top:2.2rem;
  flex-wrap:wrap;justify-content:center
}
.filter-btn{padding:.6rem 1.4rem;border-radius:50px;border:none;background:transparent;font-size:.86rem;font-weight:600;color:var(--gray-4);cursor:pointer;transition:var(--transition)}
.filter-btn.active{background:var(--sea);color:#fff;box-shadow:0 4px 16px rgba(26,143,168,.3)}
.filter-btn:hover:not(.active){background:var(--foam);color:var(--sea)}
.tours-full-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2rem;margin-top:3rem}
.tfc{border-radius:var(--radius-lg);overflow:hidden;background:var(--white);box-shadow:var(--shadow-sm);transition:var(--transition);cursor:pointer;border:1px solid transparent}
.tfc:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:var(--foam)}
.tfc-img{height:230px;display:flex;align-items:center;justify-content:center;font-size:5.5rem;position:relative}
.tfc-tag{position:absolute;top:1rem;left:1rem}
.tfc-body{padding:1.7rem}
.tfc-name{font-family:var(--ff-display);font-size:1.35rem;font-weight:700;color:var(--ink);margin-bottom:.5rem}
.tfc-desc{font-size:.87rem;color:var(--gray-4);line-height:1.68;margin-bottom:1.2rem}
.tfc-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--gray-2);padding-top:1.2rem}
.tfc-price{font-family:var(--ff-display);font-size:1.55rem;font-weight:700;color:var(--ocean)}
.tfc-price small{font-family:var(--ff-body);font-size:.77rem;color:var(--gray-3);font-weight:400}


/* ════ PHOTO CAROUSEL on tour cards ════ */
.tfc-img{position:relative;height:230px;overflow:hidden;display:block}
.tfc-carousel{display:flex;height:100%;transition:transform .4s ease;will-change:transform}
.tfc-slide{min-width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:5.5rem;background:var(--gray-1);flex-shrink:0}
.tfc-slide img{width:100%;height:100%;object-fit:cover}
.tfc-car-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.45);color:#fff;border:none;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;z-index:3}
.tfc-img:hover .tfc-car-btn{opacity:1}
@media(hover:none){
  .tfc-car-btn{opacity:.85;width:34px;height:34px}
}
.tfc-car-btn.prev{left:.5rem}
.tfc-car-btn.next{right:.5rem}
.tfc-dots{position:absolute;bottom:.5rem;left:50%;transform:translateX(-50%);display:flex;gap:.3rem;z-index:3}
.tfc-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);transition:.2s;cursor:pointer}
.tfc-dot.active{background:#fff;width:14px;border-radius:3px}

/* ════════════════════════════════════════
   IMAGE PLACEHOLDER SYSTEM
   Gray box shown only when an image is missing.
   Shows the expected filename so it's easy to replace.
════════════════════════════════════════ */
.imgph{position:relative;width:100%;height:100%;background:repeating-linear-gradient(135deg,#e8edf0,#e8edf0 14px,#eef2f5 14px,#eef2f5 28px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--gray-4);overflow:hidden}
.imgph::before{content:'';width:34px;height:34px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.8'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.8'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.5;flex-shrink:0}
.imgph .imgph-name{font-size:.66rem;font-weight:600;letter-spacing:.3px;padding:.2rem .6rem;background:rgba(255,255,255,.75);border-radius:50px;max-width:88%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.imgph.sm::before{width:22px;height:22px}
.imgph.sm .imgph-name{font-size:.58rem}
.imgph.round{border-radius:50%}
.img-cover{width:100%;height:100%;object-fit:cover;display:block}
.img-fill{position:absolute;inset:0;width:100%;height:100%}


/* ===== MOBILE TOURS: clean single-column, attractive full-width cards ===== */
@media(max-width:760px){
  .tours-hero{padding:calc(var(--nav-h) + 2.2rem) 0 2.4rem}
  .tours-hero h1{font-size:clamp(2.1rem,8.5vw,2.8rem)}
  .tours-hero p{font-size:.96rem;max-width:90%}
  .tours-filter{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:.5rem;justify-content:flex-start;
    -webkit-overflow-scrolling:touch;padding:.5rem .2rem;scrollbar-width:none;margin-top:1.3rem}
  .tours-filter::-webkit-scrollbar{display:none}
  .filter-btn{white-space:nowrap;flex:0 0 auto}
  .tours-full-grid{grid-template-columns:1fr !important;gap:1.25rem;margin-top:1.6rem}
  .tfc{border-radius:22px;box-shadow:0 16px 38px -22px rgba(4,40,58,.45)}
  .tfc-carousel,.tfc-img-wrap,.tfc-img{height:215px !important}
  .tfc-body{padding:1.15rem 1.25rem 1.3rem}
  .tfc-name{font-size:1.28rem;line-height:1.15}
  .tfc-desc{font-size:.88rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .tfc-meta{font-size:.8rem}
  .tfc-foot{padding-top:1rem;margin-top:.6rem}
  .tfc-price,.tfc-from{font-size:1.35rem}
  .tfc-foot .btn{padding:.65rem 1rem !important;font-size:.86rem !important}
  .cat-section-title h3{font-size:1.35rem}
}
@media(max-width:400px){
  .tfc-carousel,.tfc-img-wrap,.tfc-img{height:185px !important}
}

/* ===== "Explora Nuestros Tours" — realce llamativo (hero + filtros + cards) ===== */
.tours-hero{position:relative;overflow:hidden}
.tours-hero::before{content:"";position:absolute;top:-40%;left:50%;transform:translateX(-50%);
  width:120%;height:120%;background:radial-gradient(circle at 50% 0%,rgba(0,196,212,.30),transparent 55%);
  pointer-events:none;z-index:0}
.tours-hero > .container{position:relative;z-index:1}
.tours-hero h1{position:relative;display:inline-block}
.tours-hero h1::after{content:"";display:block;width:74px;height:4px;border-radius:4px;margin:1rem auto 0;
  background:linear-gradient(90deg,var(--teal),var(--coral))}
/* segmented filter bar — looks like a polished pill control */
.tours-filter{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(6px);border-radius:50px;padding:.4rem;display:inline-flex;gap:.25rem;margin-top:1.8rem}
.filter-btn{color:rgba(255,255,255,.82)}
.filter-btn:hover:not(.active){background:rgba(255,255,255,.16);color:#fff}
.filter-btn.active{background:#fff;color:var(--ocean);box-shadow:0 6px 18px rgba(0,0,0,.18)}
/* cards pop a little more — feels premium & "obligatorio" */
.tfc{border:1px solid var(--gray-2)}
.tfc:hover{transform:translateY(-10px);box-shadow:0 28px 50px -24px rgba(4,40,58,.5);border-color:var(--teal)}
.tfc-foot .btn{box-shadow:0 6px 16px -6px rgba(224,92,56,.5)}
.cat-section-title h3{position:relative;padding-left:1rem}
.cat-section-title h3::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:5px;height:1.1em;border-radius:3px;background:linear-gradient(var(--teal),var(--sea))}
@media(max-width:760px){
  .tours-filter{display:flex;background:transparent;border:none;backdrop-filter:none;padding:.5rem .2rem;border-radius:0}
  .filter-btn{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18)}
  .filter-btn.active{background:#fff;color:var(--ocean)}
}


/* ════════════════════════════════════════════════════════════
   REDISEÑO MÓVIL DE TARJETAS — estilo tienda premium
   ════════════════════════════════════════════════════════════ */
@media(max-width:760px){
  /* Imagen más alta y protagonista */
  .tfc{border-radius:24px;border:none;box-shadow:0 18px 42px -22px rgba(4,40,58,.5)}
  .tfc-carousel,.tfc-img-wrap,.tfc-img{height:auto !important;aspect-ratio:16/10}
  .tfc-img{aspect-ratio:16/10}
  .tfc-slide{aspect-ratio:16/10}

  /* Cuerpo limpio */
  .tfc-body{padding:1.2rem 1.3rem 1.35rem}
  .tfc-name{font-size:1.42rem;margin-bottom:.4rem;letter-spacing:-.01em}
  .tfc-desc{font-size:.9rem;line-height:1.6;-webkit-line-clamp:2;margin-bottom:1rem}

  /* Pie: precio a la izquierda, botones cómodos al toque */
  .tfc-foot{padding-top:.95rem;gap:.7rem}
  .tfc-price{font-size:1.45rem}
  .tfc-from{font-size:.72rem;color:var(--gray-3);font-weight:500}
  .tfc-foot .btn{min-height:44px}
  .tfc-foot .btn-primary{
    padding:.7rem 1.25rem !important;font-size:.9rem !important;
    border-radius:12px;box-shadow:0 8px 20px -8px rgba(26,143,168,.55)
  }
  .tfc-foot .btn-outline{padding:.7rem .8rem !important;border-radius:12px}

  /* Flechas del carrusel más discretas, dots visibles */
  .tfc-car-btn{width:32px;height:32px;background:rgba(4,40,58,.4);backdrop-filter:blur(4px)}
  .tfc-dots{bottom:.65rem}
  .tfc-dot{width:6px;height:6px}

  /* Título de categoría con más aire */
  .cat-section-title{margin:2.2rem 0 1rem}
}

/* ════════════════════════════════════════════════════════════
   ANIMACIÓN de entrada escalonada de tarjetas (PC y móvil)
   ════════════════════════════════════════════════════════════ */
.tfc{opacity:0;transform:translateY(26px);transition:opacity .55s ease,transform .55s cubic-bezier(.16,1,.3,1),box-shadow .3s,border-color .3s}
.tfc.vis{opacity:1;transform:none}
.tfc.vis:hover{transform:translateY(-10px)}
@media(max-width:760px){.tfc.vis:hover{transform:none}}
/* Si JS no corre, que igual se vean */
.no-anim .tfc{opacity:1;transform:none}
