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

:root {
    --color-primary: #006400;
    --color-primary-dark: #004d00;
    --color-bg: #eaf5dd;
    --color-bg-alt: #ddedc5;
    --color-text: #1a1a1a;
    --color-text-light: #444;
    --color-white: #ffffff;
    --color-border: #c8d9b0;
    --color-border-soft: #d9e6c3;
    --font-body: Arial, Helvetica, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-display: 'Baloo 2', Georgia, 'Times New Roman', serif;
    --container-width: 1000px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --radius: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: var(--spacing-md);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.site-logo:hover {
    color: var(--color-white);
    opacity: 0.9;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.site-nav a {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.hero-section {
    position: relative;
    height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #a8c896;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 100, 0, 0.2) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.8rem);
    color: var(--color-white);
    text-align: center;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    font-style: italic;
}

/* ---- Hero de páginas internas (About Us / Contact) ---- */
.page-hero {
    position: relative;
    height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #a8c896;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 100, 0, 0.2) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.site-main {
    flex: 1;
}

.tours-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.tour-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
}

.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tour-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: inherit;
}

.tour-card-link:hover {
    color: inherit;
}

.tour-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #d0dcc2;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.tour-title {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0;
}

.tour-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

.testimonials-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 72px;
}

.testimonials-viewport {
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    flex-wrap: nowrap;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.testimonials-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 var(--spacing-md);
}

.testimonial-item {
    background-color: transparent;
    border: none;
    width: 100%;
    display: block;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-border);
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    user-select: none;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.18);
}

.slider-btn:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

.slider-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

.slider-btn-prev {
    left: 12px;
}

.slider-btn-next {
    right: 12px;
}

.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #cbdfb0;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-dot:hover {
    background-color: var(--color-primary);
}

.slider-dot.is-active {
    background-color: var(--color-primary-dark);
    transform: scale(1.25);
}

.slider-dot:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

