/* ==========================================================================
   0. VARIABLES GLOBALES Y RESET BÁSICO
   ========================================================================== */
:root {
    /* --- Colores de Identidad (Basados en tu HeliusOffice) --- */
    --brand: #db9154;         /* Naranja/Tierra - Tu color principal */
    --brand-dark: #c47c42;    /* Tono más oscuro para hovers */
    --primary: #164f4f;       /* Verde oscuro/Azulado - Contraste elegante */
    --secondary: #2c3e50;     /* Gris oscuro azulado - Para fondos de barra superior */
    
    /* --- Colores de Estado e Interfaz --- */
    --success: #28a745;       /* Verde - Éxito / Confirmado */
    --warning: #f1c40f;       /* Amarillo - Pendiente / Botón Admin */
    --danger: #e74c3c;        /* Rojo - Cancelado / Eliminar / Salir */
    --info: #3498db;          /* Azul - Información general */
    
    /* --- Colores de Texto y Fondos --- */
    --bg-body: #f4f6f9;       /* Gris súper claro para el fondo principal */
    --bg-white: #ffffff;      /* Blanco puro para tarjetas y contenedores */
    --text-main: #333333;     /* Texto principal (Casi negro para mejor lectura) */
    --text-light: #777777;    /* Texto secundario (Gris suave para subtítulos) */
    --border-color: #e0e0e0;  /* Gris claro para bordes y separadores */

    /* --- Tipografía --- */
    --font-main: 'Open Sans', sans-serif; /* Tu fuente principal cargada desde Google Fonts */
}

/* --- Reset Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Fundamental para que los paddings no rompan el ancho de las cajas */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Suaviza las fuentes en Mac/iOS */
    -moz-osx-font-smoothing: grayscale;
}

/* --- Contenedor Global --- 
   Este contenedor es vital porque evita que la página se estire infinitamente en monitores gigantes.
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- Utilidades Generales --- */
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Evita márgenes invisibles debajo de las imágenes */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    line-height: 1.2;
}

/* Botones Globales (Añadidos para consistencia) */
.btn-primary {
    background-color: var(--brand);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover { background-color: var(--brand-dark); color: white; }

/* ==========================================================================
   1. HEADER Y NAVEGACIÓN (ESTILO HELIUS - MODIFICADO)
   ========================================================================== */

/* --- Top Bar (Barra Superior Verde) --- */
.top-bar-agency {
    background-color: var(--primary, #164f4f); /* Verde Corporativo */
    color: rgba(255, 255, 255, 0.9); /* Blanco suave */
    padding: 6px 0; /* Padding reducido para elegancia */
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between; /* Contacto a la izq, Usuario a la der */
    align-items: center;
    min-height: 30px;
}

/* Enlaces de la barra superior */
.top-bar-contact a, 
.top-bar-user a,
.user-greeting {
    color: inherit;
    text-decoration: none;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espacio entre icono y texto */
    transition: color 0.3s ease;
    font-weight: 400;
}

/* Iconos naranjas para resaltar sobre el verde */
.top-bar-contact i, 
.top-bar-user i {
    color: var(--brand, #db9154);
    font-size: 0.95rem;
}

/* Efecto Hover */
.top-bar-contact a:hover, 
.top-bar-user a:hover {
    color: #ffffff;
    opacity: 1;
}

/* Separador vertical sutil entre items de usuario */
.top-bar-user a:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 15px;
    margin-right: 15px;
}

/* Botón de Salir */
.logout-link {
    color: #ffcccc !important;
}
.logout-link:hover {
    color: #ff6b6b !important;
}

/* --- Main Header (Logo y Menú Blanco) --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 12px 0; /* Altura controlada */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-img-link img.main-logo {
    height: 42px; /* Tamaño ideal escritorio */
    width: auto;
    transition: transform 0.3s;
}
.logo-img-link:hover img.main-logo {
    transform: scale(1.02);
}

/* Enlaces de Navegación */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary, #2c3e50);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

/* Subrayado animado naranja */
.nav-links a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand, #db9154);
    transition: width 0.3s;
}

.nav-links a:not(.btn-cta):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary, #164f4f);
}

