/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN ORIGINAL
   ========================================================================== */
:root {
    --primary-color: #0071eb;
    --primary-hover: #0059b8;
    --text-color: #222222;
    --text-muted: #555555;
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --border-color: #e0e6ed;
    --max-width: 1100px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

#language-selector {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 30px 0 15px 0;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Camper Reel (Carrete de fotos) */
.camper-reel-container {
    position: relative;
    margin: 15px 0 30px 0;
}

.camper-reel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.camper-reel::-webkit-scrollbar {
    height: 6px;
}

.camper-reel::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}

.camper-reel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ==========================================================================
   SOLUCIÓN AL TEXTURIZADO Y CALIDAD DE LAS IMÁGENES DEL CARRETE
   ========================================================================== */
.camper-reel img {
    width: 260px;
    height: 175px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    
    /* Evita la pérdida de calidad por reescalado del navegador */
    image-rendering: -webkit-optimize-contrast; /* Máxima nitidez en Chrome, Safari y Edge */
    image-rendering: high-quality;             /* Algoritmo de reescalado premium bicúbico */
    
    /* Forzar procesamiento por hardware/GPU para evitar dientes de sierra y pixelación */
    transform: translateZ(0); 
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.camper-reel img:hover {
    transform: scale(1.03) translateZ(0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.reel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-color);
    color: #333;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.reel-prev { left: -15px; }
.reel-next { right: -15px; }

/* Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 1fr 360px;
    }
}

.info-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.info-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 8px;
}

.description-text p {
    margin-bottom: 12px;
    color: #444;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: "✓";
    color: #2e7d32;
    font-weight: bold;
    margin-right: 10px;
}

.map-address {
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 14px;
}

.map-container {
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid var(--border-color);
}

/* Reviews */
.reviews-section {
    margin-bottom: 25px;
}

.reviews-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    background: #e0e6ed;
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.review-author { font-size: 14px; font-weight: 600; }
.review-stars { display: block; font-size: 11px; margin-top: 2px; }
.review-text { font-size: 13.5px; color: #555; font-style: italic; }

.add-review-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
}

.add-review-box h3 { font-size: 16px; margin-bottom: 15px; }
.form-review { display: flex; flex-direction: column; gap: 12px; }
.review-form-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.form-review input, .form-review select, .form-review textarea { padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; }

/* Booking Card */
.booking-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

@media (min-width: 768px) {
    .booking-card { position: sticky; top: 80px; }
}

.booking-card h2 { font-size: 18px; margin-bottom: 15px; text-align: center; }
.form-grid { display: flex; flex-direction: column; gap: 12px; }
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label { font-size: 13px; font-weight: 600; }
.input-group input, .input-group textarea { padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; width: 100%; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-legal { font-size: 12.5px; color: var(--text-muted); }
.checkbox-legal label { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.checkbox-legal input { margin-top: 3px; }

.btn-primary { background: var(--primary-color); color: #fff; border: none; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #333; color: #fff; border: none; padding: 8px 15px; border-radius: 6px; font-size: 13px; cursor: pointer; }

/* ==========================================================================
   VISOR DE IMÁGENES COMPLETO (LIGHTBOX DE FOTOS)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    user-select: none;
    image-rendering: auto;
}

#lightbox-caption {
    color: #ffffff;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.lightbox-close:hover { color: #bbbbbb; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    color: white;
    border: none;
    font-size: 28px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

@media (max-width: 768px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close { top: 15px; right: 25px; }
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS VENTANA MODAL LEGAL
   ========================================================================== */
.legal-lightbox {
    display: none;
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
}

.legal-lightbox-content {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-text-box {
    background: #ffffff !important;
    color: #222222 !important;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    position: relative;
}

.legal-lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333333;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.footer-legal-link {
    color: var(--primary-color);
    text-decoration: underline;
    padding: 0 5px;
    font-size: 14px;
}

#legal-modal-content h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111111;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 8px;
}

#legal-modal-content p {
    font-size: 14px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
}

@media (max-width: 480px) {
    header { flex-direction: column; gap: 10px; padding: 10px; }
    .hero h1 { font-size: 24px; }
    .info-section { padding: 15px; }
    .review-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   OPTIMIZACIÓN DE NITIDEZ EXTREMA PARA EL CARRETE DE FOTOS
   ========================================================================== */

.camper-reel img {
    /* Evita que la foto se estire o deforme adaptándola perfectamente */
    object-fit: cover; 
    
    /* Algoritmos avanzados de renderizado para máxima definición de bordes */
    image-rendering: -webkit-optimize-contrast; /* Safari y navegadores basados en Chromium */
    image-rendering: crisp-edges;               /* Firefox y estándares modernos */
    
    /* Prepara el hardware del dispositivo para transiciones fluidas sin perder enfoque */
    will-change: transform; 
}

/* Efecto opcional: Suaviza la interacción y realza la imagen seleccionada */
.camper-reel img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}