/* ========================================
   NYOBEL CRM - Public Frontend Styles
   Modern Design v2.0
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --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);
    --radius: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    max-height: 48px;
    width: auto;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}
.mobile-menu.show {
    display: flex;
}
.mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
    color: var(--white);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}
.btn-link:hover {
    color: var(--primary-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* ========================================
   Page Hero (para páginas internas)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 80px 0;
    background: var(--white);
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    padding: 32px;
    background: var(--light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}
.cta h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.cta p {
    opacity: 0.8;
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   MODERN FORM STYLES
   ======================================== */
.form-section {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
    background: var(--light);
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .form-card {
        padding: 28px;
        margin: 0 12px;
    }
}

.form-section-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.form-group {
    margin-bottom: 24px;
}

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

.required {
    color: var(--danger);
}

/* Modern Input Styles */
.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
    outline: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-control:hover {
    border-color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 48px;
}

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

.form-divider {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 36px 0;
}

.form-submit {
    margin-top: 36px;
}

.form-submit .btn {
    font-size: 1.1rem;
    padding: 18px 32px;
}

.form-disclaimer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Account Required Box */
.account-notice {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.account-notice strong {
    color: var(--primary-dark);
}

.account-notice p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
}
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}
.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* ========================================
   Thank You Page
   ======================================== */
.thank-you {
    padding: 100px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.thank-you-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thank-you-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}
.thank-you-content h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}
.thank-you-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ========================================
   Footer - 3 Column Layout
   ======================================== */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    align-items: start;
}

/* Columna 1: Brand */
.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-brand > p {
    opacity: 0.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Columna 2: Info (Centro) */
.footer-info {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.9;
}

.footer-info p {
    margin-bottom: 6px;
    opacity: 0.9;
}

.footer-info a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info a:hover {
    color: #93c5fd;
}

/* Columna 3: Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    text-align: right;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    font-weight: 500;
}

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

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

.footer-bottom .copyright-left {
    margin: 0;
}

.footer-bottom .powered-right {
    margin: 0;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .footer-links a:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer Logo */
.footer-logo {
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}