/* Copy Animation */
.base-color {
    color: hsl(var(--main)) !important;
}

.copyInput {
    display: inline-block;
    line-height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.copied::after {
    position: absolute;
    top: 8px;
    right: 12%;
    width: 100px;
    display: block;
    content: "COPIED";
    font-size: 1em;
    padding: 5px 5px;
    color: #fff;
    background-color: #FF7000;
    border-radius: 3px;
    opacity: 0;
    will-change: opacity, transform;
    animation: showcopied 1.5s ease;
}

@keyframes showcopied {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    50% {
        opacity: 0.7;
        transform: translateX(40%);
    }

    70% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
    }
}



.cookies-card {
    width: 375px;
    padding: 25px;
    color: #1E2337;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    transition: all .5s;
    background: hsl(var(--card-bg));
    border-radius: 5px;
    box-shadow: 0 0 18px rgb(0 0 0 / 20%);
    border-radius: 20px;
}

.cookies-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.cookies-card__title {
    font-size: inherit;

}

.cookies-card__close {
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: #797878;
    transition: all 0.2s;
}

.cookies-card__close:hover {
    color: #000;

}

.cookies-card__icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #6e6f70;
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cookies-card__content {
    margin-bottom: 0;
    font-size: 13px;
    margin-bottom: 24px;
}

.cookies-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cookies-card__btn-outline {
    text-decoration: none;
    padding: 12px 20px;
    color: #001E00;

}

.cookies-card__btn {
    color: #fff !important;
    text-decoration: none;
    padding: 8px 35px;
    margin: 3px 5px;
    display: inline-block;
    border-radius: 999px;
    background-color: #363636;
    transition: all 0.2s;
}

.cookies-card__btn:hover {
    background-color: #0e0e0e;
}




@media (max-width: 767px) {
    .cookies-card {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 0;
        font-size: 14px;
        padding: 15px;
    }
}


.cookies-card.hide {
    bottom: -500px !important;
}


.show-filter {
    display: none;
}

@media(max-width:767px) {
    .responsive-filter-card {
        display: none;
        transition: none;
    }

    .show-filter {
        display: block;
    }
}


.button-loader .spinner-border {
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
}

/* =========================================================================
   Tokens compartidos de glass/glow de la suite (ver docs/DESIGN_TOKENS.md).
   Consolidación de los valores ya usados abajo — sin cambio visual: cada
   regla que antes tenía el literal ahora referencia el token.
   ========================================================================= */
:root {
    --glass-blur: 24px;
    --glass-blur-sm: 12px;
    --glass-bg-light: hsl(0 0% 100% / 0.65);
    --glow-spotlight: hsl(var(--base) / 0.22);
    --glow-spotlight-two: hsl(var(--base-two) / 0.16);
    --glow-shape: hsl(var(--base) / 0.18);
}

/* =========================================================================
   Secciones claras alternadas del home (bloques de 2, corte limpio).
   Scope que redefine los tokens HSL que main.css ya consume — cards,
   bordes y textos se invierten en cascada. Lavanda derivado del matiz
   de marca (--base-h): si el admin cambia el color, se re-tiñe solo.
   custom.css carga ANTES que main.css → los overrides puntuales ganan
   por especificidad (0,0,2,0 vs 0,0,1,0), nunca con !important.
   ========================================================================= */
.section--light {
    --heading-color: var(--base-h) 25% 18%;
    --body-color: var(--base-h) 16% 35%;
    --border-color: var(--base-h) 25% 85%;
    --card-bg: 0 0% 100%;
    --section-bg: var(--base-h) 40% 98%;
    --box-shadow: 0px 2px 15px hsl(var(--base-h) 30% 20% / 0.08);
    background-color: hsl(var(--base-h) 42% 95%);
}

/* main.css hardcodea hsl(var(--white)) en la descripción de heading */
.section--light .section-heading__desc {
    color: hsl(var(--body-color));
}

/* .custom--card usa border rgba(255,255,255,.1) fijo */
.section--light .custom--card {
    border: 1px solid hsl(var(--border-color) / 0.9);
}

/* testimonial-item tiene fondo blanco/0.02 fijo → glass claro */
.section--light .testimonial-item {
    background-color: var(--glass-bg-light);
    -webkit-backdrop-filter: blur(var(--glass-blur-sm));
    backdrop-filter: blur(var(--glass-blur-sm));
}

/* Glow de bg-light-shape (Feature lo usa): bajar opacidad sobre lavanda */
.section--light.bg-light-shape::before {
    background-color: var(--glow-shape);
}

/* =========================================================================
   Páginas internas oscuras con cards "elevadas" — Contact, Features,
   Blog y detalle de blog: cards un escalón más claras que el fondo
   (10% luz → 18%/15%), misma familia de oscuro con tinte de marca.
   Patrón estándar de superficies elevadas en dark mode
   (Vercel/Linear/GitHub): nunca saltar a un color de modo claro
   completo flotando sobre el fondo. Marcador .elevated-cards en la raíz
   de cada página — evita que la regla alcance las mismas clases de
   card que usa el home (que se queda con su patrón claro/oscuro sin
   tocar). Sin tocar main.css.
   ========================================================================= */
.elevated-cards .features-item,
.elevated-cards .post-item,
.elevated-cards .contact-item {
    background: hsl(var(--base-h) 14% 18%);
}

.elevated-cards .contact-item {
    border-bottom-color: hsl(var(--base));
}

.elevated-cards .form--control,
.elevated-cards .form--select,
.elevated-cards .form--control:focus,
.elevated-cards .form--select:focus {
    background-color: hsl(var(--base-h) 12% 15%);
    border-color: hsl(var(--base-h) 12% 28%);
}

/* Glow ambiente (spotlight) global: main.css lo deja muy tenue
   (0.12/0.08) por defecto; se sube intensidad y tamaño en todo el
   sitio para que se sienta menos plano. "html body::before" gana por
   especificidad a "body::before" de main.css, sin !important.
   "ellipse closest-side" en vez de "circle" (farthest-corner por
   defecto): en una caja más ancha que alta, un círculo mide su radio a
   la esquina más lejana y no alcanza a desvanecerse antes de tocar el
   borde superior/inferior — se corta en seco y se ve como línea recta.
   La elipse ajusta el radio a cada lado más cercano, garantizando que
   ya sea transparente antes de llegar a cualquier borde. */
html body::before {
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse closest-side, var(--glow-spotlight) 0%, transparent 60%);
}

html body::after {
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse closest-side, var(--glow-spotlight-two) 0%, transparent 60%);
}

/* Login page: the two columns (form card + slider photo) sit in a
   Bootstrap .row, which stretches both to match whichever one is
   naturally tallest. The slider photos are portrait (4:5), so at full
   column width their intrinsic height is taller than the page-wrapper's
   available vertical space. A min-height on the row only sets a floor —
   it doesn't stop the image's own intrinsic height from still winning
   and pushing the row (and the whole page) taller than the viewport, so
   the scroll came back. Using a fixed height instead caps the row at
   the available space; height:100% then resolves consistently down the
   whole slider chain (already defined in main.css) and object-fit: cover
   crops the photo to fit instead of growing the row to fit the photo.
   overflow-y: auto on .account is a safety net so an unusually tall form
   (e.g. extra validation errors) scrolls inside the card instead of
   pushing the page. */
@media (min-width: 992px) {
    .login-page__row {
        height: calc(100vh - 140px);
    }

    .login-page__row .account {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        overflow-y: auto;
    }
}