:root {
    --color-primary: #1a237e;
    /* Navy Blue */
    --color-accent: #ffca28;
    /* Gold */
    --color-success: #43a047;
    /* Green */
    --color-bg: #f5f7fa;
    --color-text: #2c3e50;
    --color-white: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilidades --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- How it Works --- */
.how-it-works {
    padding: 60px 0;
    background-color: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* --- Form Section --- */
.upload-section {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* --- Trust Section --- */
.trust-section {
    padding: 40px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.trust-item {
    padding: 10px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 20px 0;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .form-container {
        padding: 20px;
    }
}

/* --- Estilos para Index (Home) --- */

/* Navbar */
.navbar {
    background-color: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -1px;
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Home Hero */
.home-hero {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #001f3f 100%);
    color: var(--color-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.home-hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.brand-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.brand-logo-img {
    max-width: 150px;
    max-height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.brand-name {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #555;
    /* Styles simulating logos */
}

/* Brand Specific Colors (Simulation) */
.brand-card.bic .brand-name {
    color: #FFCC00;
    background: #000;
    padding: 5px 15px;
    border-radius: 5px;
}

/* BIC style */
.brand-card.artesco .brand-name {
    color: #E30613;
}

.brand-card.pelikan .brand-name {
    color: #00643A;
}

.brand-card.pasola .brand-name {
    color: #009FE3;
}

.brand-card.propel .brand-name {
    color: #FF6600;
}

.brand-card.norma .brand-name {
    color: #E30613;
    font-style: italic;
}

.brand-card p {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-top: 30px;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.mt-3 {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2.5rem;
    }

}

/* --- Admin Panel Redesign --- */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
    font-family: 'Poppins', sans-serif;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    color: #555;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding-left: 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar a i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.sidebar a:hover {
    background-color: #f0f4f8;
    color: var(--color-primary);
}

.sidebar a.active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.main-content h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.stat-card small {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #999;
}

/* Charts Placeholder Style */
.chart-container {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

/* Table Design */
.recent-activity {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.recent-activity h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f4f4f4;
    color: #555;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fafbfc;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.pending {
    background: #fff8e1;
    color: #f57c00;
}

.badge.quoted {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.paid {
    background: #e8f5e9;
    color: #388e3c;
}