/**
 * Estilos de Tours, Catálogos y Detalle de Tour - Samay Ecuador
 */

@import url('variables.css');

/* =========================================
   HERO CATÁLOGO / REGIONAL / BÚSQUEDA
   ========================================= */
.hero-elegante {
    position: relative;
    height: 60vh;
    background-color: var(--color-oscuro);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    margin-top: calc(-1 * var(--header-height)); 
    padding-top: var(--header-height);
    color: #fff;
}

.hero-elegante::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)); 
    z-index: 1;
}

.hero-elegante .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero-elegante h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-elegante p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.95;
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
}

/* =========================================
   BUSCADOR GLOBAL
   ========================================= */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: -45px;
    padding: 0 5%;
    width: 100%;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 12px 12px 30px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon { font-size: 1.5rem; color: var(--color-turquesa); }

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--color-oscuro);
    outline: none;
    font-weight: 500;
}
.search-input::placeholder { color: #999; font-weight: 400; }

.btn-buscar-form {
    background: var(--color-turquesa);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 1rem;
}
.btn-buscar-form:hover {
    background: var(--color-turquesa-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3);
}

/* =========================================
   SECCIÓN DE TÍTULOS
   ========================================= */
.section-header { text-align: center; margin-bottom: 50px; padding: 0 5%; width: 100%; }
.section-header span {
    color: var(--color-atardecer);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
}
.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--color-oscuro);
    font-weight: 900;
    margin-top: 10px;
}

/* =========================================
   GRID Y TARJETA DE TOUR REUTILIZABLE
   ========================================= */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.tour-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    border: 1px solid #f0f0f0;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}
.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--color-turquesa);
}

