/* Variables de Color - Tema Azul Marino y Naranja */
:root {
    --primary-color: #1a355b;
    --primary-dark: #132840;
    --primary-light: #2f5688;
    --accent-color: #f26522;
    --accent-dark: #d85618;
    --accent-light: #ff8a4d;
    --text-dark: #111111;
    --text-light: #4f4f4f;
    --bg-light: #f5f5f5;
    --bg-orange-light: #fff1e8;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(26,53,91,0.18);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* PANTALLA DE BIENVENIDA */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.welcome-container {
    max-width: 600px;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeInUp 0.6s ease-out;
}

.benito-avatar { margin-bottom: 30px; }

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(242,101,34,0.35);
}

.welcome-container h1 { font-size: 2.5em; color: var(--text-dark); margin-bottom: 20px; }

.benito-message {
    background: var(--bg-orange-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.benito-message p { font-size: 1.1em; color: var(--text-dark); line-height: 1.8; }

/* PANTALLA DE LOGIN */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out;
}

.logo h1 { font-size: 2.5em; color: var(--text-dark); text-align: center; margin-bottom: 5px; }
.logo .highlight { color: var(--accent-color); }
.tagline { text-align: center; color: var(--text-light); margin-bottom: 30px; font-size: 0.95em; }

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab:hover { color: var(--primary-color); }

/* Formularios */
.auth-form { animation: fadeIn 0.3s ease-out; padding-bottom: 10px; }
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
}

/* Listas desplegables en páginas con tema claro (index, login) */
.form-group select,
.select-filter {
    color-scheme: light;
    background-color: #ffffff;
    color: var(--text-dark);
}

.form-group select option,
.select-filter option {
    background-color: #ffffff;
    color: var(--text-dark);
}

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

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

/* Botones */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(242,101,34,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,101,34,0.38);
}

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

.btn-secondary:hover { background: rgba(26,53,91,0.06); }

.btn-block { width: 100%; }
.btn-large { padding: 16px 40px; font-size: 1.1em; }
.btn-small { padding: 8px 16px; font-size: 0.9em; }

/* Mensajes de Error */
.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    border-left: 4px solid var(--error-color);
}

.info-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.info-text { color: var(--text-light); font-size: 0.9em; margin-bottom: 10px; }

.link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.link:hover { color: var(--accent-dark); text-decoration: underline; }

/* HEADER */
.header {
    background: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-header h1 { font-size: 1.8em; color: white; }

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

.user-name { color: white; font-weight: 500; }

.badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 10px;
}

/* MAIN CONTENT */
.main-content { padding: 30px 20px; }

