@font-face {
    font-family: 'Oleo Script';
    src: url('/fonts/OleoScript-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* --------------------------------------------
   CSS Root Variables
--------------------------------------------- */
:root {
    /* UBAM colors */
    --color-ubam-black: rgb(33, 33, 33);
    --color-ubam-dark-gray: rgb(27, 27, 35);
    --color-ubam-dark: rgb(33, 37, 41);
    --color-ubam-gray: rgb(137, 145, 169);
    --color-ubam-light-gray: rgb(230, 233, 244);
    --color-ubam-white: rgb(242, 242, 242);
    --color-ubam-light-blue: rgb(227, 242, 253);
    --color-ubam-blue: rgb(4, 178, 217);
    --color-ubam-blue-btn-cancel: rgb(252, 164, 205);
    --color-ubam-blue-btn-ubam: rgb(117, 210, 231);
    --color-ubam-dark-blue: rgb(18, 124, 166);
    --color-ubam-dark-pink: rgb(186, 7, 91);
    --color-ubam-pink: rgb(217, 24, 114);
    --color-ubam-light-pink: rgb(242, 5, 159);
    --color-ubam-light-red: rgb(255, 236, 248);
    --color-ubam-red: rgb(255, 55, 55);
    --color-ubam-light-yellow: rgb(242, 230, 5);
    --color-ubam-yellow: rgb(255, 226, 151);
    --color-ubam-green: rgb(5, 146, 18);
    --color-ubam-light-green: rgb(137, 203, 24);
    --color-ubam-cahu: rgb(85, 107, 47);
    --color-ubam-light-white: rgb(255, 236, 248);
    --color-ubam-white-pure: rgb(255, 255, 255);

    /* Shadows */
    --ubam-table-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --ubam-table-radius: 12px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --ubam-transition: all 0.3s ease;
    --fast-transition: all 0.2ms ease;
    --menu-padding: 0.75rem 1.25rem;
}

/* --------------------------------------------
   Global Styles
--------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-ubam-white);
    padding-top: 6rem;
}

main {
    height: auto;
    min-height: 80dvh;
}

/* --------------------------------------------
   Custom Scrollbar
--------------------------------------------- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(27, 27, 35, 0.7);
    border-radius: 8px;
    transition: var(--ubam-transition);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 27, 35, 0.9);
}

/* --------------------------------------------
   Typography Styles
--------------------------------------------- */
.subtitle, h4, .subtitle-cei {
    font-family: "Oleo Script", serif;
    font-weight: 700;
}

.subtitle-cei {
    font-size: 1.2rem;
    color: var(--color-ubam-dark-blue);
}

/* --------------------------------------------
   Button Styles
--------------------------------------------- */
.btn-custom {
    background-color: var(--color-ubam-dark-blue) !important;
    color: var(--color-ubam-white);
}

.btn-ubam {
    font-family: "Oleo Script";
    text-decoration: none;
    background-color: var(--color-ubam-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
    transition: var(--ubam-transition);
}

.btn-ubam-cancel {
    font-family: "Oleo Script";
    text-decoration: none;
    background-color: var(--color-ubam-pink);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
}

.btn-ubam:hover {
    background-color: var(--color-ubam-dark-blue);
    color: var(--color-ubam-white);
}

.btn-ubam-cancel:hover {
    font-family: "Oleo Script";
    text-decoration: none;
    background-color: var(--color-ubam-blue-btn-cancel);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
}

/* --------------------------------------------
   Link Styles
--------------------------------------------- */
.link-cei {
    text-decoration: none;
    color: var(--color-ubam-light-pink);
    transition: var(--fast-transition);
}

.link-cei:hover {
    font-weight: bold;
}

/* --------------------------------------------
   Tooltip Styles
--------------------------------------------- */
.custom-tooltip {
    --bs-tooltip-bg: white;
    --bs-tooltip-color: var(--color-ubam-dark-blue);
    font-family: "Oleo Script", serif;
}

/* --------------------------------------------
   Alert Styles
--------------------------------------------- */
.custom-alert {
    display: none;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    margin: 1rem 0;
}

.custom-alert-danger {
    background-color: var(--color-ubam-light-red);
    color: var(--color-ubam-dark-pink);
}

.custom-alert-warning {
    background-color: var(--color-ubam-light-blue);
    color: var(--color-ubam-dark-blue);
}

.custom-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
}

.custom-alert-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.custom-alert-danger .custom-alert-icon img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(100%) saturate(7490%) hue-rotate(312deg) brightness(95%) contrast(105%);
}

.custom-alert-warning .custom-alert-icon img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(72%) saturate(1021%) hue-rotate(170deg) brightness(90%) contrast(95%);
}

