main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 4px 0;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 1px 6px;
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .navbar-collapse .navbar-nav .nav-link {
        width: 100%;
    }
}

.navbar-collapse.show .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
}

.navbar-collapse.show .navbar-nav .nav-item {
    flex: 0 0 50%;
    width: 50%;
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

body.vales-venta-bg {
    background-color: #e6f4ff;
}

/* Light blue backdrop for all vales-venta views */
.vales-venta-index,
.vales-venta-view,
.vales-venta-form,
.vales-venta-create,
.vales-venta-update {
    background-color: #e6f4ff;
    padding: 20px;
    border-radius: 8px;
}

/* Make carousel controls more visible and always shown */
.carousel-control-prev,
.carousel-control-next {
    opacity: 1 !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.55);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8l-5.647 5.646a.5.5 0 1 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3e%3c/svg%3e");
}

/* Navbar: align and logo sizing + spacing for fixed-top */
.navbar{align-items:center}
.navbar .navbar-brand img{height:auto;max-height:56px}
.navbar-brand img{height:auto;max-height:56px}
main#main{padding-top:36px}

:root {
    --brand-deep: #1f4250;
    --brand-main: #2b7a8c;
    --brand-muted: #5f6f7f;
    --brand-graphite: #2c3e50;
    --surface: #ffffff;
    --surface-soft: #f8f9fa;
    --border-soft: #e7e9ec;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.08);
    --bs-success: var(--brand-main);
    --bs-success-rgb: 43, 122, 140;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2a33;
    background: radial-gradient(circle at 15% 20%, rgba(43, 122, 140, 0.07), transparent 30%), radial-gradient(circle at 85% 10%, rgba(44, 62, 80, 0.08), transparent 28%), #f7f9fb;
}
h1, h2, h3, .h1, .h2, .h3 {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    font-weight: 700;
}
a { color: var(--brand-main); }
a:hover { color: #103846; }
.link-success,
.text-success {
    color: var(--brand-main) !important;
}
.link-success:hover,
.text-success:hover {
    color: var(--brand-deep) !important;
}

.btn-success {
    background-color: var(--brand-main) !important;
    border-color: var(--brand-main) !important;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: var(--brand-deep) !important;
    border-color: var(--brand-deep) !important;
}
.btn-outline-success {
    color: var(--brand-main) !important;
    border-color: var(--brand-main) !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    color: #fff !important;
    background-color: var(--brand-main) !important;
    border-color: var(--brand-main) !important;
}
.bg-success {
    background-color: var(--brand-main) !important;
}
.border-success {
    border-color: var(--brand-main) !important;
}
.alert-success {
    color: var(--brand-deep);
    background-color: rgba(43, 122, 140, 0.12);
    border-color: rgba(43, 122, 140, 0.32);
}

.navbar {
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.navbar .navbar-brand img { height: auto; max-height: 56px; }
.navbar-brand img { height: auto; max-height: 56px; }
.navbar-nav .nav-link {
    font-weight: 600;
    padding: 10px 12px;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.9); }
main#main { padding-top: 36px; }

.page-shell { color: #1f2a33; }
.page-shell .container { max-width: 1180px; }

.app-card {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}
.app-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-card__title { margin: 0; font-weight: 700; }
.app-card__subtitle { color: var(--brand-muted); margin: 0; font-size: 14px; }

.table-shell {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    overflow-x: auto;
}
.table-shell .table { margin: 0; }
.table thead th {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1;
}
.table-hover tbody tr:hover { background-color: #edf4f8; }
.table td, .table th { vertical-align: middle; }
.table-actions .btn { margin: 0 2px; }

.badge-soft-success {
    background: rgba(43, 122, 140, 0.14);
    color: var(--brand-deep);
}
.badge-soft-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}
.badge-soft-warning {
    background: rgba(255, 193, 7, 0.16);
    color: #b58100;
}

.input-soft .form-control {
    border-radius: 12px;
    padding: 10px 14px;
}
.input-soft .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 122, 140, 0.2);
}

.page-shell { color: #1f2a33; }
.section-title { font-weight: 700; letter-spacing: -0.3px; }
.section-subtitle { color: var(--brand-muted); margin-bottom: 24px; }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; opacity: 0.8; }