.testimonial-text-es,
.testimonial-text-en {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.testimonial-footer {
    text-align: center;
    margin-top: var(--spacing-sm);
}

.testimonial-name {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.testimonial-location {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.site-footer {
    background-color: var(--color-white);
    border-top: 2px solid var(--color-border);
    color: var(--color-text);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
    font-size: 1.15rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.contact-list .icon {
    font-size: 1rem;
}

.footer-links ul {
    display: grid;
    gap: 6px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ict-logo {
    max-width: 160px;
    width: 100%;
    height: auto;
}

/* ---- Botón flotante de WhatsApp (en todas las páginas) ---- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    animation: wa-float 2.4s ease-in-out infinite;
    transition: background-color 0.2s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5b;
    color: var(--color-white);
}

/* Anillo que late detrás del botón */
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float::after {
        animation: none;
    }
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.page-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.page-header h1 {
    color: var(--color-white);
    margin: 0;
    text-align: center;
}

.page-content {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.content-grid p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    line-height: 1.75;
}

/* ---- Contenido editable de About Us (HTML del WYSIWYG del panel) ---- */
.about-body > *:first-child { margin-top: 0; }
.about-body > *:last-child  { margin-bottom: 0; }
.about-body p {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--color-text-light);
    line-height: 1.75;
}
.about-body ul,
.about-body ol {
    margin: 0 0 var(--spacing-sm) 0;
    padding-left: 1.5em;
    color: var(--color-text-light);
    line-height: 1.75;
}
.about-body ul { list-style: disc; }
.about-body ol { list-style: decimal; }
.about-body li { margin-bottom: 4px; }
.about-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: var(--spacing-md) 0;
}
.about-body a { text-decoration: underline; }
.about-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-primary:active {
    transform: scale(0.98);
}

.tour-detail {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
}

.tour-detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #d0dcc2;
    border-radius: var(--radius);
    overflow: hidden;
}

.tour-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-detail-info {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.tour-detail-info h1 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.7rem;
}

.tour-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tour-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.tour-meta-item span:first-child {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.alert-info {
    background-color: #e8f4dd;
    border: 1px solid var(--color-border);
    color: var(--color-primary-dark);
}

.tour-detail-page .page-header {
    display: none;
}

.tour-detail-page {
    background-image: linear-gradient(rgba(234, 245, 221, 0.8), rgba(234, 245, 221, 0.8)), var(--tour-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* En el detalle se apila en vertical: título → imagen → contenido.
   El hero no lleva margen inferior: la separación de 20px con el contenido
   la aporta el padding superior de .tour-description. */
.tour-detail-hero-text {
    margin-bottom: var(--spacing-lg);
}

.tour-detail-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    color: #000;
    margin-bottom: var(--spacing-sm);
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0 4px 12px rgba(0, 0, 0, 0.35);
}

.tour-social {
    display: flex;
    gap: 6px;
    margin-bottom: var(--spacing-md);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background-color: var(--color-bg-alt);
}

.tour-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
    text-align: justify;
}

.tour-detail-hero-image {
    background-color: #d0dcc2;
    border: 3px solid var(--color-primary-dark);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.tour-detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-points {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.tour-point {
    padding: 0;
}

.tour-point-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: justify;
}

.tour-point-text strong {
    color: var(--color-primary-dark);
}

.tour-gallery-image {
    width: 100%;
    background-color: #d0dcc2;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.tour-gallery-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

/* =========================================================================
   Contenido WYSIWYG publicado desde el panel (SunEditor)
   - Se renderiza como HTML seguro (pre-sanitizado al guardar)
   - Márgenes coherentes con el diseño del tour detail
   - Base 16px (1rem = 16px) — todos los tamaños derivados
   ========================================================================= */
.tour-description {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    font-size: 1rem;                       /* 16px en root típico */
    line-height: 1.75;
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tour-description > *:first-child { margin-top: 0; }
.tour-description > *:last-child  { margin-bottom: 0; }

/* ---- PÁRRAFOS ---- */
.tour-description p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--color-text);
    font-size: 1rem;                       /* 16px */
    line-height: 1.75;
}

/* ---- TÍTULOS H1..H6 ---- */
.tour-description h1,
.tour-description h2,
.tour-description h3,
.tour-description h4,
.tour-description h5,
.tour-description h6 {
    color: var(--color-primary-dark);
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    padding: 0;
    position: relative;
    scroll-margin-top: 110px;
}

.tour-description h1 { font-size: 1.9rem;   /* 30.4px */ }
.tour-description h2 { font-size: 1.55rem;  /* 24.8px */ }
.tour-description h3 { font-size: 1.3rem;   /* 20.8px */ }
.tour-description h4 { font-size: 1.1rem;   /* 17.6px */ }
.tour-description h5 { font-size: 1.02rem;  /* 16.3px */ text-transform: uppercase; letter-spacing: 0.04em; }
.tour-description h6 { font-size: 0.98rem;  /* 15.7px */ text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.92; }

/* Espaciado uniforme entre todos los bloques de primer nivel del contenido
   (párrafos, divs del editor, títulos, listas). Va DESPUÉS de las reglas de
   títulos para ganarles en cascada: si no, los h1-h6 conservan su margen
   superior de 40px y el espacio queda desigual. */
.tour-description > h1,
.tour-description > h2,
.tour-description > h3,
.tour-description > h4,
.tour-description > h5,
.tour-description > h6,
.tour-description > p,
.tour-description > div,
.tour-description > ul,
.tour-description > ol,
.tour-description > blockquote,
.tour-description > figure {
    margin: 0 0 var(--spacing-md) 0;
}

/* El editor mete <div><br></div> como separadores vacíos: con el margen
   uniforme ya no hacen falta y duplicaban el espaciado. */
.tour-description > div > br:only-child {
    display: none;
}

/* ---- NEGRITA / CURSIVA / SUBRAYADO / TACHADO / CITA ---- */
.tour-description strong,
.tour-description b {
    color: var(--color-primary-dark);
    font-weight: 800;
}
.tour-description em,
.tour-description i {
    font-style: italic;
    color: var(--color-text);
}
.tour-description u {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}
.tour-description del,
.tour-description s,
.tour-description strike {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    color: var(--color-text-light);
    opacity: 0.92;
}
.tour-description mark {
    background-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
    color: var(--color-primary-dark);
    padding: 0.08em 0.3em;
    border-radius: calc(var(--radius) - 2px);
}
.tour-description small {
    font-size: 0.85em;
    color: var(--color-text-light);
}
.tour-description sub,
.tour-description sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
.tour-description sup { top: -0.45em; }
.tour-description sub { bottom: -0.22em; }

/* ---- CITA (blockquote) ---- */
.tour-description blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) + 2px);
    margin: var(--spacing-md) 0 var(--spacing-md) 0;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--color-primary) 10%, transparent) 0%,
        var(--color-bg-alt) 60%,
        var(--color-bg-alt) 100%);
    color: var(--color-text);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1rem;
    position: relative;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 12%, var(--color-border));
}
.tour-description blockquote::before {
    content: "\201C";   /* opening curly quote */
    position: absolute;
    top: -2px;
    left: 10px;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 3rem;
    line-height: 1;
    color: color-mix(in srgb, var(--color-primary) 40%, transparent);
    font-style: normal;
    font-weight: 800;
}
.tour-description blockquote > *:first-child { margin-top: 0; padding-top: 0; }
.tour-description blockquote > *:last-child  { margin-bottom: 0; }
.tour-description blockquote p {
    color: var(--color-text);
    font-size: 1rem;
    margin: 0 0 var(--spacing-xs) 0;
}
.tour-description blockquote p:last-child { margin-bottom: 0; }

/* ---- IMAGENES ---- */
.tour-description img {
    max-width: min(92%, 780px);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    margin: var(--spacing-md) auto;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
}

/* El editor inserta un <br> justo después de cada imagen: generaba una línea
   vacía extra debajo. La imagen debe separarse solo 20px arriba y abajo. */
.tour-description img + br {
    display: none;
}

/* ---- ENLACES ---- */
.tour-description a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    word-break: break-word;
    font-weight: 600;
    transition: color 120ms ease, text-decoration-color 120ms ease;
}
.tour-description a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}
.tour-description a:visited {
    color: var(--color-primary-dark);
}

