/* ==========================================================================
   Kristian Transfers - Puente entre el diseno de la web antigua (legacy-sections.css)
   y las vistas PHP: calculadora de precio, tarjetas, resenas reales, FAQ, tablas
   de precios, servicios y soporte. No modifica la portada ni la cabecera.
   ========================================================================== */

/* El menu tiene altura fija: las secciones antiguas no necesitan margenes extra */
.section-title { text-wrap: balance; }
.section-header { max-width: none; margin-left: 0; margin-right: 0; }
.section-header .section-title { max-width: 100%; }

/* Textos de las secciones antiguas: contraste AA sobre fondos claros */
.section-subtitle { color: #4b5563; }

/* En moviles el titulo no necesita los puntos decorativos laterales (se salen de la pantalla) */
@media (max-width: 768px) {
    .section-title { font-size: 1.9rem; letter-spacing: 1px; margin-bottom: 1rem; }
    .section-title::before, .section-title::after { display: none; }
    .section-subtitle { font-size: 1.05rem; }
    .section-header { margin-bottom: 2.5rem; }
}

/* ------------------------------------------------------------ Calculadora de precio */
.finder-section { background: var(--white); padding: 4rem 0 0; }
.finder {
    display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
    background: var(--white); border: 2px solid var(--primary-blue); border-radius: 12px;
    padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.finder-title {
    font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
    color: var(--primary-blue); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.25; margin-bottom: .75rem;
}
.finder-intro p { color: #4b5563; line-height: 1.7; }
.finder-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.finder .field > label { color: var(--primary-blue); font-weight: 700; }
.finder .select { border: 2px solid var(--border-color); border-radius: 8px; }
.finder .select:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(117, 199, 237, .35); }
.finder-result {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px dashed #e5e7eb;
}
.finder-price small { display: block; color: #4b5563; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.finder-price strong { display: block; font-size: 2.3rem; line-height: 1.1; color: var(--primary-blue); font-weight: 800; font-family: 'Montserrat', sans-serif; }
.finder-price span { color: #4b5563; font-size: .85rem; }
@media (max-width: 860px) {
    .finder { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .finder-row { grid-template-columns: 1fr; }
    .finder-result .btn { width: 100%; text-align: center; }
}

/* ----------------------------------------------------------------- Estadisticas */
.stat-number { word-break: keep-all; line-height: 1.1; }
.stat-label { color: #fff; }
@media (max-width: 768px) {
    .stats-section { padding: 2.5rem 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1.25rem .75rem; }
    .stat-icon { font-size: 2rem; margin-bottom: .5rem; }
    .stat-number { font-size: 2.2rem; }
    .stat-label { font-size: .95rem; }
}

/* ------------------------------------------------------------------------ Flota */
.vehicle-card { background: linear-gradient(180deg, #eef5fc 0%, #ffffff 100%); border: 2px solid var(--border-color); }
.vehicle-image { object-fit: contain; padding: 1.25rem 1rem 4.5rem; height: 250px; }
.vehicle-overlay { background: linear-gradient(to top, rgba(10, 31, 68, .95), rgba(10, 31, 68, .0)); }
.vehicle-cap { color: rgba(255, 255, 255, .92); font-size: .9rem; margin-top: .25rem; }
.vehicle-cap i { margin-right: .3rem; color: var(--gold); }
@media (max-width: 480px) {
    .vehicles-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------- Como funciona */
@media (max-width: 900px) {
    .step-arrow { transform: rotate(90deg); }
    .steps-enhanced { gap: 1.5rem; }
    .step-enhanced { max-width: 100%; width: 100%; margin-top: 1rem; }
}

/* -------------------------------------------------------------------- Destinos */
a.destination-card { display: block; text-decoration: none; color: inherit; }
.destination-card .destination-image { height: 200px; }
.destination-stats { color: #b45309; }
@media (max-width: 480px) {
    .destinations-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- Resenas (solo reales) */
.reviews-carousel {
    display: block; overflow: hidden; position: relative; padding: .75rem 0 1.25rem; max-width: 100%;
}
.reviews-carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.reviews-track { display: flex; width: max-content; }
.reviews-group { display: flex; gap: 1.25rem; padding-right: 1.25rem; }
.reviews-marquee .review-card {
    flex: 0 0 auto; width: min(340px, 80vw); min-width: 0; margin: 0; display: flex; flex-direction: column; scroll-snap-align: start;
}
/* Pocas opiniones: fijas y centradas, sin movimiento */
.reviews-marquee.is-static .reviews-track { width: auto; justify-content: center; }
.reviews-marquee.is-static .reviews-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
/* Marquee automatico: se desplaza solo y se pausa con raton o foco */
.reviews-marquee.is-animated {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews-marquee.is-animated .reviews-track {
    animation: reviews-scroll calc(var(--review-count, 6) * 7s) linear infinite;
}
.reviews-marquee.is-animated:hover .reviews-track,
.reviews-marquee.is-animated:focus-within .reviews-track,
.reviews-marquee.is-animated:focus .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Movimiento reducido: sin animacion, scroll manual con scroll-snap y sin duplicado */
@media (prefers-reduced-motion: reduce) {
    .reviews-marquee { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; -webkit-mask-image: none; mask-image: none; }
    .reviews-marquee.is-animated .reviews-track { animation: none; }
    .reviews-marquee .reviews-group[aria-hidden="true"] { display: none; }
}
.review-header { justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.review-author { color: var(--primary-blue); font-size: 1.05rem; }
.review-rating { color: #f59e0b; }
.review-text { flex: 1; border: 0; padding: 0; }
.review-date { color: #4b5563; margin-bottom: 0; }
.review-date i { color: #4285f4; margin-right: .25rem; }
.google-link { margin-top: 1rem; }
.btn-google { max-width: none; width: auto; padding: .75rem 1.5rem; font-size: 1rem; }

/* ------------------------------------------------------------ Descubre Mallorca */
.mallorca-tabs-section .section-header { margin-bottom: 2.5rem; }
.tab-panel[hidden] { display: none; }
.tab-btn { color: var(--primary-blue); }
.tab-btn.active, .tab-btn.is-active { border-bottom-color: var(--gold); }
.tab-btn.is-active i { color: var(--gold); }
.tab-key-points li { padding-left: 2rem; }
.tab-cta { margin-top: 1.5rem; }
.tab-image { aspect-ratio: 3 / 2; min-height: 0; }
.photo-credit {
    position: absolute; right: .6rem; bottom: .5rem; background: rgba(10, 31, 68, .78); color: #fff;
    font-size: .72rem; padding: .15rem .5rem; border-radius: 6px; text-decoration: none;
}
.photo-credit:hover { background: var(--primary-blue); text-decoration: underline; }
@media (max-width: 968px) {
    .tab-image { aspect-ratio: 16 / 10; }
}

/* ------------------------------------------------------------- Sobre Mallorca */
.sobre-mallorca-section-enhanced { padding: 5rem 0; background: var(--white); }
.mallorca-content-wrapper { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.mallorca-text h3 { color: var(--primary-blue); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; font-weight: 800; font-family: 'Montserrat', sans-serif; }
.mallorca-text p { color: #4b5563; line-height: 1.8; font-size: 1.1rem; }
.mallorca-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
.mallorca-stat { text-align: center; background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)); color: #fff; border-radius: 12px; padding: 1.25rem .75rem; }
.mallorca-stat strong { display: block; color: #f59e0b; font-size: 1.6rem; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.mallorca-stat span { font-size: .85rem; opacity: .95; }
.mallorca-cta { margin-top: 2rem; }
.mallorca-image img { width: 100%; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) {
    .mallorca-content-wrapper { grid-template-columns: 1fr; }
    .sobre-mallorca-section-enhanced { padding: 3rem 0; }
}
@media (max-width: 480px) {
    .mallorca-stats { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------- FAQ */
.home-faq { padding: 5rem 0; background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%); }
.faqs-section { margin: 4rem 0 2rem; }
.faqs-container { max-width: 900px; margin: 0 auto; }
.faq-item { border: 2px solid var(--border-color); }
.faq-question {
    width: 100%; border: 0; background: var(--white); text-align: left; font-family: inherit; color: var(--primary-blue);
    gap: 1rem; min-height: 56px;
}
.faq-question:hover { background: #f3f4f6; }
.faq-q-text { flex: 1; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.faq-question i { color: var(--primary-blue); flex: none; }
.faq-answer p { padding: 0 1.5rem 1.5rem; }
.faq-item:not(.active) .faq-answer { visibility: hidden; }
.faq-item.active .faq-answer { max-height: 700px; visibility: visible; }
@media (max-width: 768px) {
    .home-faq { padding: 3rem 0; }
    .faq-q-text { font-size: 1rem; }
}

/* ------------------------------------------------------ Cabeceras de pagina (cuadro) */
.prices-header-box h1, .prices-header-box h2 { margin-bottom: 1rem; }
.prices-header-box .prices-section-title { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .75rem; }
.prices-header-box .prices-intro { font-size: clamp(1rem, 2.4vw, 1.2rem); margin: 0; }
.prices-header-box .prices-intro + .prices-intro { margin-top: .5rem; }
.prices-intro-nocturno { font-size: .95rem; color: #b91c1c; font-weight: 700; font-style: italic; margin-top: .75rem; }
.tabla-precios:hover { transform: none; }

/* --------------------------------------------------------------------- Precios */
.prices-section-page { background-image: url('/assets/img/hero/prices-bg.jpg'); background-color: #0f3460; }
.prices-search {
    max-width: 640px; margin: 0 auto 2rem; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.prices-search label { display: block; font-weight: 700; color: var(--primary-blue); margin-bottom: .4rem; }
.prices-search .input-icon .input { border: 2px solid var(--border-color); }
.prices-group-title {
    font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-blue);
    background: rgba(255, 255, 255, .92); border-radius: 12px 12px 0 0; padding: 1rem 1.5rem; font-size: 1.2rem; margin: 2rem 0 0;
}
.prices-group-title i { color: #f59e0b; margin-right: .5rem; }
.price-table-wrap { margin-bottom: 1rem; overflow: visible; }
.prices-table, .price-table-wrap, .prices-header-box {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
.prices-table { display: table; width: 100%; border-radius: 0 0 12px 12px; margin-bottom: 0; }
.prices-table th .fa-user-group { margin-right: .35rem; color: var(--gold); }
.prices-table td:first-child a { color: var(--primary-blue); text-decoration: none; font-weight: 600; }
.prices-table td:first-child a:hover { text-decoration: underline; }
.prices-table td:first-child i { color: var(--gold); margin-right: .4rem; }
.prices-table td:not(:first-child) { color: #b45309; }
.prices-table tbody tr.is-hidden { display: none; }
.prices-table thead { position: sticky; top: 0; }
.prices-note-box {
    max-width: 1000px; margin: 1.5rem auto 0; background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2); color: #1f2937; display: grid; gap: .6rem;
}
.prices-note-box p { line-height: 1.6; }
.prices-note-box i { color: var(--primary-blue); margin-right: .4rem; }
.no-results { background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem auto; max-width: 1000px; }
@media (max-width: 768px) {
    .prices-section-page { background-attachment: scroll; padding: 2rem 0; }
    .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .prices-table { display: table; font-size: .9rem; }
    .prices-table th, .prices-table td { padding: .75rem .4rem; white-space: normal; }
    .prices-table th { font-size: .75rem; letter-spacing: 0; }
    .prices-table td:first-child { font-size: .85rem; }
    .prices-table td:not(:first-child) { font-size: .95rem; }
    .prices-table i.fa-location-dot, .prices-table i.fa-golf-ball-tee { display: none; }
    .prices-header-box { padding: 1.25rem; }
}

/* ------------------------------------------------------------------- Servicios */
.services-section-page { padding: 4rem 0 2rem; }
.service-card a.btn { text-decoration: none; }
.service-card h3 { font-size: 1.3rem; }
.why-book-section { padding: 3rem 0 4rem; }
.why-book-unified-icon { background: linear-gradient(135deg, #10b981, #059669); }
.included-section { padding: 2rem 0 4rem; background: var(--white); }
.included-section .prices-container { max-width: 760px; }
.included-section h2 { text-align: center; }
.included-section .included-list { margin-bottom: 2rem; }
.included-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; list-style: none; padding: 0; margin: 0; }
.included-list li { display: flex; gap: .6rem; align-items: flex-start; color: #1f2937; line-height: 1.5; }
.included-list i { color: #10b981; margin-top: .25rem; }
.transfer-perks, .transfer-more {
    max-width: 1000px;
    margin-top: 2rem;
    color: #1f2937;
}
.transfer-more { margin-top: 1.25rem; text-align: center; }
.transfer-more-title {
    margin: 0 0 .75rem;
    padding: 0;
    background: none;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.transfer-more-links {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
    font-style: normal;
    line-height: 1.8;
}
.transfer-more-links a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.transfer-more-links a:hover { color: #0a1f44; }
.cap-table { margin-bottom: 1rem; }
.cap-table td:first-child { text-align: left; white-space: nowrap; }
.cap-table td:first-child i { color: var(--gold); margin-right: .4rem; }
.cap-table td:not(:first-child) { text-align: left; color: #1f2937; font-weight: 500; font-size: 1rem; }
@media (max-width: 640px) {
    .included-list { grid-template-columns: 1fr; }
    .why-book-unified-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------- Soporte */
.soporte-section { padding: 3rem 0 4rem; }
a.soporte-card { display: block; text-decoration: none; color: inherit; }
.soporte-card strong.soporte-link { display: inline-block; word-break: break-word; }
.soporte-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 2rem; }
.soporte-highlight { margin-top: .5rem; }
.help-option .btn { text-decoration: none; display: inline-block; }
.help-option > i { display: block; }
.contact-form-section { padding: 3rem 0 4rem; background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%); }
.contact-form-section .card-form { background: var(--white); border: 2px solid var(--border-color); border-radius: 12px; }

/* --------------------------------------------------------------- Boton de volver */
.btn-primary i, .btn-secondary i { margin-right: .35rem; }
