/* -------------------------------------------------------------
   COLOMBIA MÁGICA - GLOBAL STYLESHEET (VANILLA CSS)
------------------------------------------------------------- */

/* Variables y Sistema de Diseño */
:root {
    /* Paleta Claro (Default) */
    --bg-primary: #f5f8f6;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9f0eb;
    
    --text-primary: #1c2e24;
    --text-secondary: #4a6356;
    --text-muted: #859c90;
    
    --primary: #0f7a4e; /* Verde Esmeralda Colombiano */
    --primary-hover: #0a5f3b;
    --accent: #dca11d; /* Amarillo Atardecer/Café */
    --accent-hover: #c48e14;
    --blue: #1c7293; /* Azul Océano Caribe */
    
    --danger: #cf3a3a;
    --success: #209f63;
    --warning: #e59834;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 122, 78, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(15, 122, 78, 0.05);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
}

/* Modo Oscuro */
body.dark-mode {
    --bg-primary: #0a140f;
    --bg-secondary: #0f1f17;
    --bg-tertiary: #142b20;
    
    --text-primary: #e6f2ec;
    --text-secondary: #a3c2b2;
    --text-muted: #668877;
    
    --primary: #1bc482;
    --primary-hover: #159e68;
    --accent: #f0b833;
    --accent-hover: #dca11d;
    --blue: #3ba0c9;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    --glass-bg: rgba(15, 31, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-primary);
}

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

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

/* Clases de Utilidad */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 2rem; }
.btn-block { display: block; width: 100%; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Tarjeta Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 122, 78, 0.3);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success);
    color: white !important;
}

.btn-success:hover {
    background-color: #1a8853;
}

.btn-error {
    background-color: var(--danger);
    color: white !important;
}

.btn-error:hover {
    background-color: #b73232;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white !important;
    font-weight: bold;
}

.btn-whatsapp:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(32, 159, 99, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(207, 58, 58, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-success {
    background-color: rgba(32, 159, 99, 0.15);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(229, 152, 52, 0.15);
    color: var(--warning);
}

/* -------------------------------------------------------------
   NAVEGACIÓN (HEADER)
------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 90%;
    z-index: 1000;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.user-badge {
    background: var(--bg-tertiary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

/* -------------------------------------------------------------
   SECCIÓN HERO (BANNER PRINCIPAL)
------------------------------------------------------------- */
.hero {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 122, 78, 0.95) 0%, rgba(28, 114, 147, 0.9) 100%), 
                url('assets/hero_bg.jpg') center/cover no-repeat;
    color: white;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Barra de Búsqueda Hero */
.hero-search-bar {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr) 0.6fr;
    gap: 1rem;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.search-field select, .search-field input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.search-field select:focus, .search-field input:focus {
    border-color: var(--primary);
}

/* -------------------------------------------------------------
   MAPA INTERACTIVO DE COLOMBIA (SVG)
------------------------------------------------------------- */
.map-section {
    padding: 6rem 5% 4rem;
    background-color: var(--bg-secondary);
}

.map-container-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.map-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.map-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.region-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.region-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-primary);
}

.region-btn:hover, .region-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.map-svg-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

/* SVG del Mapa */
.colombia-map-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.colombia-map-svg path {
    fill: var(--bg-tertiary);
    stroke: var(--bg-secondary);
    stroke-width: 1.5;
    cursor: pointer;
    transition: var(--transition);
}

.colombia-map-svg path:hover {
    fill: var(--accent);
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.15));
}

.colombia-map-svg path.active-path {
    fill: var(--primary);
}

/* -------------------------------------------------------------
   GALERÍA DE TARJETAS DE DESTINO
------------------------------------------------------------- */
.destinations-section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.dest-card {
    overflow: hidden;
}

.dest-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.dest-card-image {
    position: relative;
    height: 240px;
}

.dest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.dest-card:hover .dest-card-image img {
    transform: scale(1.08);
}

.dest-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.dest-price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.dest-card-content {
    padding: 1.8rem;
}

.dest-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dest-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    min-height: 70px;
}

.dest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dest-tag {
    font-size: 0.75rem;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.dest-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dest-dates-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-sans);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
   CREADOR DE ITINERARIOS / PLANIFICADOR DE VIAJES
------------------------------------------------------------- */
.planner-section {
    padding: 6rem 5%;
    background-color: var(--bg-tertiary);
}

.planner-container {
    max-width: 1000px;
    margin: 0 auto;
}

.planner-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.planner-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    right: 5%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    transition: var(--transition);
    color: var(--text-muted);
}

.step-indicator.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.planner-card-body {
    padding: 3rem;
}

.planner-step-view {
    display: none;
}

.planner-step-view.active-view {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-card {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: rgba(15, 122, 78, 0.05);
}

.option-card h4 {
    margin-bottom: 6px;
}

.planner-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.itinerary-summary-box {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    border-left: 5px solid var(--primary);
}

.price-summary-box {
    margin-top: 1.5rem;
    text-align: right;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-sans);
}

/* -------------------------------------------------------------
   SISTEMA DE COMENTARIOS / RESEÑAS
------------------------------------------------------------- */
.reviews-section {
    padding: 6rem 5%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3.5rem;
    align-items: start;
}

.rating-summary-card {
    padding: 2.5rem;
    text-align: center;
}

