:root {
    --primary-color: #E3092E; /* Corporate Color */
    --secondary-color: #ffffff;
    --text-dark: #333333;
    --text-grey: #666666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Buttons Styles --- */
.btn-keblar {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

.btn-keblar:hover {
    background-color: #c40625; /* A slightly darker red on hover */
    border-color: #c40625;
    color: white;
    box-shadow: 0 4px 10px rgba(227, 9, 46, 0.3);
}

.btn-outline-keblar {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-keblar:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(227, 9, 46, 0.2);
}

/* --- Header / Nav --- */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 700;
    color: var(--text-dark);
}

.logout-link {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.logout-link:hover {
    color: var(--primary-color);
}

.support-link i {
    font-size: 0.95rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0 50px;
    text-align: center;
}

.hero-title {
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-grey);
    font-weight: 300;
    margin-bottom: 40px;
}

/* --- Features / Products Cards --- */
.card-product {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(227, 9, 46, 0.10);
    border-color: #ffd6dc;
}

.card-header-custom {
    padding: 30px 20px 10px;
    text-align: center;
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price-tag {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-grey);
    font-weight: 400;
}

.card-body {
    padding: 20px 30px;
    flex-grow: 1; /* Pushes content to match heights */
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.what-is-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
}

ul.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

ul.feature-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
    color: #555;
}

.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 2px;
}

.list-numbers {
    counter-reset: step-counter;
}
.list-numbers li {
    padding-left: 30px;
}
.list-numbers li::before {
    counter-increment: step-counter;
    content: counter(step-counter) ".";
    font-weight: 700;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.offer-badge {
    background-color: #fff0f2;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    border: 1px solid #ffdce0;
}

/* --- Enterprise Section Styles --- */
.card-enterprise {
    border: 2px solid var(--primary-color);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.card-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--primary-color);
}

/* --- Sección de Registro --- */
.register-section {
    padding: 60px 0;
    background-color: #fcfcfc;
    min-height: 90vh; /* Para centrar verticalmente si la pantalla es alta */
    display: flex;
    align-items: center;
}

.form-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    padding: 40px 50px;
    margin-bottom: 40px;
}

.service-disclaimer {
    padding: 10px 12px;
    font-size: 0.82rem;
    line-height: 1.3;
}

.service-disclaimer p {
    margin-bottom: 4px !important;
}

.service-disclaimer a {
    margin-top: 4px !important;
    font-size: 0.78rem;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.trust-badge {
    display: inline-block;
    background-color: #e6f7e9;
    color: #28a745;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.input-group-text {
    background-color: #fcfcfc;
    border-color: #ddd;
    color: var(--text-grey);
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(227, 9, 46, 0.15);
}

/* Checkbox Styles */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-grey);
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 14px;
}

.footer-legal-links a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

.legal-page {
    padding-top: 40px;
    padding-bottom: 50px;
}

.legal-content {
    white-space: pre-line;
    line-height: 1.7;
    color: #444;
}

