/* ===== REGISTRO NEGOCIO CSS ===== */
/* Archivo CSS dedicado para la página de registro de negocios */

/* OAuth Styles */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-6) 0;
    text-align: center;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.oauth-divider span {
    padding: 0 var(--space-4);
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, #34a853 0%, #34a853 50%, #34a853 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-google:hover {
    background: linear-gradient(135deg, #34a853 0%, #34a853 50%, #34a853 100%);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-google .fab.fa-google {
    color: #ffffff;
    font-size: 1.125rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-google .fas.fa-spinner {
    color: #ffffff;
}

:root {
    /* Colores vibrantes y divertidos */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --accent: #ec4899;
    --accent-light: #f472b6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutros modernos */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradientes divertidos */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Bordes y sombras */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: hidden;
}

/* ===== HEADER SIMPLIFICADO ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #4A90E2 40%, #6dd5ed 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

/* ===== NAVEGACIÓN ===== */
/* Los estilos de navegación se heredan de navigation-unified.css */

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px); /* Ajustado para footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
}

.registration-container {
    max-width: 800px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.registration-header {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-8);
    text-align: center;
}

.registration-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: white !important;
}

#form-title {
    color: white !important;
}

.registration-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FORMULARIO ===== */
.registration-form {
    padding: var(--space-8);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.form-section-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

/* Responsive grid adjustments */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-3);
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.form-checkbox label {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: none;
}

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

.form-help {
    color: #6b7280;
    display: block;
    margin-top: 2px;
    font-size: 0.875rem;
}

.submit-help {
    text-align: center;
    margin-top: 8px;
}

.privacy-notice {
    margin-top: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    font-size: 0.9em;
    color: #6c757d;
    border-radius: 4px;
}

.privacy-notice i {
    margin-right: 8px;
    color: #007bff;
}

/* ===== CAMPOS DE CONTRASEÑA CON TOGGLE ===== */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-input {
    padding-right: 48px; /* Espacio para el botón */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-500);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.password-toggle i {
    font-size: 16px;
    transition: var(--transition);
}

/* ===== BOTONES ===== */
.btn {
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== SPINNER Y ANIMACIONES ===== */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== ALERTAS ===== */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    display: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== RESPONSIVE DESIGN OPTIMIZADO ===== */

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .header-container {
        height: 60px;
        padding: 0 clamp(12px, 3vw, 16px);
    }
    
    .logo {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
    
    .logo-icon {
        width: clamp(35px, 8vw, 40px);
        height: clamp(35px, 8vw, 40px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .main-content {
        margin-top: 60px;
        padding: clamp(12px, 3vw, 16px);
        min-height: calc(100vh - 120px);
    }
    
    .registration-container {
        max-width: 100%;
        padding: 0;
        margin: 0;
        border-radius: clamp(16px, 4vw, 24px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
    
    .registration-header {
        padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px);
    }
    
    .registration-header h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.2;
        margin-bottom: clamp(12px, 3vw, 16px);
    }
    
    .registration-header p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.4;
    }
    
    .registration-form {
        padding: clamp(16px, 4vw, 24px);
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(12px, 3vw, 16px);
    }
    
    .form-section {
        padding: clamp(16px, 4vw, 20px);
        margin-bottom: clamp(16px, 4vw, 20px);
        border-radius: clamp(12px, 3vw, 16px);
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
    }
    
    .form-section h3 {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: clamp(12px, 3vw, 16px);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Evita zoom en iOS */
        padding: clamp(12px, 3vw, 16px) clamp(14px, 3.5vw, 18px);
        border-radius: clamp(8px, 2vw, 12px);
        border: 1px solid var(--gray-300);
        transition: all 0.2s ease;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        transform: translateY(-1px);
    }
    
    .btn {
        width: 100%;
        padding: clamp(14px, 3.5vw, 18px) clamp(20px, 5vw, 28px);
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        border-radius: clamp(10px, 2.5vw, 14px);
        margin-top: clamp(16px, 4vw, 24px);
    }
    
    .alert {
        margin: clamp(12px, 3vw, 16px) 0;
        padding: clamp(12px, 3vw, 16px);
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        border-radius: clamp(8px, 2vw, 12px);
    }
    
    .form-checkbox {
        margin: clamp(16px, 4vw, 20px) 0;
    }
    
    .privacy-notice {
        padding: clamp(12px, 3vw, 16px);
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        line-height: 1.4;
        border-radius: clamp(8px, 2vw, 12px);
    }
}

/* Mobile Medium (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .header-container {
        height: 70px;
        padding: 0 clamp(16px, 3vw, 24px);
    }
    
    .logo {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }
    
    .logo-icon {
        width: clamp(40px, 7vw, 45px);
        height: clamp(40px, 7vw, 45px);
        font-size: clamp(1rem, 2.5vw, 1.1rem);
    }
    
    .main-content {
        margin-top: 70px;
        padding: clamp(16px, 3vw, 24px);
        min-height: calc(100vh - 140px);
    }
    
    .registration-container {
        max-width: min(95vw, 600px);
        padding: 0;
        margin: 0 auto;
        border-radius: clamp(18px, 3vw, 24px);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    }
    
    .registration-header {
        padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 32px);
    }
    
    .registration-header h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
        line-height: 1.25;
        margin-bottom: clamp(16px, 3vw, 20px);
    }
    
    .registration-header p {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        line-height: 1.5;
    }
    
    .registration-form {
        padding: clamp(20px, 4vw, 32px);
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .form-group.full-width {
        grid-column: 1 / -1;
    }
    
    .form-section {
        padding: clamp(20px, 4vw, 28px);
        margin-bottom: clamp(20px, 4vw, 28px);
        border-radius: clamp(14px, 3vw, 18px);
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
    }
    
    .form-section h3 {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
        margin-bottom: clamp(16px, 3vw, 20px);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: clamp(14px, 3vw, 18px) clamp(16px, 3.5vw, 20px);
        border-radius: clamp(10px, 2.5vw, 14px);
        border: 1px solid var(--gray-300);
        transition: all 0.2s ease;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        transform: translateY(-1px);
    }
    
    .btn {
        width: 100%;
        padding: clamp(16px, 3.5vw, 20px) clamp(24px, 5vw, 32px);
        font-size: clamp(1rem, 3vw, 1.1rem);
        border-radius: clamp(12px, 3vw, 16px);
        margin-top: clamp(20px, 4vw, 28px);
    }
    
    .alert {
        margin: clamp(16px, 3vw, 20px) 0;
        padding: clamp(14px, 3vw, 18px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(10px, 2.5vw, 14px);
    }
}

/* iPad Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .header-container {
        height: 80px;
        padding: 0 clamp(20px, 3vw, 32px);
    }
    
    .logo {
        font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    }
    
    .logo-icon {
        width: clamp(45px, 6vw, 50px);
        height: clamp(45px, 6vw, 50px);
        font-size: clamp(1.1rem, 2vw, 1.25rem);
    }
    
    .main-content {
        margin-top: 80px;
        padding: clamp(24px, 4vw, 40px);
        min-height: calc(100vh - 160px);
    }
    
    .registration-container {
        max-width: min(85vw, 700px);
        margin: 0 auto;
        border-radius: clamp(20px, 3vw, 28px);
        box-shadow: 0 16px 64px rgba(0, 0, 0, 0.12);
    }
    
    .registration-header {
        padding: clamp(32px, 5vw, 48px);
    }
    
    .registration-header h1 {
        font-size: clamp(2rem, 4vw, 2.5rem) !important;
        line-height: 1.2;
        margin-bottom: clamp(20px, 3vw, 24px);
    }
    
    .registration-header p {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        line-height: 1.5;
    }
    
    .registration-form {
        padding: clamp(28px, 5vw, 40px);
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(20px, 4vw, 32px);
    }
    
    .form-section {
        padding: clamp(24px, 4vw, 32px);
        margin-bottom: clamp(24px, 4vw, 32px);
        border-radius: clamp(16px, 3vw, 20px);
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
    }
    
    .form-section h3 {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        margin-bottom: clamp(18px, 3vw, 24px);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: clamp(16px, 2vw, 18px);
        padding: clamp(16px, 3vw, 20px) clamp(18px, 3.5vw, 24px);
        border-radius: clamp(12px, 2.5vw, 16px);
    }
    
    .btn {
        width: 100%;
        padding: clamp(18px, 3.5vw, 24px) clamp(28px, 5vw, 40px);
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        border-radius: clamp(14px, 3vw, 18px);
        margin-top: clamp(24px, 4vw, 32px);
    }
}

/* iPad Landscape & iPad Pro (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .main-content {
        padding: clamp(32px, 4vw, 48px);
    }
    
    .registration-container {
        max-width: min(80vw, 900px);
        margin: 0 auto;
    }
    
    .registration-header {
        padding: clamp(40px, 5vw, 56px);
    }
    
    .registration-header h1 {
        font-size: clamp(2.2rem, 3vw, 2.8rem) !important;
    }
    
    .registration-form {
        padding: clamp(32px, 4vw, 48px);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(24px, 3vw, 40px);
    }
    
    .form-section {
        padding: clamp(28px, 4vw, 40px);
        margin-bottom: clamp(28px, 4vw, 40px);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: clamp(16px, 1.5vw, 18px);
        padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
    }
    
    .btn {
        padding: clamp(20px, 3vw, 28px) clamp(32px, 4vw, 48px);
        font-size: clamp(1.1rem, 2vw, 1.4rem);
    }
}
