/* ================================================
   TRA EMPRESA - Tienda de Billeteras Hardware
   Tema: Azul Tecnológico / Crypto
   ================================================ */

:root {
    --primary: #1e40af;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    --crypto-gold: #f7931a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Disclosure Banner */
.disclosure-banner {
    background: linear-gradient(90deg, #c53030, #9b2c2c);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 3px solid #fc8181;
}

.disclosure-banner strong {
    color: #fbd38d;
}

/* Demo Banner */
.demo-banner {
    background: linear-gradient(90deg, #d97706, #b45309);
    padding: 0.8rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 2px solid #fcd34d;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--light);
    background: rgba(59, 130, 246, 0.2);
}

.cart-btn {
    background: var(--gradient);
    color: var(--light) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px;
}

/* Hero */
.hero {
    background: var(--gradient);
    padding: 6rem 2rem;
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Main */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: var(--secondary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Product Card */
.product-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.product-image {
    height: 200px;
    background: linear-gradient(145deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--crypto-gold);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
}

.product-brand {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.price-usd {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--light);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--crypto-gold);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--light);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(145deg, #1e3a5f, #0f172a);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary);
}

.info-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.info-box p, .info-box li {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark);
    margin-top: 4rem;
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--gray);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Legal pages */
.legal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 2rem;
    color: var(--secondary);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.legal-content p,
.legal-content li {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* ================================================
   CARRITO Y CHECKOUT
   ================================================ */

/* Carrito Container */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-container h1 {
    margin-bottom: 2rem;
    color: var(--light);
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-image {
    font-size: 3rem;
    width: 80px;
    text-align: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-brand {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-info h3 {
    color: var(--light);
    margin: 0.3rem 0;
}

.cart-item-desc {
    color: var(--gray);
    font-size: 0.85rem;
}

.cart-item-qty select {
    background: var(--dark);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--light);
    padding: 0.5rem;
    border-radius: 8px;
}

.cart-item-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.cart-item-price .price-usd {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
}

.btn-remove {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.btn-remove:hover {
    opacity: 1;
}

/* Cart Summary */
.cart-summary {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cart-totals {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--gray);
}

.total-row.total-final {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
    border-bottom: none;
    padding-top: 1rem;
}

.total-usd {
    text-align: right;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ================================================
   CHECKOUT
   ================================================ */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-container h1 {
    margin-bottom: 2rem;
    color: var(--light);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Form Sections */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.form-section h2 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--darker);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group input::placeholder {
    color: var(--gray);
    opacity: 0.5;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--darker);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s;
}

.payment-option input:checked + .payment-card {
    border-color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-name {
    color: var(--light);
    font-weight: 500;
}

.card-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.security-note {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.summary-card h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-icon {
    font-size: 2rem;
}

.item-info {
    flex: 1;
}

.item-name {
    display: block;
    color: var(--light);
    font-size: 0.9rem;
}

.item-qty {
    color: var(--gray);
    font-size: 0.8rem;
}

.item-price {
    color: var(--accent);
    font-weight: 600;
}

.summary-totals {
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.summary-usd {
    text-align: right;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.demo-notice {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--warning);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.demo-notice p {
    color: var(--warning);
    font-size: 0.9rem;
    margin: 0;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.product-detail-image {
    font-size: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 15px;
    min-height: 300px;
    position: relative;
}

.product-detail-info h1 {
    font-size: 2rem;
    color: var(--light);
    margin: 0.5rem 0 1rem;
}

.product-description-large {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

.price-box {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.product-guarantees {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.product-guarantees p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* Responsive Checkout */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        font-size: 6rem;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