.custom-alert-text {
    flex: 1;
    word-wrap: break-word;
}

/**/
.header-title-section .subtitle {
    margin: 0;
    font-size: 1.75rem;
    color: var(--color-ubam-white);
    position: relative;
    padding-bottom: 0.5rem;
}

/* Decorative underline for title */
.header-title-section .subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-ubam-white);
    border-radius: 2px;
}

/* --------------------------------------------
   Filters Icons (svg) (:3)
--------------------------------------------- */
.filter-pink-ubam {
    filter: brightness(0) saturate(100%) invert(31%) sepia(69%) saturate(2061%) hue-rotate(325deg) brightness(93%) contrast(93%);
}

.filter-white-ubam {
    filter: brightness(0) saturate(100%) invert(100%);
}

.filter-cahu-ubam {
    filter: brightness(0) saturate(100%) invert(29%) sepia(41%) saturate(1900%) hue-rotate(82deg) brightness(85%) contrast(80%);
}
.filter-black {
    filter: invert(60%) sepia(6%) saturate(42%) hue-rotate( 145deg) brightness(97%) contrast(89%)
}

/* --------------------------------------------
   Header title line (:3)
--------------------------------------------- */
.header-title-section .subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-ubam-white);
    border-radius: 2px;
}

.header-title-section .subtitle {
    margin: 0;
    font-size: 1.75rem;
    color: var(--color-ubam-white);
    position: relative;
    padding-bottom: 0.125rem;
    font-weight: 500;
    line-height: 1.2;
}

/* --------------------------------------------
   Cards
--------------------------------------------- */
.main-question {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-ubam-dark-blue);
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

/* Ensure anchors behave as grid items */
.card-group > a {
    display: block;
    height: 100%;
    text-decoration: none;
}

/* Card look & feel (keeps your design) */
.dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: clamp(1rem, 1.2vw + .5rem, 1.5rem);
    box-shadow: var(--card-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
    overflow: hidden;
}

/* Top gradient bar */
.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-ubam-blue), var(--color-ubam-pink));
}

/* Hover (safe) */
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

@media (hover: none) {
    .dashboard-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-card {
        transition: none;
    }
}

/* Icon, title, description */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    filter: brightness(0) saturate(100%) invert(18%) sepia(100%) saturate(7490%) hue-rotate(312deg) brightness(95%) contrast(105%);
}

.card-title {
    font-size: clamp(1.1rem, .6vw + .95rem, 1.35rem);
    font-weight: 600;
    color: var(--color-ubam-black);
    margin: .25rem 0 .35rem;
}

.card-description {
    color: var(--color-ubam-gray);
    font-size: clamp(.95rem, .3vw + .85rem, 1rem);
    line-height: 1.55;
}

.icon-review {
    background: rgba(217, 24, 114, 0.1);
    color: var(--color-ubam-pink);
}

.icon-social {
    text-decoration: none;
    width: 40px;
    height: 40px;
}

#facebook {
    filter: brightness(0) saturate(100%)
    invert(35%) sepia(92%) saturate(1819%)
    hue-rotate(197deg) brightness(96%) contrast(101%);
}

#whatsapp {
    filter: brightness(0) saturate(100%)
    invert(48%) sepia(93%) saturate(749%)
    hue-rotate(82deg) brightness(95%) contrast(92%);
}

/* --------------------------------------------
   Media Queries
--------------------------------------------- */
@media (max-width: 1024px) {
    .main-question {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .card-group {
        gap: 1.25rem;
    }
}

@media (max-width: 576px) {
    .custom-alert {
        flex-direction: column;
        text-align: center;
    }

    .custom-alert-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .dashboard-card {
        border-radius: 10px;
    }
}
.linea-contenedor {
    position: relative;
}

    .linea-contenedor::after {
        content: '';
        position: absolute;
        bottom: 0; /* antes era top: 0; */
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, rgb(43 174 209), var(--color-ubam-pink));
    }

