/* ========================================
   CALERA TOURS - ESTILOS PRINCIPALES
   ======================================== */

/* Variables CSS */
:root {
    --color-primary: #1a4d4d;
    --color-secondary: #d4571f;
    --color-accent: #9ed900;
    --color-white: #ffffff;
    --color-light: #f5e6d3;
    --color-gray: #666666;
    --color-gray-light: #e0e0e0;
    --color-dark: #1a1a1a;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 15px;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, var(--color-primary), #0d3333);
    color: var(--color-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   LOGIN Y REGISTRO
   ======================================== */

.login-page,
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3333 100%);
}

.login-container,
.register-container {
    background: var(--color-white);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Logo Container - REDUCIDO 50% */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    width: 75px; /* Reducido de 150px → 75px (50% menos) */
    height: auto;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-container h1 {
    color: var(--color-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-container p {
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-gray-light);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--color-white);
}

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

/* Botones - AUMENTADOS DE TAMAÑO */
.btn {
    width: 100%;
    padding: 16px 24px; /* Aumentado de 12px → 16px */
    border: none;
    border-radius: 12px;
    font-size: 18px; /* Aumentado de 16px → 18px */
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), #ff7a3d);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--color-gray-light);
}

.form-footer p {
    color: var(--color-gray);
    font-size: 14px;
}

.form-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Selector de Idioma */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botones de idioma en el header - MISMO TAMAÑO QUE ICONOS */
.header-actions .lang-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-actions .lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-actions .lang-btn.active {
    background: linear-gradient(135deg, var(--color-accent), #b3f000);
    box-shadow: 0 2px 10px rgba(158, 217, 0, 0.4);
}

/* Selector de idioma en login/registro */
.login-page .language-selector,
.register-page .language-selector {
    justify-content: center;
    margin-top: 20px;
}

.login-page .lang-btn,
.register-page .lang-btn {
    padding: 10px 20px;
    border: 2px solid var(--color-gray-light);
    background: var(--color-white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    width: auto;
    height: auto;
}

.login-page .lang-btn:hover,
.register-page .lang-btn:hover {
    border-color: var(--color-accent);
    background: rgba(158, 217, 0, 0.1);
}

.login-page .lang-btn.active,
.register-page .lang-btn.active {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    font-weight: 700;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Header Title - Sin Logo */
.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title h2 {
    color: var(--color-light);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Botón de regreso */
.back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

/* Header Actions - Botones alineados */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botones de iconos (notificaciones y perfil) - CON COLOR */
.icon-btn {
    background: linear-gradient(135deg, var(--color-secondary), #ff7a3d);
    border: none;
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 10px rgba(212, 87, 31, 0.3);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 87, 31, 0.5);
}

.icon-btn:active {
    transform: translateY(0);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ========================================
   PÁGINA HOME
   ======================================== */

.home-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--color-primary), #0d3333);
}

.main-content {
    padding: 20px 0 40px;
}

.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.welcome-section h1 {
    color: var(--color-light);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-section p {
    color: var(--color-accent);
    font-size: 18px;
}

/* Menu Grid - TARJETAS MÁS GRANDES */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Aumentado de 250px → 280px */
    gap: 30px; /* Aumentado de 25px → 30px */
    margin-bottom: 40px;
}

.menu-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px 30px; /* Aumentado de 35px 25px → 40px 30px */
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

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

.menu-icon {
    width: 90px; /* Aumentado de 80px → 90px */
    height: 90px;
    margin: 0 auto 25px; /* Aumentado espaciado de 20px → 25px */
    background: linear-gradient(135deg, var(--color-secondary), #ff7a3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px; /* Aumentado de 36px → 42px */
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.menu-card h3 {
    color: var(--color-primary);
    font-size: 22px; /* Aumentado de 20px → 22px */
    font-weight: 700;
    margin-bottom: 12px;
}

.menu-card p {
    color: var(--color-gray);
    font-size: 15px; /* Aumentado de 14px → 15px */
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .login-container,
    .register-container {
        padding: 30px 25px;
    }
    
    .logo-container h1 {
        font-size: 28px;
    }
    
    .header-logo h2 {
        display: none;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-card {
        padding: 35px 25px;
    }
    
    .menu-icon {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .logo-container img {
        width: 60px; /* Más pequeño en móviles */
    }
    
    .header-logo img {
        width: 35px;
        height: 35px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .welcome-section {
        padding: 30px 15px;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .menu-card h3 {
        font-size: 20px;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensajes de Error/Éxito */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}
/* ═══════════════════════════════════════════════
   Modal de Categorías (Recreación / Turismo)
   Agregar al final de css/styles.css
   ═══════════════════════════════════════════════ */

.category-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    box-sizing: border-box;
}

.category-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.25s ease;
}

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

.category-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: #1a4d4d;
    color: #fff;
}

.category-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.subcategory-list {
    padding: 0.75rem 0;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-item:hover {
    background: #f5f9f5;
}

.subcategory-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #1a4d4d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.subcategory-info {
    flex: 1;
}

.subcategory-info h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: #1a1a1a;
}

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

.subcategory-arrow {
    color: #bbb;
    font-size: 0.9rem;
}