/* ============================================
   Variables y Reset - Diseño Moderno y Estilizado
   ============================================ */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-gradient-start: #E0F2FE;
    --bg-gradient-end: #F0F9FF;
    --accent-blue: #3B82F6;
    --accent-blue-hover: #2563EB;
    --accent-light-blue: #60A5FA;
    --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --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);
    --shadow-blue: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(to bottom, var(--bg-gradient-start) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.main-content {
    flex: 1;
    padding-top: 80px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: var(--shadow-md);
}

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

.nav-brand a {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-blue);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-blue);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #E0F2FE 0%, #FFFFFF 30%, #F0F9FF 70%, #E0F2FE 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-sim-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sim-card-3d {
    position: absolute;
    width: 120px;
    height: 75px;
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
}

.sim-card-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.sim-card-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.sim-card-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.sim-card-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 4.5s;
}

.sim-card-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #E0F2FE 0%, #BAE6FD 100%);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sim-card-3d:hover .sim-card-front {
    transform: rotateY(10deg) rotateX(5deg) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sim-chip {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25px;
    height: 20px;
    background: linear-gradient(145deg, #93C5FD 0%, #60A5FA 100%);
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(59, 130, 246, 0.2);
}

.sim-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 8px;
    background: linear-gradient(145deg, #BFDBFE 0%, #93C5FD 100%);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sim-lines {
    position: absolute;
    top: 45px;
    left: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sim-line {
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.6) 0%, 
        rgba(59, 130, 246, 0.2) 50%, 
        transparent 100%);
    border-radius: 1px;
    animation: pulse-line 2s ease-in-out infinite;
}

.sim-line:nth-child(1) {
    width: 60%;
    animation-delay: 0s;
}

.sim-line:nth-child(2) {
    width: 80%;
    animation-delay: 0.3s;
}

.sim-line:nth-child(3) {
    width: 50%;
    animation-delay: 0.6s;
}

