main > .container {
    padding: 70px 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.not-set {
    color: var(--bs-danger);
    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 var(--bs-body-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--bs-body-color);
    border-bottom-width: 0;
}

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

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--bs-secondary-color);
}

.error-summary {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-left: 3px solid var(--bs-danger-border-subtle);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align navbar brand baseline with nav links */
.navbar > .container,
.navbar > .container-fluid {
    align-items: baseline;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    color: var(--bs-navbar-color);
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar-nav .nav-link.logout:focus,
.navbar-nav .nav-link.logout:hover {
    color: var(--bs-navbar-hover-color);
}

/* footer logo: light logo by default (light bg-body-tertiary), dark logo for dark theme */
.footer-logo-dark { display: none; }

[data-bs-theme="dark"] .footer-logo-light { display: none; }
[data-bs-theme="dark"] .footer-logo-dark  { display: inline-block; }

/* login inputs: seamless icon inside input (Volt style) */
.login-split-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-split-card .input-group .input-group-text {
    background: transparent;
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card .input-group .form-control {
    border: 0;
    background: transparent;
}

.login-split-card .input-group .form-control:focus {
    box-shadow: none;
}

.login-split-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for login split card (browsers with :has()) */
@supports selector(.input-group:has(.is-invalid)) {
    .login-split-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .login-split-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for login split card (browsers without :has()) */
@supports not selector(.input-group:has(.is-invalid)) {
    .login-split-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .login-split-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login split card */
.login-split-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    background-color: var(--bs-gray-100);
    width: 100%;
    max-width: 900px;
}

.login-split-card-wide {
    max-width: 960px;
}

.login-brand-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

.login-brand-text {
    font-size: .9rem;
}

.login-brand-panel {
    background: linear-gradient(135deg, #40B3D8 0%, #3a9cbd 40%, #83C933 100%);
    position: relative;
    min-height: 480px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(241, 138, 42, .25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 201, 51, .2) 0%, transparent 40%);
    pointer-events: none;
}

.login-btn {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.login-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* dark mode login card */
[data-bs-theme="dark"] .login-split-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

[data-bs-theme="dark"] .login-mobile-logo {
    filter: invert(1);
}

/* contact form textarea height */
.site-contact textarea.form-control {
    height: 140px;
}

/* captcha: blend with card background */
.site-contact img[src*="captcha"] {
    border-radius: var(--bs-border-radius);
    mix-blend-mode: multiply;
}

/* dark mode: invert captcha for visibility on dark background */
[data-bs-theme="dark"] .site-contact img[src*="captcha"] {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg);
}

/* centered page layout */
.site-login,
.site-contact,
.site-index,
.site-error,
.site-about,
.site-contact-success {
    flex: 1;
}

.site-error .site-error-content,
.site-about .site-about-content,
.site-contact-success .site-contact-success-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 50%;
    }
}

/* ==========================================================================
   AppInnova: marca y página de inicio
   Colores tomados del logo (web/images/logo.png)
   ========================================================================== */
:root {
    --brand-cyan: #4fd8e0;
    --brand-blue: #2f5fd0;
    --brand-indigo: #2a1fb0;
    --brand-orange: #f08a1c;
    --brand-red: #ef3b24;
    --brand-navy: #0d1440;
    --brand-gradient: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-red) 100%);
}

[data-bs-theme="dark"] .brand-logo {
    filter: brightness(1.35) saturate(1.1);
}

/* navbar */
.site-navbar .navbar-brand {
    padding: 0;
}

.site-navbar .nav-link {
    font-weight: 500;
}

.navbar > .container {
    align-items: center;
}

/* botones de marca */
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    background: var(--brand-gradient);
    border: 0;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(239, 59, 36, .25);
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-brand:hover,
.btn-brand:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(239, 59, 36, .35);
}

.btn-outline-brand {
    --bs-btn-color: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-blue);
    --bs-btn-hover-border-color: var(--brand-blue);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-indigo);
    --bs-btn-active-border-color: var(--brand-indigo);
    font-weight: 600;
}

[data-bs-theme="dark"] .btn-outline-brand {
    --bs-btn-color: #7fb2ff;
    --bs-btn-border-color: #7fb2ff;
}

/* layout de ancho completo (landing) */
main.main-full {
    padding-top: 64px;
}

.landing section[id] {
    scroll-margin-top: 72px;
}

html {
    scroll-behavior: smooth;
}

.landing .icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.landing .icon-lg {
    width: 28px;
    height: 28px;
}

/* hero */
.landing-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(79, 216, 224, .35) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(240, 138, 28, .28) 0%, transparent 45%),
        linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-indigo) 55%, var(--brand-blue) 100%);
    padding: 5rem 0 7rem;
    overflow: hidden;
}

.hero-badge {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    font-weight: 500;
    padding: .5em 1em;
}

.hero-lead {
    max-width: 560px;
    color: rgba(255, 255, 255, .85);
}