.hero-banner {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-main));
    color: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    pointer-events: none;
}
.hero-banner .lead { max-width: 720px; font-size: 18px; opacity: 0.95; }
.hero-cta .btn { min-width: 160px; }

.site-index-bg {
    position: relative;
    isolation: isolate;
}
.site-index-bg::before {
    content: none;
}

.site-index-bg .body-content {
    position: relative;
    isolation: isolate;
}

.site-index-bg .body-content::before {
    content: '';
    position: absolute;
    inset: 3mm 0 0;
    z-index: -1;
    background-image: var(--index-bg-image);
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.22;
    pointer-events: none;
}

.home-hero {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-main));
    color: #f8f9fa;
    border-radius: 22px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.home-hero::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    pointer-events: none;
}
.home-hero .lead { max-width: 640px; font-size: 18px; opacity: 0.95; }
.home-hero .cta-group a { min-width: 180px; }
.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.hero-card small { color: rgba(248,249,250,0.8); }

.surface-card {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.feature-card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(44,62,80,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(44,62,80,0.12); }
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(43,122,140,0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-main);
    font-weight: 700;
    margin-bottom: 14px;
}
.stat-card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.stat-label { color: var(--brand-muted); font-size: 14px; margin-bottom: 4px; }
.stat-value { font-weight: 700; font-size: 22px; color: var(--brand-deep); }

.gallery-panel {
    margin-top: 30px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}
.gallery-panel .panel-heading { background: var(--surface-soft); padding: 16px 20px; font-weight: 700; }
.gallery-panel .panel-body { padding: 22px; }
.gallery-item { margin-bottom: 18px; text-align: center; }
.gallery-thumb { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.06); margin-bottom: 10px; }
.gallery-name { font-weight: 600; font-size: 15px; }
.gallery-col { padding: 10px; }

.brand-strip { border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px; background: var(--surface-soft); }
.brand-strip img { max-height: 36px; object-fit: contain; }

.cta-band {
    background: var(--brand-main);
    color: #f8f9fa;
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .thumb {
    border-bottom: 1px solid var(--border-soft);
    background: #f8f9fa;
}
.product-card .thumb img,
.product-card .thumb .placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.product-card .body { padding: 14px; }
.product-card .body h4 { margin: 0 0 6px 0; font-size: 16px; }
.product-card .body .meta { color: var(--brand-muted); font-size: 14px; }
.product-card .cta { padding: 0 14px 14px; }

/* Contact */
.contact-hero .lead { opacity: 0.92; }
.contact-option {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-option:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.06); }
.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(43,122,140,0.14);
    color: var(--brand-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.contact-meta {
    background: var(--surface-soft);
    border: 1px dashed var(--border-soft);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--brand-muted);
}
.contact-form-card .form-control {
    padding: 12px 14px;
    border-radius: 12px;
}
.contact-form-card .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 122, 140, 0.2);
}

/* About */
.site-about { color: #1f2a33; }
.hero-about {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-main));
    color: #f8f9fa;
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-about::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    pointer-events: none;
}
.hero-about h1 { font-weight: 700; letter-spacing: -0.4px; }
.hero-about .lead { max-width: 720px; font-size: 18px; opacity: 0.95; }
.pillars .card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.pillars .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(44,62,80,0.12); }
.pillars .card-title { font-weight: 700; }
.process-step {
    text-align: center;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.process-step .badge { background: rgba(43,122,140,0.14); color: var(--brand-deep); }
.team-card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.team-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}
.testimonial {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

/* Auth */
.auth-shell { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
}
.auth-card .form-control {
    padding: 12px 14px;
    border-radius: 12px;
}
.auth-card .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 122, 140, 0.2);
}

/* Error */
.error-hero {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: linear-gradient(135deg, #fdf8f3, #f6fbf8);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.error-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.16);
    color: #b58100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}
.error-details summary { cursor: pointer; color: var(--brand-main); font-weight: 600; }

/* Chat */
.chat-shell { max-width: 780px; }
.chat-card {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.chat-card .form-control { border-radius: 12px; }
.chat-output {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
    background: var(--surface-soft);
}
.tab-switch {
    display: inline-flex;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
}
.tab-switch button {
    border: 0;
    background: transparent;
    padding: 6px 14px;
    font-weight: 600;
    color: var(--brand-muted);
}
.tab-switch button.active {
    background: #fff;
    color: var(--brand-deep);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