/* Botón ACCESO AGENCIAS */
.btn-cta {
    background-color: var(--primary, #164f4f);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary, #164f4f);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: white;
    color: var(--primary, #164f4f) !important;
    box-shadow: 0 4px 10px rgba(22, 79, 79, 0.2);
}

/* Botón Móvil Hamburguesa (oculto en escritorio) */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary, #164f4f);
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   2. RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (hasta 992px) --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
color: #ffffff;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

/* --- CELULARES (hasta 768px) --- */
@media (max-width: 768px) {
    
    /* === 1. AJUSTES HEADER MÓVIL (Compacto) === */
    
    /* Barra Verde Fina */
    .top-bar-agency {
        padding: 0; /* Quitamos padding extra */
        min-height: 36px; /* Altura fija delgada */
        display: flex;
        align-items: center;
    }

    .top-bar-inner {
        width: 100%;
        flex-direction: row; /* Forzamos fila, NO columna */
        justify-content: center; /* Centramos lo que quede */
    }

    /* OCULTAMOS Contacto (Tel/Mail) para ahorrar espacio vertical */
    .top-bar-contact {
        display: none; 
    }

    /* Solo mostramos Login/Usuario */
    .top-bar-user {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 0;
        padding: 0;
        font-size: 0.8rem;
    }
    
    /* Quitamos bordes separadores en móvil */
    .top-bar-user a:not(:last-child) {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    /* Header Blanco Delgado */
    .main-header {
        padding: 8px 0; /* Header blanco más delgado */
    }

    /* Logo más pequeño */
    .logo-img-link img.main-logo {
        height: 32px; 
    }

    .mobile-menu-btn {
        display: block; /* Mostrar hamburguesa */
        padding: 5px;
    }

    /* Menú Desplegable */
    .nav-links {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        border-top: 3px solid var(--brand);
        gap: 0;
    }

    .nav-links.show-mobile {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Botón Agencias en móvil */
    .nav-links .btn-cta {
        margin: 15px;
        width: calc(100% - 30px);
        justify-content: center;
        text-align: center;
    }

    /* === 2. AJUSTES RESTO DEL SITIO MÓVIL === */
    
    /* Hero Section (Portada) */
    .hero-section {
        padding: 60px 20px;
        min-height: auto; /* Altura automática */
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Buscador Dinámico (Transformación Vertical) */
    .hero-dynamic-search {
        flex-direction: column; /* Apilar elementos */
        background: white;
        padding: 20px;
        border-radius: 10px;
        gap: 0;
    }

    .search-field {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #eee; /* Línea separadora horizontal */
    }

    .search-divider { display: none; }

    .btn-search-submit {
        width: 100%; /* Botón ancho total */
        border-radius: 6px;
        margin-top: 20px;
        padding: 15px;
        font-size: 1.1rem;
    }

    /* Grilla de Paquetes */
    .packages-grid {
        grid-template-columns: 1fr; /* 1 sola columna */
        gap: 30px;
    }

    .package-img {
        height: 200px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr; /* Todo en 1 columna */
        text-align: center;
        padding: 40px 20px;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a, .footer-contact-info li, .social-links, .footer-logo-link {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Login */
    .login-card {
        padding: 30px 20px;
    }
}

/* --- MÓVILES PEQUEÑOS (hasta 480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   3. HERO SECTION (PORTADA INDEX)
   ========================================================================== */
.hero-section {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Buscador Dinámico (HERO) */
.hero-dynamic-search {
    background: var(--bg-white, #ffffff);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    gap: 15px;
    text-align: left;
}

.search-field i {
    font-size: 1.2rem;
    color: var(--brand, #db9154);
}

.field-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.field-content label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main, #333);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.field-content select {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-light, #777);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    appearance: none; /* Oculta la flecha nativa fea del select */
    -webkit-appearance: none;
    width: 100%;
}

.field-content select:focus {
    color: var(--primary, #164f4f);
    font-weight: 600;
}

.search-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color, #e0e0e0);
}

.btn-search-submit {
    background-color: var(--brand, #db9154);
    color: white;
    border: none;
    height: 55px;
    padding: 0 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search-submit:hover {
    background-color: var(--brand-dark, #c47c42);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. SECCIÓN PAQUETES (GRILLA Y TARJETAS)
   ========================================================================== */
.packages-section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header .highlight {
    color: var(--brand, #db9154);
}

/* Magia del Grid Responsive */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Tarjeta de Paquete */
.package-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.package-img {
    position: relative;
    height: 220px;
}

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

.package-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.package-content {
    padding: 20px;
    flex-grow: 1; /* Empuja el footer hacia abajo */
}

.package-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.package-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.package-meta i {
    color: var(--brand, #db9154);
    margin-right: 5px;
}

.package-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.package-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfcfc;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: bold;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2c3e50;
}

.btn-outline {
    border: 2px solid var(--brand, #db9154);
    color: var(--brand, #db9154);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--brand, #db9154);
    color: white;
}

/* ==========================================================================
   5. FOOTER (PIE DE PÁGINA) - ESTILO HELIUS
   ========================================================================== */
.main-footer {
    background: linear-gradient(to bottom, #164f4f 0%, #082020 100%);
    color: #e0e6ed;
    margin-top: 60px;
}

.footer-newsletter {
    background-color: rgba(0, 0, 0, 0.1); 
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.newsletter-text h3 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.newsletter-text p {
    color: #b8c7ce;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--brand, #db9154); 
    border-radius: 2px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 15px;
    display: inline-flex;
}

.brand-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #b8c7ce;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--brand, #db9154);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8c7ce;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--brand, #db9154);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #b8c7ce;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--brand, #db9154);
    margin-top: 4px;
}

.footer-contact-info a {
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2); 
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #8fa6b0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.developer-credit {
    font-size: 0.8rem;
}

/* ==========================================================================
   BANNER DE BÚSQUEDA (BUSQUEDA.PHP)
   ========================================================================== */
.search-header-banner {
    background-color: var(--primary, #164f4f);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.search-header-banner h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.search-header-banner p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #e0e6ed;
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--primary, #164f4f);
}

/* ==========================================================================
   PÁGINA DE DETALLE DEL PAQUETE (DETALLE.PHP)
   ========================================================================== */
.package-hero {
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    color: white;
}

.hero-detail-content {
    position: relative;
    z-index: 2;
}

.detail-category {
    background-color: var(--brand, #db9154);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.package-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-detail-meta i {
    color: var(--brand, #db9154);
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 80px;
    align-items: start;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 1.8rem;
    color: var(--primary, #164f4f);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.detail-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main, #333);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color, #e0e0e0);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: -42px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--brand, #db9154);
    color: var(--brand, #db9154);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    z-index: 2;
}

.type-vuelo { border-color: #3498db; color: #3498db; }
.type-hotel { border-color: #f1c40f; color: #d4ac0d; }
.type-traslado { border-color: #2ecc71; color: #2ecc71; }
.type-excursion { border-color: #9b59b6; color: #9b59b6; }
.type-asistencia { border-color: #e74c3c; color: #e74c3c; }

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color, #e0e0e0);
}

.timeline-date {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #555;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.booking-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--brand, #db9154);
}

.booking-price-box {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.price-title {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light, #777);
    margin-bottom: 5px;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary, #2c3e50);
}

.booking-includes {
    list-style: none;
    margin-bottom: 25px;
}

.booking-includes li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-includes i {
    color: var(--success, #28a745);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        position: static;
        order: -1;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   PÁGINA DE RESERVA / CHECKOUT (RESERVAR.PHP)
   ========================================================================== */
.reserve-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 80px;
    align-items: start;
}

.reserve-subtitle {
    color: var(--text-light, #777);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.reserve-form {
    background: var(--bg-white, #ffffff);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #e0e0e0);
}

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

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary, #2c3e50);
    margin-bottom: 8px;
}

.form-group .req {
    color: var(--danger, #e74c3c);
}

.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--brand, #db9154);
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 145, 84, 0.1);
}

.form-group small {
    color: #888;
    margin-top: 5px;
    font-size: 0.8rem;
}

.form-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-alert {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.info-alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px;
}

.reserve-summary-section {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--bg-white, #ffffff);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color, #e0e0e0);
}

.summary-card h3 {
    margin-bottom: 20px;
    color: var(--primary, #164f4f);
    font-size: 1.3rem;
}

.summary-img {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.summary-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary, #2c3e50);
}

.summary-date {
    font-size: 0.9rem;
    color: var(--text-light, #777);
    margin-bottom: 20px;
}

.summary-divider {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand, #db9154);
    margin-bottom: 0;
    margin-top: 5px;
}

@media (max-width: 850px) {
    .reserve-layout {
        grid-template-columns: 1fr;
    }
    
    .reserve-summary-section {
        position: static;
        order: -1; 
    }

    .form-grid {
        grid-template-columns: 1fr; 
    }
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN (DASHBOARD - INDEX.PHP)
   ========================================================================== */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary, #2c3e50);
    color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.admin-nav a:hover {
    opacity: 0.8;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-white, #ffffff);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 5px solid var(--brand, #db9154);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-card p {
    color: var(--text-light, #777);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-card h3 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--secondary, #2c3e50);
    font-weight: 800;
}

.o-block {
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.block-title {
    font-size: 1.3rem;
    color: var(--secondary, #2c3e50);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-title i {
    color: var(--brand, #db9154);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

thead th {
    background-color: #f8f9fa;
    color: var(--text-light, #777);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f5;
    color: var(--text-main, #333);
    vertical-align: middle;
}

tbody tr:hover {
    background-color: #fcfcfc;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    margin-right: 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background-color: var(--info, #3498db);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}
.btn-edit:hover { background-color: #2980b9; transform: translateY(-2px); }

.btn-del {
    background-color: var(--danger, #e74c3c);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}
.btn-del:hover { background-color: #c0392b; transform: translateY(-2px); }

.btn-ok {
    background-color: var(--success, #28a745);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* ==========================================================================
   PANEL DEL CLIENTE (VER_RESERVA.PHP)
   ========================================================================== */
.client-reserve-header {
    background-color: var(--secondary, #2c3e50);
    padding: 40px 0;
    color: white;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.reserve-id-badge {
    background-color: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.reserve-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 5px;
}

.reserve-status-box {
    text-align: right;
}

.status-label {
    display: block;
    font-size: 0.85rem;
    color: #b8c7ce;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-warning { background-color: var(--warning, #f1c40f); color: #856404; }
.badge-success { background-color: var(--success, #28a745); color: white; }
.badge-danger { background-color: var(--danger, #e74c3c); color: white; }

.reserve-main {
    padding-right: 20px;
}

.client-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #e0e0e0);
}

.section-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title-flex h2 {
    font-size: 1.5rem;
    margin: 0;
}

.pax-count {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #666;
    font-weight: bold;
}

.pax-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.pax-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

.pax-avatar {
    width: 40px;
    height: 40px;
    background: var(--brand, #db9154);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.pax-info h4 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    color: var(--primary, #164f4f);
}

.pax-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.pax-role {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--primary, #164f4f);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.pax-form-container {
    background: #fffbfa;
    padding: 25px;
    border: 1px dashed var(--brand, #db9154);
    border-radius: 8px;
    margin-top: 20px;
}

.pax-input-group {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.pax-input-group h4 {
    margin-top: 0;
    color: var(--brand, #db9154);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.itinerary-simple-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iti-row {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--brand, #db9154);
}

.iti-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

.iti-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.iti-text strong {
    font-size: 0.8rem;
    color: #777;
}

.iti-text span {
    font-size: 1.05rem;
    color: #333;
}

.iti-conf-badge {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.client-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #e0e0e0);
}

.client-card h3 {
    margin-top: 0;
    color: var(--secondary, #2c3e50);
    margin-bottom: 20px;
}

.finance-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
}

.text-success { color: var(--success, #28a745) !important; font-weight: bold; }
.text-danger { color: var(--danger, #e74c3c) !important; font-weight: bold; }

.total-balance {
    font-size: 1.3rem;
    margin-top: 10px;
}

.bank-info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #ccc;
    margin-top: 20px;
    font-size: 0.9rem;
}

.bank-info-box h4 {
    margin-top: 0;
    color: #333;
    margin-bottom: 10px;
}

.bank-info-box p {
    margin: 0 0 5px 0;
    color: #666;
}

.paid-badge-large {
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--success, #28a745);
    color: var(--success, #28a745);
    border-radius: 8px;
    font-weight: bold;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .reserve-main { padding-right: 0; }
    .iti-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .iti-status { margin-left: 45px; }
}

/* ==========================================================================
   PERFIL DE USUARIO (PERFIL.PHP)
   ========================================================================== */
.profile-header-banner {
    background-color: var(--primary, #164f4f);
    padding: 50px 0;
    color: white;
    margin-bottom: 40px;
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255,255,255,0.4);
}

.profile-user-info h1 {
    color: white;
    margin-bottom: 5px;
    font-size: 2rem;
}

.profile-user-info p {
    color: #b8c7ce;
    font-size: 1.05rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.profile-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #e0e0e0);
    height: fit-content;
}

.profile-nav {
    list-style: none;
}

.profile-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-main, #333);
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.profile-nav li a:hover, .profile-nav li a.active {
    background-color: #f8f9fa;
    color: var(--brand, #db9154);
    border-left: 4px solid var(--brand, #db9154);
}

.profile-nav li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-section-title {
    font-size: 1.8rem;
    color: var(--secondary, #2c3e50);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.empty-state-profile {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    border: 1px dashed #ccc;
}

.empty-state-profile i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state-profile h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.empty-state-profile p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card-horizontal {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color, #e0e0e0);
    transition: transform 0.2s, box-shadow 0.2s;
}

.booking-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.bk-img {
    width: 200px;
    flex-shrink: 0;
}

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

.bk-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bk-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.bk-id {
    font-size: 0.85rem;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
}

.bk-title {
    font-size: 1.3rem;
    color: var(--primary, #164f4f);
    margin-bottom: 12px;
}

.bk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
}

.bk-meta i {
    color: var(--brand, #db9154);
    margin-right: 5px;
}

.bk-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fcfcfc;
    border-left: 1px solid #eee;
    width: 200px;
    flex-shrink: 0;
}

.action-hint {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .profile-nav {
        display: flex;
        width: 100%;
    }
    
    .profile-nav li {
        flex: 1;
        text-align: center;
    }
    
    .profile-nav li a {
        justify-content: center;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .profile-nav li a.active {
        border-left: none;
        border-bottom: 4px solid var(--brand);
    }
    
    .booking-card-horizontal {
        flex-direction: column;
    }
    
    .bk-img {
        width: 100%;
        height: 180px;
    }
    
    .bk-actions {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }
    
    .action-hint {
        margin-top: 0;
    }
}

/* ==========================================================================
   PÁGINA DE LOGIN (LOGIN.PHP)
   ========================================================================== */
.login-body {
    background: linear-gradient(135deg, #164f4f 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    color: var(--secondary, #2c3e50);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-light, #777);
    font-size: 0.95rem;
}

.login-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #f5c6cb;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-pass {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.toggle-pass:hover {
    color: var(--brand, #db9154);
}

.form-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me {
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.forgot-link {
    color: var(--brand, #db9154);
    font-weight: 600;
}

.login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.login-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.login-copyright {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-top: 25px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}