.benito-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.benito-mini {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.benito-tip { font-size: 1.05em; line-height: 1.6; }

/* Alertas */
.alert { padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.alert-warning { background: #fff3cd; border-left: 4px solid var(--warning-color); }
.alert h3 { margin-bottom: 10px; color: var(--text-dark); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

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

.card-wide { grid-column: 1 / -1; }

.card-header {
    background: white;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 { font-size: 1.3em; color: var(--text-dark); }
.card-body { padding: 20px; }

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-style: italic;
}

/* Professional Items */
.professional-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.professional-item:last-child { border-bottom: none; }
.professional-label { font-weight: 600; color: var(--text-dark); }
.professional-value { color: var(--text-light); }

/* Progress Bars */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 13px;
    transition: width 0.5s ease-out;
}

/* Search */
.search-container { display: flex; gap: 10px; margin-bottom: 20px; }

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    display: grid;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s;
}

.search-result-item:hover {
    background: rgba(26,53,91,0.05);
    transform: translateX(5px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-info { flex: 1; }
.search-result-name { font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }
.search-result-details { font-size: 0.9em; color: var(--text-light); }

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-large { max-width: 800px; }

.modal-header {
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.modal-header h2 { font-size: 1.5em; color: var(--text-dark); }

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.modal-body { padding: 25px; }

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* PROFESSIONAL DASHBOARD */
.tabs-professional {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tab-prof {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
}

.tab-prof.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(26,53,91,0.28);
}

.section-content { animation: fadeIn 0.3s ease-out; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 { font-size: 1.8em; color: var(--text-dark); }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.client-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.client-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

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

.client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.client-info h3 { font-size: 1.2em; color: var(--text-dark); margin-bottom: 3px; }
.client-info p { color: var(--text-light); font-size: 0.9em; }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.content-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.content-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.content-card h3 { color: var(--text-dark); margin-bottom: 10px; font-size: 1.2em; }
.content-card p { color: var(--text-light); font-size: 0.95em; margin-bottom: 15px; }

.content-card.out-of-range {
    border-left: 3px solid var(--warning-color);
    background-color: rgba(255, 152, 0, 0.05);
}

.content-card.out-of-range:hover {
    background-color: rgba(255, 152, 0, 0.1);
}

.content-card-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Form Items */
.foods-container, .exercises-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.food-item, .exercise-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-number { font-weight: bold; color: var(--primary-color); }

.remove-item-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.remove-item-btn:hover { background: #d32f2f; }

.item-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .welcome-container, .login-container { padding: 30px 20px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .header-content { flex-direction: column; gap: 15px; }
    .tabs-professional { flex-direction: column; }
    .clients-grid, .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .welcome-container h1 { font-size: 2em; }
    .logo h1 { font-size: 2em; }
}

/* Imagen de Benito */
.benito-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(242, 101, 34, 0.35);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Caricatura de Benito */
.benito-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(242, 101, 34, 0.35));
    animation: pulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.benito-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ADMIN SPECIFIC */
.badge-admin {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    font-size: 0.75em;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabs-admin {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tab-admin {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
}

.tab-admin.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.user-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.user-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

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

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.user-info h3 {
    font-size: 1.2em;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.user-info p {
    color: var(--text-light);
    font-size: 0.9em;
}

.user-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.role-cliente { background: #e3f2fd; color: #1976d2; }
.role-nutricionista { background: #fff3e0; color: #f57c00; }
.role-entrenador { background: #f3e5f5; color: #7b1fa2; }
.role-admin { background: #ffebee; color: #d32f2f; }

.plan-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}
.plan-premium { background: linear-gradient(135deg, #7c6af7, #a78bfa); color: #fff; }
.plan-free { background: #2a2a2a; color: #aaa; border: 1px solid #3a3a3a; }

.user-date {
    font-size: 0.85em;
    color: var(--text-light);
}

.create-user-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: var(--warning-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.select-filter {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
}

.detail-value {
    color: var(--text-light);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #d32f2f);
    color: white;
}

.btn-danger:hover {
.btn-google svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-light);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.9em;
}

/* Google OAuth Button */
.btn-google {
    background: white;
    color: #757575;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-google svg {
        white-space: nowrap;
    }
    
    .btn-google svg {
        width: 16px;
        height: 16px;
    }
    
    .auth-divider {
        margin: 15px 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
        margin: 10px;
        max-height: 90vh;
    }
    
    #google-register-btn {
        display: block !important;
        margin-top: 15px;
    }
    
    .form-group:last-of-type {
        margin-bottom: 20px;
    }
}
/* Google OAuth Button - Actualizado */
.btn-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    min-height: 48px; /* Tamaño mínimo táctil */
    white-space: nowrap; /* Evitar que el texto se parta */
    cursor: pointer;
    touch-action: manipulation; /* Elimina el delay de 300ms en iOS */
    text-decoration: none; /* Para cuando se usa como <a> */
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-google svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* RESPONSIVE - Correcciones móviles */
@media (max-width: 768px) {
    .login-container {
        max-height: 95vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .auth-form {
        padding-bottom: 20px;
    }
    
    .btn-google {
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    .btn-google svg {
        width: 16px;
        height: 16px;
    }
    
    .auth-divider {
        margin: 15px 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
        margin: 10px;
        max-height: 90vh;
    }
    
    #google-register-btn {
        display: block !important;
        margin-top: 15px;
    }
    
    .form-group:last-of-type {
        margin-bottom: 20px;
    }
}

/* Botones de tipo de búsqueda */
.search-type-btn {
    transition: all 0.3s;
}

.search-type-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
