:root {
    --color-primario: #dc3545;
    --color-secundario: #212529;
    --color-acento: #ffc107;
    --admin-sidebar: #1e293b;
    --admin-bg: #f1f5f9;
    --admin-card: #ffffff;
    --admin-text: #334155;
    --admin-text-muted: #94a3b8;
    --admin-border: #e2e8f0;
    --admin-primary: #6366f1;
    --admin-primary-light: #eef2ff;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-info: #3b82f6;
}

body {
    background-color: var(--admin-bg);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;
    color: var(--admin-text);
}

/* ─── Landing hero ─── */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-primario), #a71d2a);
    /* min-height: 80vh; */
}

.hero-gradient .btn-light {
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.hero-gradient .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

/* ─── Cards hover ─── */
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* ─── Navbar landing ─── */
.navbar {
    padding: 0.7rem 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
}

body {
    padding-top: 60px;
}

.fw-black {
    font-weight: 900;
}

.min-vh-80 {
    min-height: 80vh;
}

.bg-opacity-15 {
    --bs-bg-opacity: 0.15;
}

/* ─── Phone mockup ─── */
.phone-mockup {
    width: 280px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: -12px auto 8px;
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(145deg, #16213e, #0f3460);
    border-radius: 24px;
    min-height: 420px;
}

/* ─── Value proposition ─── */
.value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primario);
}

.value-mockup-wrapper {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.value-mockup-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ─── Steps ─── */
.step-wrapper {
    padding: 2rem 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step-wrapper:hover {
    background: rgba(220, 53, 69, 0.04);
    transform: translateY(-4px);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--color-primario);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.step-wrapper:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* ─── Planes / Precios ─── */
.plan-featured {
    border: 2px solid var(--admin-primary) !important;
    transform: scale(1.03);
    z-index: 1;
}

/* ─── Testimonials ─── */
.testimonial-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    color: #495057;
}

/* ─── FAQ accordion ─── */
.accordion-button:not(.collapsed) {
    background: rgba(220, 53, 69, 0.06);
    color: var(--color-primario);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(220, 53, 69, 0.25);
}

/* ─── Animación al hacer scroll ─── */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Sidebar admin ─── */
.sidebar {
    min-height: 100vh;
    background: var(--admin-sidebar);
    width: 260px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--admin-primary);
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar .collapse .nav-link {
    font-size: 0.85rem;
    padding-left: 2.5rem;
}

.sidebar hr {
    opacity: 0.1;
}

/* ─── Cards del admin ─── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--admin-border);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* ─── Tablas ─── */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--admin-bg);
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

/* ─── Stat cards ─── */
.stat-card {
    border-radius: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.15;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* ─── Badges ─── */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* ─── Botones ─── */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

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

.btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* ─── Formularios ─── */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--admin-text);
    margin-bottom: 0.4rem;
}

/* ─── Input group ─── */
.input-group-text {
    border-radius: 8px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
}

/* ─── Product thumb ─── */
.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--admin-border);
}

/* ─── Menu publico ─── */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* ─── Price ─── */
.price {
    font-weight: 700;
    color: var(--color-primario);
}

.price-offer {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

/* ─── Color preview ─── */
.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #dee2e6;
}

/* ─── Floating cart ─── */
.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* ─── Login ─── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ─── Animaciones ─── */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* ─── Alertas ─── */
.alert {
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
}

/* ─── Pagina de error ─── */
.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.1;
}

/* ─── Toggle switch ─── */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

/* ─── Page header ─── */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h4 {
    font-weight: 700;
    color: #0f172a;
}

/* ─── Cards con colores de acento ─── */
.card-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

.card-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.card-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.card-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.card-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