.sim-text {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 10px;
    font-weight: bold;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    letter-spacing: 1px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-25px) rotate(1deg);
    }
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-dark {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

/* ============================================
   Steps
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-blue);
    transition: all 0.3s ease;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   Plans Grid
   ============================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-country {
    font-size: 1.25rem;
    font-weight: bold;
}

.plan-flag {
    font-size: 2rem;
}

.plan-name {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.plan-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.plan-detail {
    display: flex;
    gap: 0.5rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.plan-price {
    margin: 1.5rem 0;
    text-align: center;
}

.price-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-blue);
}

.price-currency {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.plan-footer {
    margin-top: 1.5rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* ============================================
   Checkout
   ============================================ */
.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-header {
    margin-bottom: 2rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.checkout-plan-summary {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.summary-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.summary-price {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-top: 1rem;
}

.checkout-summary-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    border-top: 2px solid var(--accent-blue);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Métodos de pago en checkout */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-method-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #020617);
}

.payment-method-icon--paypal {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #003087, #009cde);
}

.payment-method-option--crypto .payment-method-icon {
    background: linear-gradient(135deg, #0f172a, #22c55e);
}

.payment-method-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.payment-method-option .payment-method-title {
    font-weight: 600;
    color: var(--text-primary);
}

.payment-method-option .payment-method-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.payment-method-option--active {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
    box-shadow: 0 0 0 1px rgba(59,130,246,0.18);
}

.crypto-field {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.crypto-field[style*="none"] {
    opacity: 0;
    transform: translateY(-4px);
}

/* ============================================
   Order Detail
   ============================================ */
.order-detail-page {
    max-width: 1000px;
    margin: 0 auto;
}

.order-detail-header {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--accent-blue);
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.order-detail-content {
    display: grid;
    gap: 2rem;
}

.order-info-card,
.esims-section,
.instructions-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.esim-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.qr-section {
    margin: 1.5rem 0;
}

.qr-container {
    text-align: center;
    margin: 1rem 0;
}

.qr-image {
    max-width: 300px;
    border: 2px solid var(--border-color);
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
}

.activation-section {
    margin: 1.5rem 0;
}

.activation-code {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.activation-code code {
    flex: 1;
    word-break: break-all;
    color: var(--accent-blue);
    font-family: monospace;
}

.instructions-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.instructions-list li {
    margin: 0.75rem 0;
}

.note {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--warning);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

/* ============================================
   Status Badges
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending_payment {
    background-color: var(--warning);
    color: var(--bg-primary);
}

.status-payment_confirmed,
.status-esim_issued,
.status-completed {
    background-color: var(--success);
    color: white;
}

.status-cancelled,
.status-failed {
    background-color: var(--error);
    color: white;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background-color: var(--success);
    color: white;
}

.flash-error {
    background-color: var(--error);
    color: white;
}

.flash-warning {
    background-color: var(--warning);
    color: white;
}

.flash-info {
    background-color: var(--info);
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    max-width: 500px;
    margin: 4rem auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: var(--shadow-xl), var(--shadow-blue);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ============================================
   Orders List
   ============================================ */
.orders-list {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-info h3 {
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Filters
   ============================================ */
.filters {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
}

.modal-qr-image {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================
   Admin Styles
   ============================================ */
.admin-body {
    background-color: var(--bg-primary);
}

.admin-navbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.admin-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-navbar .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.admin-navbar .nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-navbar .nav-menu a:hover {
    color: var(--accent-blue);
}

.admin-main {
    padding: 2rem 0;
    min-height: calc(100vh - 60px);
}

.admin-page {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-blue);
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kpi-icon {
    font-size: 3rem;
}

.kpi-content h3 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-blue);
}

.admin-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background-color: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-blue);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
    background-color: var(--bg-secondary);
}

.admin-detail-grid {
    display: grid;
    gap: 2rem;
}

.admin-detail-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.admin-detail-card h2 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.detail-info {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.chart-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.chart-container {
    margin-top: 2rem;
}

.chart-container canvas {
    max-width: 100%;
}

.api-logs-list {
    display: grid;
    gap: 1rem;
}

.api-log-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.log-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.log-provider {
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.log-method {
    color: var(--accent-blue);
    font-family: monospace;
}

.log-endpoint {
    color: var(--text-secondary);
    font-family: monospace;
    flex: 1;
}

.log-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.log-status.status-success {
    background-color: var(--success);
    color: white;
}

.log-status.status-error {
    background-color: var(--error);
    color: white;
}

.log-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.log-details {
    margin-top: 0.5rem;
}

.log-details summary {
    cursor: pointer;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.log-payload {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.875rem;
    font-family: monospace;
    color: var(--text-secondary);
}

/* ============================================
   Catálogo Moderno (Estilo SimLimites)
   ============================================ */
.catalogue-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: calc(100vh - 200px);
    position: relative;
}

.catalogue-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
}

.catalogue-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.catalogue-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.catalogue-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.filters-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.filters-form-modern {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.filter-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-input-modern {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.filter-input-modern:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow-md);
    transform: translateY(-1px);
}

.filter-select-wrapper {
    flex: 0 0 auto;
    min-width: 200px;
}

.filter-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow-md);
    transform: translateY(-1px);
}

.btn-filter {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-filter-clear {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-filter-clear:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.plans-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.plan-card-modern {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.plan-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.plan-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-blue);
    border-color: var(--accent-blue);
}

.plan-card-modern:hover::before {
    transform: scaleX(1);
}

.plan-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.plan-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.plan-card-modern:hover .plan-image {
    transform: scale(1.15);
    filter: brightness(1);
}

.plan-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-flag-large {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.esim-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.plan-card-modern:hover .esim-badge {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.esim-badge svg {
    width: 14px;
    height: 14px;
}

.plan-content-modern {
    padding: 2rem 1.5rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.plan-country-modern {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.plan-info-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-info-item {
    color: var(--text-secondary);
}

.plan-info-separator {
    color: var(--text-muted);
}

.plan-price-modern {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
}

.price-from {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount-modern {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.price-currency-modern {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Gradientes de colores para países (puedes personalizar) */
.plan-image[data-country="Estados Unidos"],
.plan-image[data-country="United States"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.plan-image[data-country="Colombia"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-image[data-country="México"],
.plan-image[data-country="Mexico"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.plan-image[data-country="España"],
.plan-image[data-country="Spain"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--accent-gradient);
    padding: 6rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2,
.cta-section p {
    color: white;
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary {
    background: white;
    color: var(--accent-blue);
    box-shadow: var(--shadow-xl);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 4rem 0;
    }

    .sim-card-3d {
        width: 80px;
        height: 50px;
    }

    .sim-card-1 {
        top: 10%;
        left: 5%;
    }

    .sim-card-2 {
        top: 15%;
        right: 5%;
    }

    .sim-card-3 {
        bottom: 15%;
        left: 10%;
    }

    .sim-card-4 {
        bottom: 10%;
        right: 5%;
    }

    .sim-chip {
        width: 18px;
        height: 14px;
        top: 10px;
        left: 10px;
    }

    .sim-chip::before {
        width: 8px;
        height: 6px;
    }

    .sim-lines {
        top: 30px;
        left: 10px;
        right: 10px;
    }

    .sim-text {
        font-size: 8px;
        bottom: 8px;
        right: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .checkout-summary-card {
        position: static;
    }

    .filters-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .admin-table-container {
        overflow-x: scroll;
    }
}

/* ============================================
   Boton Flotante de WhatsApp
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    overflow: visible;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--text-primary);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 80px; /* subirlo para que no lo tape la barra del navegador */
        right: 15px;
        z-index: 9999;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   Plan Detail - Selector de GB
   ============================================ */
.plan-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.plan-detail-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-blue-hover);
}

.plan-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.plan-flag {
    font-size: 3rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plan-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.plan-country,
.plan-region {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-country-flag {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
}

.plan-detail-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.plan-detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-info-card,
.plan-features-card,
.plan-instructions-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.plan-info-card h2,
.plan-features-card h2,
.plan-instructions-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.plan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.features-list li:last-child {
    border-bottom: none;
}

.instructions-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.instructions-list li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.note {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.plan-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-gb-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.plan-gb-selector-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.selector-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.gb-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gb-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.gb-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(4px);
}

.gb-option-active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.gb-option-active .gb-amount,
.gb-option-active .gb-label,
.gb-option-active .gb-option-price {
    color: white;
}

.gb-option-active .validity {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gb-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.gb-option-gb {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 70px;
}

.gb-option .gb-amount {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.gb-option .gb-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.gb-option-details {
    flex: 1;
}

.gb-option .validity {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.gb-option-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 80px;
    text-align: right;
}

.gb-option-check {
    font-size: 1.5rem;
    color: white;
    margin-left: 1rem;
}

.plan-purchase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 2rem;
}

.purchase-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-amount-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.purchase-features {
    margin-bottom: 2rem;
}

.purchase-features p {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

@media (max-width: 968px) {
    .plan-detail-content {
        grid-template-columns: 1fr;
    }
    
    .plan-purchase-card {
        position: static;
    }
}

/* ============================================
   Best Sellers Section
   ============================================ */
.best-sellers-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.best-sellers-header {
    text-align: center;
    margin-bottom: 3rem;
}

.best-sellers-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.best-sellers-header .section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.best-seller-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.best-seller-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-blue);
}

.best-seller-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.best-seller-flag {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.best-seller-country {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.best-seller-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.best-seller-gb {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.gb-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.gb-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.best-seller-validity {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-weight: 500;
}

.best-seller-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.best-sellers-footer {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .best-sellers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .best-seller-card {
        padding: 1.5rem;
    }
    
    .best-sellers-header .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   Mis eSIMs y Recarga
   ============================================ */
.page-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.esims-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esim-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.esim-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.esim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.esim-info-main h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.esim-iccid {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.esim-iccid code {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.esim-country {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.esim-card-body {
    margin-top: 1rem;
}

.esim-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.esim-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.recharge-page {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.recharge-esim-info {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.recharge-plans-section {
    margin-top: 0;
}

.recharge-plans-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.plans-grid-recharge {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.plan-card-recharge {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card-recharge:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.plan-header-recharge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.plan-flag {
    font-size: 2rem;
}

.plan-header-recharge h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.plan-details-recharge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.plan-gb-recharge {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.plan-gb-recharge .gb-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.plan-gb-recharge .gb-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-validity-recharge {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-weight: 500;
}

.plan-price-recharge {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
}

.plan-price-recharge .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.plan-price-recharge .price-currency {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

@media (max-width: 968px) {
    .recharge-page {
        grid-template-columns: 1fr;
    }
    
    .recharge-esim-info {
        position: static;
    }
    
    .plans-grid-recharge {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Pagina de Confirmacion de Recarga
   ============================================ */
.success-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.success-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.success-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-message {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.recharge-details-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.recharge-details-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.detail-value code {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border-left: 4px solid var(--accent-blue);
}

.info-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .success-header h1 {
        font-size: 2rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .recharge-details-card {
        padding: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}