.text-gradient {
    background: linear-gradient(90deg, #ffb347 0%, var(--brand-orange) 50%, #ff6a4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-checks li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-right: 1.25rem;
    color: rgba(255, 255, 255, .9);
}

.hero-checks .icon {
    color: var(--brand-cyan);
}

/* teléfono decorativo del hero */
.phone-mockup {
    width: 270px;
    height: 540px;
    border-radius: 40px;
    background: #0b0f2a;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .15);
    transform: rotate(-4deg);
}

.phone-screen {
    height: 100%;
    border-radius: 30px;
    background: #f5f7fb;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #1d2340;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.phone-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-gradient);
}

.phone-banner {
    border-radius: 14px;
    padding: 14px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
}

.phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phone-grid span {
    height: 74px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(13, 20, 64, .08);
}

.phone-grid span:nth-child(1) { background: linear-gradient(135deg, #ffe2c2, #fff); }
.phone-grid span:nth-child(4) { background: linear-gradient(135deg, #d6f6f8, #fff); }

.phone-row {
    height: 14px;
    border-radius: 7px;
    background: #e3e7f2;
}

.phone-row.short {
    width: 60%;
}

.phone-button {
    margin-top: auto;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-gradient);
}

/* cifras */
.landing-stats {
    margin-top: -3.5rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    padding: 1.25rem .75rem;
    box-shadow: 0 10px 30px rgba(13, 20, 64, .1);
    height: 100%;
}

.stat-card strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--brand-blue);
}

.stat-card span {
    font-size: .85rem;
    color: var(--bs-secondary-color);
}

/* secciones */
.landing-section {
    padding: 5rem 0;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: .5rem;
}

.section-title {
    font-weight: 800;
    font-size: calc(1.4rem + 1.2vw);
    margin-bottom: .75rem;
}

@media (min-width: 1200px) {
    .section-title {
        font-size: 2.4rem;
    }
}

.section-lead {
    color: var(--bs-secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* servicios */
.service-card,
.project-card {
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(13, 20, 64, .12) !important;
}

.service-icon,
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.service-icon {
    width: 56px;
    height: 56px;
    color: #fff;
}

.service-icon-blue { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-indigo)); }
.service-icon-orange { background: var(--brand-gradient); }

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .55rem;
}

.check-list .icon {
    color: #1fa971;
    margin-top: .15rem;
}

/* pasos */
.step-card {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(13, 20, 64, .06);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-indigo));
}

/* planes */
.plan-card {
    position: relative;
}

.plan-featured {
    border: 2px solid var(--brand-orange);
    box-shadow: 0 16px 40px rgba(240, 138, 28, .2);
}

@media (min-width: 992px) {
    .plan-featured {
        transform: scale(1.04);
    }
}

.plan-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-price strong {
    font-size: 2.25rem;
    font-weight: 800;
}

.plan-price span {
    color: var(--bs-secondary-color);
    margin-left: .25rem;
}

/* beneficios */
.benefit-icon {
    width: 48px;
    height: 48px;
    color: var(--brand-blue);
    background: rgba(47, 95, 208, .1);
}

[data-bs-theme="dark"] .benefit-icon {
    color: #7fb2ff;
    background: rgba(127, 178, 255, .12);
}

/* portafolio */
.project-cover {
    height: 140px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.project-cover span {
    background: rgba(255, 255, 255, .9);
    color: #1d2340;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 999px;
}

.grad-1 { background: linear-gradient(135deg, #ffb347, var(--brand-red)); }
.grad-2 { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-indigo)); }
.grad-3 { background: linear-gradient(135deg, #7be0b0, #1f8fa8); }
.grad-4 { background: linear-gradient(135deg, #8a7dff, var(--brand-navy)); }

/* testimonios */
.testimonial {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(13, 20, 64, .06);
    display: flex;
    flex-direction: column;
}

.testimonial blockquote {
    flex-grow: 1;
}

.testimonial-stars {
    color: var(--brand-orange);
    letter-spacing: .15em;
    margin-bottom: .75rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-indigo));
}

/* preguntas frecuentes */
.faq {
    max-width: 820px;
}

.faq-item {
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    background: var(--bs-body-bg);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    line-height: 1;
    color: var(--brand-orange);
    transition: transform .15s ease-in-out;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    margin-bottom: .75rem;
}

/* contacto */
.contact-band {
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(240, 138, 28, .35) 0%, transparent 40%),
        linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-indigo) 100%);
}

@media (min-width: 992px) {
    .contact-band {
        padding: 4rem;
    }
}

.contact-band .btn-light .icon {
    color: #1fa971;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    word-break: break-word;
}

.contact-list a {
    color: #fff;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .14);
}

/* pie de página */
.footer-links li {
    margin-bottom: .4rem;
}

.footer-links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand-orange);
}

/* modo oscuro: tarjetas de la landing */
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .step-card,
[data-bs-theme="dark"] .testimonial,
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .project-card,
[data-bs-theme="dark"] .plan-card:not(.plan-featured) {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3) !important;
}

[data-bs-theme="dark"] .stat-card strong {
    color: #7fb2ff;
}
