/**
 * ============================================
 * assets/css/style.css - ESTILOS PRINCIPALES
 * ============================================
 * Hoja de estilos unificada con Bootstrap 5
 * 
 * Incluye:
 * - Variables CSS personalizadas
 * - Sobrescrituras de Bootstrap
 * - Componentes personalizados
 * - Utilidades adicionales
 */

:root {
    /* Colores principales */
    --bs-primary: #2563eb;
    --bs-secondary: #10b981;
    --bs-success: #10b981;
    --bs-danger: #ef4444;
    --bs-warning: #f59e0b;
    --bs-info: #06b6d4;
    --bs-light: #f3f4f6;
    --bs-dark: #1f2937;
    
    /* Alias para compatibilidad */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-light: #6b7280;
    
    /* Sombras */
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/**
 * ============================================
 * RESET Y ESTILOS BASE
 * ============================================
 * Normalización de estilos predeterminados
 * y configuración de base para todo el sitio
 */

* {
    /* Reset de márgenes y padding */
    margin: 0;
    padding: 0;
    /* Box sizing para cálculos de ancho correcto */
    box-sizing: border-box;
}

/* Estilos base del body */
body {
    /* Fuente del sistema */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/**
 * ============================================
 * NAVBAR - BARRA DE NAVEGACIÓN
 * ============================================
 * Navegación principal del sitio
 * Sticky (pegada en la parte superior)
 */

.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo strong {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   CONTAINER Y LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.6s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    /* Asegurar que los botones sean clickeables */
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 5rem 0;
    background: var(--light-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card:hover .feature-icon {
    animation: none;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
    padding: 5rem 0;
    background: #fff;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    text-align: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.pricing-card .price {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 900;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.pricing-card li::before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-weight: 700;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.06);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.pricing-card.featured:hover {
    transform: scale(1.09) translateY(-12px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3);
}

.pricing-card input[type="radio"] {
    margin-bottom: 1.5rem;
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    background-color: white;
    transition: all 0.3s ease;
}

.pricing-card input[type="radio"]:hover {
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.pricing-card input[type="radio"]:checked {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5), inset 0 0 0 2px white;
}

.badge-popular {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: var(--light-color);
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1845a8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #0891b2;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   AUTH PAGES (Login/Registro)
   ============================================ */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--light-color);
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.65rem;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-secondary-color);
}

.form-control {
    width: 100%;
    padding: 1rem 1.15rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background-color: white;
    color: var(--dark-color);
}

.form-group label::after {
    content: '';
}

.form-group label:has(+ input[required])::after,
.form-group label:has(+ textarea[required])::after,
.form-group label:has(+ select[required])::after {
    content: '*';
    color: var(--danger-color);
    margin-left: 0.25rem;
    font-weight: 900;
}

.form-control::placeholder {
    color: #d1d5db;
    opacity: 1;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(37, 99, 235, 0.15);
    background-color: #f9fcfd;
}

.form-control:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-group small.text-error {
    color: var(--danger-color);
    font-weight: 600;
    margin-top: 0.4rem;
}

.form-control.input-error {
    border-color: var(--danger-color);
    background-color: #fef2f2;
}

.form-control.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
    border-radius: 8px;
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

select.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="file"].form-control {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: var(--secondary-color);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: #cffafe;
    color: #164e63;
    border-left-color: var(--info-color);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #cffafe;
    color: #164e63;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background: var(--light-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    padding-bottom: 0;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 2rem 2.5rem;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   STEP WIZARD
   ============================================ */

.step-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.step-wizard:before {
    content: '';
    position: absolute;
    top: 24px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, #e5e7eb 0%, var(--primary-color) 50%, #e5e7eb 100%);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.step.completed .step-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
}

.step.completed .step-circle::before {
    content: '✓';
    position: absolute;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
    transform: scale(1.05);
}

.step.completed .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features h2,
    .pricing h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .table-container {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .step-wizard {
        flex-wrap: wrap;
        padding: 0;
    }
    
    .step {
        flex-basis: 33.333%;
        margin-bottom: 2rem;
    }
    
    .step-wizard:before {
        display: none;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .auth-box {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .card {
        padding: 1.75rem;
    }
    
    .card-body {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 0;
    }
    
    .features,
    .pricing,
    .cta {
        padding: 2rem 0;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .flex-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1.5rem;
        font-size: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1.25rem;
    }
    
    .pricing-card h3 {
        font-size: 1.25rem;
    }
    
    .pricing-card .price {
        font-size: 2rem;
    }
    
    .alert-verification {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .alert-verification-icon {
        font-size: 1.5rem;
    }
    
    .step {
        flex-basis: 50%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .footer,
    .btn,
    .step-wizard {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ============================================
   DARK MODE (Opcional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Descomenta para habilitar modo oscuro automático
    :root {
        --primary-color: #3b82f6;
        --dark-color: #f3f4f6;
        --light-color: #1f2937;
        --border-color: #374151;
        --text-color: #e5e7eb;
        --text-light: #9ca3af;
    }
    
    body {
        background-color: #111827;
        color: var(--text-color);
    }
    */
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/**
 * ============================================
 * ESTILOS PARA AVISOS DE VERIFICACIÓN
 * ============================================
 * Avisos para indicar que la información
 * debe estar respaldada por documentación
 */

.alert-verification {
    background: linear-gradient(135deg, #fef9e7 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    color: #92400e;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    transition: all 0.3s ease;
}

.alert-verification:hover {
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
}

.alert-verification-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    margin-top: 1px;
    animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.alert-verification-content {
    flex: 1;
}

.alert-verification-title {
    font-weight: 800;
    margin-bottom: 0.65rem;
    color: #b45309;
    font-size: 1.05rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.alert-verification-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #92400e;
}

.alert-verification-text strong {
    color: #d97706;
    font-weight: 700;
}

/* ============================================
   ESTILOS PARA GESTIÓN DE CUENTA (cuenta.php)
   ============================================ */

.password-strength {
    height: 6px;
    border-radius: 3px;
    background: #eee;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.password-strength.weak {
    background: var(--bs-danger);
}

.password-strength.medium {
    background: var(--bs-warning);
}

.password-strength.strong {
    background: var(--bs-success);
}

.alert-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-with-icon i {
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* ============================================
   ESTILOS PARA TARJETAS DE PRECIO SELECCIONADAS
   ============================================ */
.price-card {
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.price-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.price-card.selected {
    border: 4px solid #28a745 !important;
    box-shadow: 0 0.75rem 2rem rgba(40, 167, 69, 0.4) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%) !important;
    transform: scale(1.02);
}

/* ============================================
   FIN DE ESTILOS
   ============================================ */