/* ========================================
   VARIABLES Y COLORES
   ======================================== */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --muted: #6c757d;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Spacing */
    --spacer: 1rem;
    --border-radius: 0.5rem;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
}

body {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
}

/* ========================================
   ESTILOS GLOBALES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #0f0f0f;
    color: #e0e0e0;
}

body.dark-mode .navbar, body.dark-mode .footer {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-control, body.dark-mode .form-select {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .btn-outline-secondary {
    border-color: #666;
    color: #999;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-image {
    text-align: center;
    padding: 2rem;
}

.hero-image .illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: 4rem 0;
}

.stat-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

body.dark-mode .stat-card {
    background-color: #2d2d2d;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 6rem 0;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

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

body.dark-mode .feature-card {
    background-color: #2d2d2d;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.feature-icon.bg-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.feature-icon.bg-success { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.feature-icon.bg-warning { background: linear-gradient(135deg, #fa709a, #fee140); }
.feature-icon.bg-info { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.feature-icon.bg-danger { background: linear-gradient(135deg, #ff6b6b, #ff8e53); }

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
    padding: 6rem 0;
}

.pricing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

body.dark-mode .pricing-card {
    background-color: #2d2d2d;
    border-color: #444;
}

.price {
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-primary);
}

.price .period {
    color: var(--muted);
    font-size: 1rem;
}

.features-list {
    text-align: left;
}

.features-list ul li {
    padding-bottom: 0.5rem;
    color: var(--text-secondary);
}

.features-list ul li.disabled {
    opacity: 0.5;
}

.features-list i {
    margin-right: 0.5rem;
    width: 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
}

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

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

.btn-white:hover {
    background: #f0f0f0;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card-header.bg-gradient {
    background: var(--gradient-primary);
    color: white;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--dark);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: white !important;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    transition: color 0.3s;
    color: #aaa !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* ========================================
   FORMS
   ======================================== */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-check-input {
    border: 2px solid #dee2e6;
    width: 1.25em;
    height: 1.25em;
}

.form-check-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.password-requirements {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ========================================
   TABLES
   ======================================== */
.table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

body.dark-mode .table {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.table thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 2px solid #dee2e6;
}

body.dark-mode .table thead {
    background: #3d3d3d;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

body.dark-mode .table tbody tr:hover {
    background: #3d3d3d;
}

/* ========================================
   ACCORDIONS
   ======================================== */
.accordion-button {
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: none;
    border-bottom: 2px solid #e0e0e0;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--primary);
    box-shadow: none;
}

body.dark-mode .accordion-button {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .accordion-button:not(.collapsed) {
    background-color: #3d3d3d;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    color: white;
    margin-top: auto;
    padding: 3rem 0 1rem;
}

.footer a {
    color: #aaa;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
    padding: 6rem 0;
}

.step-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

body.dark-mode .step-card {
    background-color: #2d2d2d;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-family: var(--font-primary);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-primary);
}

/* ========================================
   UTILIDADES
   ======================================== */
.py-8 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-8 {
    margin-bottom: 6rem !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.opacity-10 {
    opacity: 0.1;
}

.shadow-sm {
    box-shadow: var(--box-shadow);
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg);
}

.transition {
    transition: all 0.3s ease;
}

.rounded-lg {
    border-radius: 1rem;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-6 {
    font-size: 2rem;
    font-weight: 700;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner-border {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar, .footer, .btn, .alert {
        display: none !important;
    }

    body {
        background: white;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #3d3d3d;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #666;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #999;
}
