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

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

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

/* Misma apariencia que .footer h4 (Techie) sin duplicar encabezados del contenido (SEO) */
.footer .footer-heading {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 0;
}

.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,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.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: 10px 0;
    }
}

.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;
}

/* Landing */
.landing-navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-index {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.landing-hero {
    padding: 4rem 0 3rem;
}

@media (min-width: 992px) {
    .landing-hero {
        padding: 5rem 0 4rem;
    }
}

.landing-hero-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
}

.landing-hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.08);
    color: #0056b3;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.landing-section {
    padding: 3rem 0;
}

.landing-section-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-section-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: #6c757d;
}

.landing-feature-card {
    border-radius: 0.75rem;
}

.landing-metrics {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    margin-bottom: 0.75rem;
}

.landing-metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
}

.landing-plan-card {
    border-radius: 0.75rem;
}

.landing-plan-card-featured {
    position: relative;
    transform: translateY(-4px);
}

@media (max-width: 991.98px) {
    .landing-plan-card-featured {
        transform: none;
    }
}

.landing-plan-price .price {
    font-size: 1.5rem;
    font-weight: 700;
}

.gap-2 > * + * {
    margin-left: 0;
}

@media (min-width: 576px) {
    .gap-2 > * + * {
        margin-left: 0.5rem;
    }
}

/* Header visible en páginas internas (fondo blanco) */
.inner-page #header {
    background: linear-gradient(45deg, #6f42c1, #6610f2);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}

/* Selector de idioma en header (todas las páginas con este layout; fondo oscuro o morado) */
#header .landing-lang-dropdown .landing-lang-toggle {
    text-decoration: none;
    box-shadow: none;
    border: 0;
    color: rgba(255, 255, 255, 0.92) !important;
    --bs-btn-color: rgba(255, 255, 255, 0.92);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}
#header .landing-lang-dropdown .landing-lang-toggle:hover,
#header .landing-lang-dropdown .landing-lang-toggle:focus,
#header .landing-lang-dropdown .landing-lang-toggle.show {
    color: #fff !important;
    text-decoration: none;
}
#header .landing-lang-dropdown .landing-lang-toggle::after {
    margin-left: 0.35rem;
    vertical-align: 0.12em;
    border-top-color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}
#header .landing-lang-dropdown .landing-lang-toggle:hover::after,
#header .landing-lang-dropdown .landing-lang-toggle.show::after {
    border-top-color: #fff;
}
#header .landing-lang-dropdown .landing-lang-trigger-code {
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
}
#header .landing-lang-dropdown .dropdown-menu {
    min-width: 11rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
#header .landing-lang-dropdown .dropdown-item {
    color: #1e1b2e;
    transition: background-color 0.12s ease, color 0.12s ease;
}
#header .landing-lang-dropdown .dropdown-item:hover,
#header .landing-lang-dropdown .dropdown-item:focus {
    background-color: rgba(102, 16, 242, 0.12) !important;
    color: #4c1d95 !important;
}
#header .landing-lang-dropdown .dropdown-item.active {
    background-color: rgba(102, 16, 242, 0.08) !important;
    color: #4c1d95 !important;
    font-weight: 600;
}
#header .landing-lang-dropdown .dropdown-item.active:hover,
#header .landing-lang-dropdown .dropdown-item.active:focus {
    background-color: rgba(102, 16, 242, 0.18) !important;
    color: #3b1670 !important;
}
#header .landing-lang-dropdown .dropdown-item .landing-lang-flag {
    font-size: 1.15rem;
    line-height: 1;
}

/* Destacar plan seleccionado en signup */
.signup-plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(102, 16, 242, 0.08);
    color: #6610f2;
    font-size: 0.85rem;
    font-weight: 600;
}

.signup-plan-badge span {
    margin-left: 0.25rem;
}

.signup-change-plan-link {
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Menú hamburguesa por encima del CTA flotante y del resto del header (Techie usa ~9998) */
@media (max-width: 1199.98px) {
    body.mobile-nav-active .navmenu {
        z-index: 10060 !important;
    }

    body.mobile-nav-active .mobile-nav-toggle {
        z-index: 10062 !important;
    }

    /*
     * Techie fija inset inferior en el <ul>: el panel blanco ocupa casi todo el alto.
     * Altura automática + tope máximo si hay muchas opciones.
     */
    body.mobile-nav-active #header .navmenu > ul {
        inset: unset !important;
        top: 60px !important;
        left: 20px !important;
        right: 20px !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 72px) !important;
        overflow-y: auto;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    }

    #header .navmenu .landing-lang-mobile-heading {
        list-style: none;
        pointer-events: none;
        padding: 14px 20px 6px;
        margin: 4px 0 0;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
    }

    #header .navmenu .landing-lang-mobile-heading-text {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b6778;
    }

    #header .navmenu .landing-lang-mobile-heading + li > a .landing-lang-flag {
        font-size: 1.15rem;
        line-height: 1;
    }
}

/* CTA fijo en landing home (index) */
.cta-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10050;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 575.98px) {
    .cta-fixed {
        bottom: 16px;
        right: 16px;
        font-size: 0.9rem;
    }
}

/* Evita que el botón flotante tape el pie al final del scroll */
body.index-page main.main {
    padding-bottom: 5rem;
}
