/* Estilos principales con esquema de colores azul monocromático */
:root {
    --primary-blue: #0010ef;
    --light-blue: #4a5cff;
    --dark-blue: #0008a3;
    --background-blue: #f0f2ff;
    --gradient-blue: linear-gradient(135deg, #0c104d 0%, #4a5cff 100%);
    --gradient-light: linear-gradient(135deg, #f0f2ff 0%, #ffffff 100%);
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --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);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--gradient-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav a:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: var(--gradient-blue);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.025em;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #0008a3 0%, #0010ef 100%);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

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

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

/* Formularios */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 16, 239, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

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

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

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

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 15px;
    font-weight: 600;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-success {
    background-color: #28a745;
    color: var(--white);
}

.badge-info {
    background-color: #17a2b8;
    color: var(--white);
}

.badge-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.badge-danger {
    background-color: #dc3545;
    color: var(--white);
}

/* Discount badges */
.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

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

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.price-savings {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-secondary {
    background-color: #6c757d;
    color: var(--white);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Hero Section */
.hero {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 6rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features {
    margin: 6rem 0;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 16, 239, 0.1);
}

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

.feature-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 16, 239, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

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

.product-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 2rem 0;
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-light);
    padding: 5rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin: 6rem 0;
    border: 1px solid rgba(0, 16, 239, 0.1);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 4rem auto;
    position: relative;
}

.form-container.wide {
    max-width: 800px;
}

.form-container.two-columns {
    max-width: 900px;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.form-header h1 {
    font-size: 2.75rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 400;
}

/* Professional Form Card */
.form-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(0, 16, 239, 0.08);
    backdrop-filter: blur(20px);
}

.form-card.two-columns {
    padding: 3.5rem;
}

.form-card.two-columns .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0;
}

.form-card.two-columns .form-group {
    margin-bottom: 2rem;
}

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

.form-card.two-columns .btn-submit {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 2rem auto 0;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: 24px 24px 0 0;
}

.form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 16, 239, 0.02) 0%, rgba(74, 92, 255, 0.02) 100%);
    border-radius: 24px;
    pointer-events: none;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.form-group:focus-within label::after {
    width: 30px;
}

/* Enhanced Form Controls */
.form-control {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1), var(--shadow-md);
    transform: translateY(-2px);
    background: #fafbff;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.7;
}

/* Input Icons */
.input-group {
    position: relative;
}

.input-group .form-control {
    padding-left: 3rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.form-group:focus-within .input-icon {
    color: var(--primary-blue);
}

/* Enhanced Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #0008a3 0%, #0010ef 100%);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.form-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gradient-blue);
}

.form-footer p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.form-footer a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.form-footer a:hover::after {
    width: 100%;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.password-strength.weak::before { width: 25%; background: #ef4444; }
.password-strength.medium::before { width: 50%; background: #f59e0b; }
.password-strength.strong::before { width: 75%; background: #10b981; }
.password-strength.very-strong::before { width: 100%; background: var(--gradient-blue); }

/* Form Validation States */
.form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alert Styles */
.alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Form responsive */
    .form-container.two-columns {
        max-width: 500px;
    }
    
    .form-card.two-columns .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-card.two-columns {
        padding: 2.5rem;
    }
    
    .form-card.two-columns .btn-submit {
        max-width: 100%;
        margin: 1.5rem auto 0;
    }
    
    /* Checkout responsive */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-product-card {
        position: static !important;
    }
    
    .checkout-social-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Products page responsive */
    .products-hero-stats {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .products-filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .products-filters select {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem !important;
    }
}