.rating-big {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.stars {
    color: var(--accent);
    font-size: 1.4rem;
}

.review-form form {
    margin-top: 1.5rem;
}

.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-item {
    padding: 1.8rem;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.review-user {
    font-weight: 600;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Formulario Inputs Estilos */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* -------------------------------------------------------------
   ASISTENTE CHATBOT FLOTANTE
------------------------------------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(15, 122, 78, 0.3);
    transition: var(--transition);
}

.chat-bubble:hover {
    transform: scale(1.08) rotate(5deg);
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.chat-header {
    background-color: var(--primary);
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: white;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--bg-secondary);
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.chat-msg.bot {
    background-color: var(--bg-tertiary);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-msg.user {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-quick-replies {
    padding: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.reply-chip {
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.reply-chip:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chat-footer {
    padding: 0.8rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-footer input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.send-msg-btn {
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-sm);
}

/* -------------------------------------------------------------
   DISEÑO DE VISTAS DE AUTENTICACIÓN (LOGIN/REGISTER)
------------------------------------------------------------- */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(15, 122, 78, 0.4) 0%, rgba(28, 114, 147, 0.3) 100%), 
                url('assets/hero_bg.jpg') center/cover no-repeat;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 1rem;
}

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

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.role-tabs {
    display: flex;
    background-color: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--bg-secondary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-back {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------
   PERFIL DEL CLIENTE / PANEL DE RESERVAS
------------------------------------------------------------- */
.dashboard-body {
    padding-top: 110px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.profile-details-card {
    padding: 2.5rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.profile-info-grid p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.booking-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.booking-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.booking-code {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.booking-body {
    padding: 1.5rem;
    flex: 1;
}

.booking-body h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.booking-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.booking-total {
    font-weight: 700;
    color: var(--primary);
}

.booking-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.01);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.action-divider {
    margin: 1.2rem 0;
    border: none;
    border-top: 1px dashed var(--border-color);
}

.upload-area h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-input-wrapper label {
    display: block;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-input-wrapper label.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.receipt-uploaded {
    text-align: center;
    background-color: rgba(32, 159, 99, 0.08);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.receipt-uploaded .check-icon {
    font-size: 1.2rem;
    margin-right: 4px;
}

.view-receipt-link {
    margin-top: 6px;
    font-size: 0.8rem;
}

.receipt-validated-msg {
    text-align: center;
    background-color: rgba(32, 159, 99, 0.12);
    border: 1px solid var(--success);
    padding: 1.2rem;
    border-radius: var(--border-radius-sm);
    color: var(--success);
    font-weight: 600;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   PANEL ADMINISTRACIÓN (DISEÑO)
------------------------------------------------------------- */
.admin-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.admin-title {
    font-size: 3rem;
}

.admin-tabs-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-nav-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.tab-nav-btn:hover, .tab-nav-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active-tab {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
}

.admin-table td {
    font-size: 0.95rem;
}

.admin-table tr:hover {
    background-color: rgba(0,0,0,0.01);
}

.admin-crud-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2.5rem;
}

.admin-table-thumb {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}

.flex-actions {
    display: flex;
    gap: 6px;
}

.review-comment-cell {
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.footer {
    padding: 3rem 5%;
    text-align: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
   ANIMACIONES
------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   RESPONSIVIDAD
------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .map-container-grid, .admin-crud-grid, .reviews-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-search-bar {
        grid-template-columns: 1fr 1fr;
    }
    .hero-search-bar button {
        grid-column: span 2;
    }
    .navbar {
        padding: 0.8rem 1rem;
    }
    .nav-menu {
        display: none; /* Sería ideal un menú móvil, pero para propósitos del ejercicio mantenemos simple o simplificado */
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-search-bar {
        grid-template-columns: 1fr;
    }
    .hero-search-bar button {
        grid-column: span 1;
    }
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    .admin-tabs-nav {
        flex-direction: column;
        gap: 5px;
    }
    .admin-tabs-nav button {
        text-align: left;
    }
}

/* -------------------------------------------------------------
   ADMIN DASHBOARD UPGRADE - PREMIUM SIDEBAR & STATS
------------------------------------------------------------- */
.admin-dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid var(--border-color) !important;
}

.sidebar-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.sidebar-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 2.5rem;
    padding-left: 2px;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(15, 122, 78, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Main Content Area */
.admin-main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2.5rem 3rem;
    background-color: var(--bg-primary);
    overflow-y: auto;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary);
}

.stat-card.stat-revenue::after { background-color: var(--success); }
.stat-card.stat-pending::after { background-color: var(--warning); }
.stat-card.stat-users::after { background-color: var(--blue); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-number {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Visual Bar Chart */
.chart-container-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    padding: 2rem;
}

.chart-card h3 {
    margin-bottom: 1.5rem;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-color);
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 15%;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--success));
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: height 1s ease-out;
    min-height: 5px;
    position: relative;
}

.chart-bar:hover {
    filter: brightness(1.1);
}

.chart-bar-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-secondary);
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.chart-bar:hover .chart-bar-tooltip {
    opacity: 1;
}

.chart-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Search and Filter Controls */
.search-filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 122, 78, 0.1);
}

.search-icon-inside {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.filter-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Drawer / Modal Deslizable */
.admin-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-out;
}

.admin-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100%;
    background-color: var(--bg-secondary);
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.admin-drawer.open {
    right: 0;
}

.admin-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-drawer-header h3 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.admin-drawer-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Responsividad Dashboard */
@media (max-width: 1100px) {
    .chart-container-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
        align-items: center;
    }
    .sidebar-logo {
        font-size: 1.1rem;
        text-align: center;
    }
    .sidebar-logo span { display: block; }
    .sidebar-role { display: none; }
    .sidebar-link {
        justify-content: center;
        padding: 0.8rem;
        font-size: 1.3rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }
    .sidebar-link span { display: none; }
    .admin-main-content {
        margin-left: 80px;
        padding: 2rem 1.5rem;
    }
    .admin-drawer {
        width: 100%;
        right: -100%;
    }
}