.pricing-page {
    padding-top: 40px;
    padding-bottom: 50px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h1 {
    font-weight: 700;
    margin: 0;
}

.pricing-card {
    background: #fff;
    border: 1px solid #eee;
    border-top: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 32px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.pricing-feature i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 1.05rem;
}

.pricing-feature p {
    margin: 0;
    color: #444;
}

.pricing-bonus-box {
    background-color: #fff5f6;
    border: 1px dashed var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 26px 0;
}

.pricing-bonus-box h5 {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-bonus-box p {
    margin: 0;
}

.pricing-contact-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.pricing-contact-info h5 {
    margin-bottom: 12px;
}

.pricing-contact-info p {
    color: #555;
}

.pricing-contact-email {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.red_text {
    color: var(--primary-color);
}
.pricing-contact-email:hover {
    color: #c40625;
}

.other-tools-page {
    padding-top: 40px;
    padding-bottom: 50px;
}

.other-tools-header {
    text-align: center;
    margin-bottom: 32px;
}

.other-tools-header h1 {
    font-weight: 700;
    margin: 0;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.tool-name {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.tool-description {
    color: var(--text-grey);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-cta {
    background-color: var(--text-dark);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.85rem;
}

.btn-cta:hover {
    background-color: var(--primary-color);
    color: white;
}

.tools-info-footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-grey);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tools-contact-mail {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.tools-contact-mail:hover {
    color: #c40625;
}

/* --- Dashboard Header (Credits) --- */
.dashboard-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    margin-bottom: 40px;
}

.credits-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff0f2;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ffdce0;
    display: inline-flex;
}

.credits-text {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* --- Action Cards --- */
.action-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.action-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
}

/* --- Table Section --- */
.table-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: 20px;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 600;
    color: var(--text-grey);
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 15px 20px;
    border-bottom: 2px solid #eee;
}

.table td {
    vertical-align: middle;
    padding: 15px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.action-btn-icon {
    color: var(--text-grey);
    font-size: 1.1rem;
    margin: 0 8px;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.action-btn-icon:hover {
    color: var(--primary-color);
}

.action-btn-icon.delete:hover {
    color: #dc3545;
}

/* --- Main Content Section --- */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.message-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.icon-wrapper {
    margin-bottom: 30px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background-color: #fff0f2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 9, 46, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(227, 9, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 9, 46, 0); }
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.card-text {
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 30px 0;
}

.help-text {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 10px;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

/* --- Markdown Response --- */
.markdown-card {
    padding: 35px 40px;
}

.markdown-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.markdown-body h1 { font-size: 2rem; }
.markdown-body h2 { font-size: 1.6rem; }
.markdown-body h3 { font-size: 1.35rem; }
.markdown-body h4 { font-size: 1.15rem; }
.markdown-body h5 { font-size: 1rem; }
.markdown-body h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }

.markdown-body p {
    margin: 0 0 1rem;
}

.markdown-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body a.btn-keblar,
.markdown-body a.btn-keblar:hover,
.markdown-body a.btn-keblar:focus,
.markdown-body a.btn-keblar:active {
    color: #fff;
    text-decoration: none;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.4rem;
    margin: 0 0 1rem;
}

.markdown-body li {
    margin: 0.35rem 0;
}

.markdown-body blockquote {
    margin: 1.2rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary-color);
    background: #fff0f2;
    color: #4a4a4a;
    border-radius: 6px;
}

.markdown-body code {
    background: #f6f6f6;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.95em;
}

.markdown-body pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.2rem 0;
    border: 1px solid #1f2937;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9em;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    border: 1px solid #eee;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid #eee;
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.markdown-body thead {
    background: #f8f9fa;
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 1.5rem 0;
}

.help-link:hover {
    color: #c40625;
    text-decoration: underline;
}

/* --- Buttons --- */
.btn-keblar {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    padding: 12px 40px;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-keblar:hover {
    background-color: #c40625;
    border-color: #c40625;
    color: white;
    box-shadow: 0 4px 10px rgba(227, 9, 46, 0.3);
}


/* Responsive Tweaks */
@media (max-width: 576px) {
    .form-card { padding: 30px 20px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .btn-keblar, .btn-outline-keblar { width: 100%; margin-bottom: 10px; }
    .d-flex.gap-3 { flex-direction: column; }
    .card-enterprise { padding: 30px; }
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-preview {
    width: 50px;
    height: 48px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}
.upload-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #fff0f2;
}
.upload-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.page-title {
    padding-top: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.active>.page-link, .page-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.page-link {
    color: var(--primary-color);
}
.spinner-wrapper {
    display: inline;
}
.custom-spinner {
    font-size: 1rem;
    color: var(--primary-color);
}
.upload-box.has-file {
    border-color: var(--primary-color);
    background-color: #fff5f7;
}

.account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

.account-nav-link {
    text-decoration: none;
    color: var(--text-grey);
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.account-nav-link:hover {
    color: var(--primary-color);
    border-color: #ffdce0;
    background-color: #fff7f8;
}

.account-nav-link.active {
    color: white;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.account-nav-link.danger:hover {
    color: #b02a37;
    border-color: #f5c2c7;
    background-color: #fff5f5;
}

.account-nav-link.danger.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
.upload-filename {
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    word-break: break-word;
}
.section-divider {
    border-bottom: 2px solid #f0f0f0;
    margin: 30px 0 20px 0;
    padding-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.section-divider i {
    margin-right: 10px;
}
.product-list {
    margin: 10px 0 30px 40px;
    padding-left: 0;
    list-style: none;
}
.product-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    max-width: 500px;
}

.cookie-consent-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cookie-consent-content {
    min-width: 0;
}

.cookie-consent-title {
    margin: 0 0 4px 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
}

.cookie-consent-text {
    margin: 0;
    color: var(--text-grey);
    font-size: 0.92rem;
    line-height: 1.4;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-consent-manage-link {
    text-decoration: none;
    padding-left: 4px;
    padding-right: 4px;
}

.cookie-preferences-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.cookie-preferences-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }

    .cookie-consent-actions .cookie-consent-manage-link {
        width: 100%;
        text-align: center;
    }
}
