:root {
    --dark-blue: #0F172A; /* Color de la barra de navegación */
    --brand-blue: #3B82F6; /* Azul brillante de la tarjeta central */
    --icon-bg: #E0F2FE; /* Fondo de los círculos de iconos */
    --bg-page: #F0F9FF; /* Fondo general de la página muy claro */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navegación (Estilo Oscuro como en la imagen) --- */
.main-header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-btn {
    background-color: var(--white);
    color: var(--dark-blue);
    border: 1px solid #E2E8F0;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.license-tag {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Secciones Generales --- */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin: 50px 0 30px;
    font-weight: 700;
}

/* --- Grid Layouts --- */
/* Primera Sección: 4 columnas arriba, la del centro es azul */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Segunda fila para el item que sobra (Portal Clientes) */
.inventory-grid-row2 {
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    gap: 24px;
}

.inventory-grid-row2 .card {
    width: calc(25% - 18px); /* Mismo ancho que las columnas de arriba */
}

/* Segunda Sección: LIMS (4 columnas) */
.lims-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* --- Estilo de Tarjetas (Cards) --- */
.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    background-color: var(--icon-bg);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--brand-blue);
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tarjeta Especial Azul (OpenTraceLab) */
.card.brand-card {
    background-color: var(--brand-blue);
    color: var(--white);
    justify-content: center;
}

.card.brand-card .icon-circle {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 80px;
    height: 80px;
}

.card.brand-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
}

/* --- Sección de Precios --- */
.pricing-section {
    background-color: var(--white);
    padding: 60px 0;
    margin-top: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.price-card {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: var(--bg-page);
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 15px 0;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    padding: 0 10px;
}

.feature-list li {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.payment-info {
    background-color: #FEF3C7;
    color: #92400E;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 20px;
    display: inline-block;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-blue);
    color: #94A3B8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .inventory-grid, .lims-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }

    .inventory-grid-row2 .card {
        width: 100%; /* Full width en tablet para el item suelto */
    }
}

@media (max-width: 600px) {
    .inventory-grid, .lims-grid, .inventory-grid-row2 {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .inventory-grid-row2 .card {
        width: 100%;
    }
}

/* --- Contacto --- */
.contact-section {
    padding: 70px 0;
    background: var(--bg-page);
}

.contact-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.06);
}

.contact-header {
    text-align: center;
    margin-bottom: 18px;
}

.contact-header h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Grid del form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

/* Campos full width */
.contact-form .full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

/* Inputs */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 12px;
    background: #fff;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Textarea */
.field textarea {
    resize: vertical;
    min-height: 140px;
}

/* Focus */
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Errores de Django */
.errorlist {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    color: #B91C1C;
    font-size: 0.85rem;
}

.form-errors {
    border: 1px solid #FCA5A5;
    background: #FEF2F2;
    color: #991B1B;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

/* reCAPTCHA wrapper */
.captcha-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* Botón */
.contact-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary {
    background: var(--brand-blue);
    color: var(--white);
    border: 1px solid rgba(59, 130, 246, 0.6);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(59, 130, 246, 0.28);
}

.btn-primary:active {
    transform: translateY(0);
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 700px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        width: 100%;
        min-width: auto;
    }

    .contact-card {
        padding: 20px;
    }
}

.text-center {
    text-align: center;
}

.form-success {
    border: 1px solid #18c01d;
    background: #dcfce7;
    color: #2a5b0d;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.text-intro {
    text-align: justify;
    padding: 30px 0;
}

.about-section {
    font-size: 1rem;
    margin: 0;
}

.pt-2{
    padding-top: 16px;
}

.pt-3{
    padding-top: 30px;
}