.tour-img { height: 250px; position: relative; background: #e0e6ed; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; }

.tour-tag {
    position: absolute; top: 20px; left: 20px;
    background: rgba(255,255,255,0.95);
    color: var(--color-oscuro);
    padding: 6px 15px; border-radius: 30px;
    font-size: 0.75rem; font-weight: 900;
    text-transform: uppercase; backdrop-filter: blur(5px);
    letter-spacing: 1px; z-index: 2;
}

.badge-top {
    position: absolute; top: 20px; right: 20px;
    background: var(--color-atardecer); color: white;
    padding: 6px 15px; border-radius: 30px;
    font-weight: 800; font-size: 0.7rem;
    text-transform: uppercase; box-shadow: 0 5px 15px rgba(231,111,81,0.4);
    letter-spacing: 1px; z-index: 2;
}

.badge-nuevo {
    position: absolute; top: 20px; right: 20px;
    background: var(--color-turquesa); color: white;
    padding: 6px 15px; border-radius: 30px;
    font-weight: 800; font-size: 0.7rem;
    text-transform: uppercase; box-shadow: 0 5px 15px rgba(42,157,143,0.4);
    letter-spacing: 1px; z-index: 2;
}

.tour-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.stars { color: #FFD166; font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }
.stars small { color: #999; font-size: 0.8rem; font-weight: 600; margin-left: 4px; }

.tour-info h3 {
    color: var(--color-oscuro);
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
}

.tour-details { display: flex; flex-wrap: wrap; gap: 10px; color: #555; font-size: 0.85rem; margin-bottom: 15px;}
.tour-details span { display: flex; align-items: center; gap: 6px; font-weight: 600; background: #f4f6f8; padding: 6px 10px; border-radius: 8px;}
.tour-details i { color: var(--color-turquesa); font-size: 1rem; }

.tour-desc { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; flex-grow: 1;}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: auto;
}

.tour-price small { display: block; color: #999; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 2px;}
.tour-price span { font-size: 1.7rem; font-weight: 900; color: var(--color-oscuro); }

.btn-card {
    background: var(--color-atardecer);
    color: white !important;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(231,111,81,0.3);
}
.btn-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(231,111,81,0.5); }

@media (max-width: 1050px) {
    .tours-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .tours-grid { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; padding: 20px; border-radius: 25px; }
    .btn-buscar-form { width: 100%; }
}

/* =========================================
   PÁGINA DETALLE DE TOUR
   ========================================= */
.tour-page { background: var(--color-arena); padding-bottom: 100px; font-family: var(--font-main); }

.tour-hero-full {
    height: 75vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: calc(-1 * var(--header-height));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.tour-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(38, 70, 83, 0.95) 0%, rgba(38, 70, 83, 0.4) 50%, transparent 100%);
}

.tour-hero-content {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px;
    color: white;
}

.badge-hero {
    background: var(--color-atardecer);
    padding: 8px 20px; border-radius: 30px;
    font-weight: 800; font-size: 0.85rem;
    text-transform: uppercase; display: inline-block;
    margin-bottom: 15px; letter-spacing: 1px;
}

.badge-actividad {
    background: var(--color-turquesa);
    padding: 8px 20px; border-radius: 30px;
    font-weight: 800; font-size: 0.85rem;
    text-transform: uppercase; display: inline-block;
    margin-bottom: 15px; margin-left: 10px; letter-spacing: 1px;
}

.tour-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin: 0 0 15px 0;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tour-container {
    max-width: 1250px;
    margin: -40px auto 0;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

.tour-main-info {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

.tour-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 40px;
}

.meta-item { display: flex; align-items: center; gap: 15px; color: var(--color-texto); font-weight: 600;}
.meta-item i { color: var(--color-turquesa); font-size: 1.8rem; background: #eef8f7; padding: 15px; border-radius: 15px; }

.tour-section-title {
    color: var(--color-oscuro);
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.tour-text { line-height: 1.8; color: #555; font-size: 1.05rem; margin-bottom: 50px;}
.includes-box { background: #f8faf9; border-left: 4px solid var(--color-turquesa); padding: 25px; border-radius: 0 15px 15px 0; margin-bottom: 30px; }
.excludes-box { background: #fff5f5; border-left: 4px solid #e63946; padding: 25px; border-radius: 0 15px 15px 0; margin-bottom: 50px; }

.tour-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 30px; }
.tour-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 15px; cursor: pointer; transition: 0.4s; }
.tour-gallery img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* SIDEBAR RESERVA */
.tour-sidebar { position: sticky; top: 110px; height: fit-content; }
.booking-card { background: #fff; padding: 35px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; display: flex; flex-direction: column; }

.escasez-box { background: #fff5f2; border: 1px solid #ffddd2; padding: 15px; border-radius: 15px; margin-bottom: 25px; }
.escasez-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700; color: var(--color-atardecer); }
.escasez-bar-bg { width: 100%; height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.escasez-bar-fill { height: 100%; background: var(--color-atardecer); border-radius: 10px; }
.escasez-limite { font-size: 0.75rem; color: #e63946; margin-top: 8px; font-weight: 700; text-align: center; }

.price-header { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 25px; text-align: center;}
.price-large { font-size: 2.8rem; font-weight: 900; color: var(--color-oscuro); line-height: 1;}
.price-large span { font-size: 1.2rem; color: #888; font-weight: 500; }

.selector-personas { border: 1px solid #eee; border-radius: 15px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; background: #fdfdfd;}
.selector-personas label { font-size: 1rem; font-weight: 700; color: var(--color-oscuro); display: flex; align-items: center; gap: 8px;}
.counter-wrapper { display: flex; align-items: center; gap: 15px; }
.btn-counter { background: #f4f6f8; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; color: var(--color-turquesa); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-counter:hover { background: #e2e8f0; }
.btn-counter:active { transform: scale(0.9); }
#input-personas { width: 40px; text-align: center; border: none; background: transparent; font-size: 1.3rem; font-weight: 900; color: var(--color-oscuro); outline: none; pointer-events: none; }

.total-dinamico-container { background: #f0fdf4; padding: 20px; border-radius: 15px; margin-bottom: 25px; border: 2px solid #dcfce7; display: flex; flex-direction: column; gap: 12px; position: relative;}
.total-row { display: flex; justify-content: space-between; align-items: center; }
.total-row.highlight { color: var(--color-exito); font-size: 1.1rem;}
.total-row.highlight .monto { font-size: 1.8rem; font-weight: 900; }
.etiqueta { font-weight: 700; display: flex; align-items: center; gap: 8px;}

.btn-action-main {
    width: 100%; box-sizing: border-box; padding: 18px;
    background: var(--color-whatsapp); color: white !important; text-align: center;
    text-decoration: none; border-radius: 15px; font-weight: 800; font-size: 1.1rem;
    transition: 0.3s; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25); border: none; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 15px;
}
.btn-action-main:hover { background: var(--color-whatsapp-hover); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4); }

.btn-action-secondary {
    width: 100%; box-sizing: border-box; padding: 15px;
    background: var(--color-oscuro); color: white !important; text-align: center;
    text-decoration: none; border-radius: 15px; font-weight: 700; font-size: 0.95rem;
    transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-action-secondary:hover { background: #1d3540; transform: translateY(-2px); }

.payment-info { background: #fffcf5; padding: 15px; border-radius: 12px; border: 1px solid #ffedd5; margin-top: 25px; text-align: center; }
.diferido-text { color: var(--color-oscuro); font-weight: 800; font-size: 0.85rem; margin: 0 0 10px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.payment-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.payphone-logo { color: var(--color-payphone); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.5px;}
.secure-text { font-size: 0.75rem; color: #888; margin: 0; font-weight: 600; display:flex; justify-content:center; align-items:center; gap:5px;}
.secure-text i { color: var(--color-payphone); } 

@media (max-width: 950px) {
    .tour-container { grid-template-columns: 1fr; margin-top: -20px; }
    .tour-hero-full { height: 55vh; }
    .tour-main-info { padding: 30px; }
}