/* ---- HR SEPARADOR ---- */
.tour-description hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-md) 0;
    height: 0;
}

/* ---- CÓDIGO ---- */
.tour-description code,
.tour-description pre,
.tour-description kbd,
.tour-description samp {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variant-ligatures: none;
}
.tour-description code,
.tour-description kbd,
.tour-description samp {
    background-color: var(--color-bg-alt);
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, var(--color-border));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.12em 0.45em;
    font-size: 0.88em;
    color: var(--color-primary-dark);
    font-weight: 500;
    word-break: break-word;
}
.tour-description kbd {
    box-shadow: 0 1px 0 var(--color-border);
    border-bottom-width: 2px;
}
.tour-description pre {
    background-color: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: var(--radius);
    padding: var(--spacing-md);
    overflow-x: auto;
    margin: var(--spacing-md) 0;
    line-height: 1.65;
    font-size: 0.88rem;
    tab-size: 4;
    -moz-tab-size: 4;
}
.tour-description pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* ---- LISTAS NATIVAS <ol> / <ul> ---- (estilo navegador normal) */
.tour-description ul,
.tour-description ol {
    margin: 0 0 var(--spacing-md) 0;
    padding-left: 2.2em;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.75;
}

.tour-description ul { list-style: disc; }
.tour-description ol { list-style: decimal; }

.tour-description li {
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.75;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--color-text);
    font-size: 1rem;
    position: static;
}

.tour-description li > ul,
.tour-description li > ol {
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

.tour-description li:last-child {
    margin-bottom: 0;
}

.tour-description ol li::before,
.tour-description ul li::before {
    content: none !important;
}

/* ===========================================================
   .tour-info-list: pseudo-listas detectadas (Departure Time…)
   =========================================================== */
.tour-info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
}

@media (min-width: 820px) {
    .tour-info-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tour-info-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.tour-info-item:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tour-info-title {
    margin: 0 0 var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

.tour-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--color-primary) 14%, transparent);
    color: var(--color-primary-dark);
    flex: 0 0 34px;
    font-size: 0.95rem;
}

.tour-info-title-text {
    flex: 1;
    word-break: break-word;
}

.tour-info-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.tour-info-body-line + .tour-info-body-line {
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    border-top: 1px dashed var(--color-border);
}

.tour-body-note-prefix {
    display: inline-block;
    font-weight: 700;
    color: var(--color-primary-dark);
    padding: 0.08em 0.5em;
    margin-right: 0.35em;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    border-radius: 4px;
    font-size: 0.92em;
}

.tour-description-spacer {
    height: 8px;
    width: 100%;
    display: block;
}

/* ========================================== FIN .tour-description / .tour-info-list ========================================== */

.tour-schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.schedule-block {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.schedule-block:last-child {
    border-bottom: none;
}

.schedule-block h4 {
    font-size: 0.98rem;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 700;
}

.schedule-block p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.more-tours-section {
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.more-tours-title {
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.more-tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.more-tour-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.more-tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.more-tour-image {
    aspect-ratio: 16 / 10;
    background-color: #d0dcc2;
    overflow: hidden;
}

.more-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-tour-caption {
    padding: var(--spacing-sm);
    background-color: var(--color-white);
}

.more-tour-caption p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.all-tours-page {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.all-tours-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.all-tours-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.all-tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 960px;
    margin: 0 auto;
}

.all-tour-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.all-tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.all-tour-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #d0dcc2;
}

.all-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.all-tour-card:hover .all-tour-image img {
    transform: scale(1.03);
}

.all-tours-grid .tour-content {
    padding: var(--spacing-md);
}

.all-tours-grid .tour-title {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.all-tours-grid .tour-excerpt {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.45;
    color: var(--color-text-light);
}

@media (max-width: 992px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .all-tours-title {
        font-size: 2.1rem;
    }
    .hero-section,
    .page-hero {
        height: 500px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-logo {
        grid-column: 1 / -1;
    }
    .tour-detail {
        grid-template-columns: 1fr;
    }
    .more-tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--spacing-sm) 0;
    }
    .site-nav li {
        width: 100%;
    }
    .site-nav a {
        display: block;
        padding: 12px var(--spacing-md);
        border-radius: 0;
    }
    .tours-grid {
        grid-template-columns: 1fr;
    }
    .all-tours-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-list li {
        justify-content: center;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .hero-title {
        padding: 0 var(--spacing-md);
    }
    .more-tours-grid {
        grid-template-columns: 1fr;
    }
    .tour-detail-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        min-height: 60px;
    }
    .site-logo {
        font-size: 1.15rem;
    }
    .tours-section,
    .testimonials-section {
        padding: var(--spacing-lg) 0;
    }
    .testimonials-slider {
        padding: 0 44px;
    }
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    .slider-btn-prev {
        left: 4px;
    }
    .slider-btn-next {
        right: 4px;
    }
    .testimonials-slide {
        padding: 0 var(--spacing-sm);
    }
}
