:root {
    --fdd-navy: #1b2a7b;
    --fdd-navy-dark: #131f5e;
    --fdd-blue: #2d6fc4;
    --fdd-blue-light: #eaf1fb;
    --fdd-red: #e21f26;
    --fdd-red-dark: #c0171d;
    --fdd-bg: #f2f5fa;
    --fdd-text: #33415c;
    --fdd-muted: #7a869f;
    --fdd-line: #e9edf5;
    --fdd-radius: 14px;
    --fdd-shadow: 0 3px 10px rgba(20, 35, 90, .08);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--fdd-bg);
    color: var(--fdd-text);
}

a {
    text-decoration: none;
}

.script {
    font-family: 'Caveat', cursive;
    font-size: 1.15em;
}

/* ==================== LOGO ==================== */
.site-logo {
    height: 54px;
    width: auto;
    display: block;
}

.login-logo {
    height: 66px;
    width: auto;
}

.admin-logo {
    height: 44px;
    width: auto;
    display: block;
}

.hero-flower {
    height: 82px;
    width: auto;
}

.logo-flower {
    color: var(--fdd-red);
    font-size: 34px;
    line-height: 1;
    display: inline-flex;
}

.logo-flower-lg {
    font-size: 46px;
}

.logo-text strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--fdd-navy);
    line-height: 1;
}

.logo-text small {
    display: block;
    font-size: .68rem;
    color: var(--fdd-navy);
    max-width: 170px;
    line-height: 1.2;
}

/* ==================== TOPBAR PÚBLICO ==================== */
.site-topbar {
    background: #fff;
    border-bottom: 1px solid var(--fdd-line);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    min-height: 64px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-search {
    flex: 1;
    max-width: 430px;
    margin: 0 auto;
}

.site-search .form-control {
    background: var(--fdd-bg);
    border: 1px solid var(--fdd-line);
    border-radius: 50rem;
    padding-left: 42px;
    height: 42px;
    font-size: .88rem;
}

.site-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fdd-muted);
    font-size: 1rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.topbar-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--fdd-navy);
    font-size: .68rem;
    font-weight: 500;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.topbar-action i {
    font-size: 1.3rem;
}

.topbar-action:hover {
    color: var(--fdd-blue);
}

.topbar-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    background: var(--fdd-red);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 50rem;
    padding: 1px 5px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fdd-navy);
    font-size: .8rem;
    font-weight: 600;
    border-left: 1px solid var(--fdd-line);
    padding-left: 20px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fdd-blue);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}

.avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
}

.avatar-xl {
    width: 104px;
    height: 104px;
    font-size: 2.1rem;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 2px;
}

.profile-role {
    font-size: .82rem;
    color: var(--fdd-muted);
    margin-bottom: 10px;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--fdd-text);
    padding: 6px 4px;
}

.profile-list li i {
    color: var(--fdd-blue);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: .85rem;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== LAYOUT ==================== */
.site-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 64px);
}

.site-sidebar {
    width: 196px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--fdd-line);
    padding: 18px 12px 110px;
    position: sticky;
    top: 64px;
    align-self: flex-start;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.site-sidebar .side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #2f4a86;
    font-size: .84rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background-color .2s ease, color .2s ease;
}

.site-sidebar .side-link i {
    font-size: 1.05rem;
    color: #1f5fbf;
    width: 22px;
    text-align: center;
}

.site-sidebar .side-link:hover {
    background: #eaf1fb;
    color: var(--fdd-navy);
}

.site-sidebar .side-link:hover i {
    color: var(--fdd-navy);
}

.site-sidebar .side-link.active {
    color: #fff;
    font-weight: 700;
    background: #1a56b0;
    box-shadow: 0 4px 10px rgba(26, 86, 176, .35);
}

.site-sidebar .side-link.active i {
    color: #fff;
}

.site-sidebar .side-seccion {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa7bd;
    padding: 14px 12px 5px;
}

.site-content {
    flex: 1;
    min-width: 0;
    padding: 22px 24px 112px;
    display: flex;
    flex-direction: column;
}

/* ==================== HERO / SLIDER ==================== */
.hero-carousel {
    border-radius: var(--fdd-radius);
    overflow: hidden;
    box-shadow: var(--fdd-shadow);
}

.hero-slide {
    display: grid;
    grid-template-columns: 1fr 235px;
    min-height: 320px;
    background: var(--fdd-navy-dark);
    position: relative;
}

.hero-photo {
    position: relative;
    padding: 34px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(19, 31, 94, .94) 0%, rgba(19, 31, 94, .62) 58%, rgba(19, 31, 94, .30) 100%);
}

.hero-osc-fuerte::before {
    background: linear-gradient(95deg, rgba(19, 31, 94, .94) 0%, rgba(19, 31, 94, .62) 58%, rgba(19, 31, 94, .30) 100%);
}

.hero-osc-media::before {
    background: linear-gradient(95deg, rgba(19, 31, 94, .78) 0%, rgba(19, 31, 94, .42) 58%, rgba(19, 31, 94, .16) 100%);
}

.hero-osc-suave::before {
    background: linear-gradient(95deg, rgba(19, 31, 94, .52) 0%, rgba(19, 31, 94, .22) 58%, rgba(19, 31, 94, .04) 100%);
}

.hero-osc-ninguna::before {
    background: none;
}

.hero-enlace {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}

.hero-photo-fill {
    background-image: linear-gradient(120deg, #16225f 0%, #24439c 55%, #3b76c9 100%);
}

.hero-petal {
    position: absolute;
    left: -70px;
    top: -35%;
    width: 150px;
    height: 170%;
    background: rgba(226, 31, 38, .82);
    border-radius: 50%;
    transform: rotate(14deg);
    z-index: 1;
}

.hero-petal-sm {
    left: -30px;
    top: 60%;
    width: 90px;
    height: 70%;
    background: rgba(226, 31, 38, .55);
}

.hero-text {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-left: 34px;
    text-shadow: 0 2px 10px rgba(10, 18, 60, .55);
}

.hero-text h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    max-width: 520px;
}

.hero-text h2 .script {
    font-weight: 700;
}

.hero-text p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .82);
    margin: 0;
}

.hero-band {
    position: relative;
    z-index: 4;
    background: rgba(10, 18, 60, .92);
    color: #fff;
    font-style: italic;
    font-size: .8rem;
    padding: 11px 20px 11px 34px;
    margin-left: 10px;
    border-top-right-radius: 22px;
}

.hero-slide-solo {
    grid-template-columns: 1fr;
}

/* --- Ajuste, posición, altura e imagen móvil del slide --- */
.hero-altura-compacta { min-height: 250px; }
.hero-altura-normal { min-height: 320px; }
.hero-altura-alta { min-height: 430px; }
.hero-altura-extra { min-height: 540px; }

.hero-ajuste-cover { background-size: cover; }

.hero-ajuste-contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #16225f;
}

.hero-ajuste-relleno { background-size: 100% 100%; }

.hero-pos-centro { background-position: center; }
.hero-pos-arriba { background-position: center top; }
.hero-pos-abajo { background-position: center bottom; }
.hero-pos-izquierda { background-position: left center; }
.hero-pos-derecha { background-position: right center; }
.hero-pos-arriba-izquierda { background-position: left top; }
.hero-pos-arriba-derecha { background-position: right top; }
.hero-pos-abajo-izquierda { background-position: left bottom; }
.hero-pos-abajo-derecha { background-position: right bottom; }

@media (max-width: 991.98px) {
    .hero-con-movil {
        background-image: var(--hero-movil) !important;
    }
}

.hero-cta {
    position: relative;
    background: var(--fdd-navy-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 26px 18px;
    color: #fff;
    text-align: center;
}

.hero-cta .hero-flower {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.hero-script {
    font-family: 'Caveat', cursive;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.hero-script::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 5px;
    background: var(--fdd-red);
    border-radius: 6px;
    transform: rotate(-2deg);
}

.hero-carousel .carousel-indicators {
    margin-bottom: 12px;
    z-index: 5;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .55);
    border: 0;
}

.hero-carousel .carousel-indicators .active {
    background-color: #fff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 7%;
    opacity: .75;
    z-index: 6;
}

/* ==================== TARJETAS RÁPIDAS ==================== */
.quick-card {
    border-radius: var(--fdd-radius);
    padding: 18px 14px;
    min-height: 122px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    color: #fff;
    box-shadow: var(--fdd-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(20, 35, 90, .18);
    color: #fff;
}

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.15rem;
    line-height: 1;
}

.quick-card h3 {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.quick-navy { background: #1b2a7b; }
.quick-blue { background: #2d6fc4; }
.quick-red { background: #e21f26; }
.quick-light { background: #cfe0f5; color: var(--fdd-navy); }
.quick-light .quick-icon { color: var(--fdd-navy); }
.quick-light:hover { color: var(--fdd-navy); }

/* ==================== ACCESOS FRECUENTES ==================== */
.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin: 6px 0 14px;
}

.freq-card {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: var(--fdd-navy);
    box-shadow: var(--fdd-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

.freq-card i {
    font-size: 1.9rem;
}

.freq-card span {
    font-size: .76rem;
    font-weight: 600;
    color: var(--fdd-text);
    line-height: 1.3;
}

.freq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(20, 35, 90, .14);
    color: var(--fdd-blue);
}

/* ==================== PANELES ==================== */
.panel-card {
    background: #fff;
    border-radius: var(--fdd-radius);
    box-shadow: var(--fdd-shadow);
    padding: 18px 20px;
    position: relative;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-head h2 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin: 0;
}

.panel-head a {
    font-size: .74rem;
    font-weight: 600;
    color: var(--fdd-navy);
}

.panel-head a:hover {
    color: var(--fdd-red);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin: 20px 0 6px;
}

.search-group:first-of-type {
    margin-top: 6px;
}

/* ==================== NOTIFICACIONES Y MENSAJES ==================== */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--fdd-line);
    color: inherit;
    border-radius: 10px;
}

.notif-item:last-child {
    border-bottom: 0;
}

.notif-item.no-leida {
    background: #f4f8ff;
}

.notif-item:hover {
    background: #eef4fd;
}

.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8f0fb;
    color: var(--fdd-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.notif-item h3 {
    font-size: .86rem;
    font-weight: 700;
    color: var(--fdd-navy);
    margin: 0;
}

.notif-item p {
    font-size: .76rem;
    color: var(--fdd-muted);
    margin: 2px 0 0;
}

.notif-fecha {
    font-size: .7rem;
    color: var(--fdd-muted);
}

.mensaje-cuerpo {
    white-space: pre-wrap;
    color: var(--fdd-text);
    font-size: .9rem;
    line-height: 1.65;
}

/* ==================== SELECTOR DE ICONOS ==================== */
.icon-picker-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.icon-picker-preview .icon-chip {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 6px;
    max-height: 168px;
    overflow-y: auto;
    border: 1px solid var(--fdd-line);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.icon-option {
    border: 1px solid transparent;
    background: #f6f9fd;
    border-radius: 8px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--fdd-navy);
    cursor: pointer;
    padding: 0;
    transition: background-color .15s ease, color .15s ease;
}

.icon-option:hover {
    background: #eaf1fb;
    border-color: #cfe0f5;
}

.icon-option.activo {
    background: #1a56b0;
    color: #fff;
    border-color: #1a56b0;
}

/* ==================== ARRASTRAR ORDEN (MENÚ LATERAL) ==================== */
.fila-orden {
    cursor: grab;
}

.fila-orden.arrastrando {
    opacity: .45;
}

.fila-orden.orden-destino {
    outline: 2px dashed #1a56b0;
    outline-offset: -2px;
}

.fila-orden .bi-grip-vertical {
    cursor: grab;
    margin-right: 4px;
}

.orden-aviso {
    display: none;
}

/* ==================== CORREO Y EDITOR ==================== */
.lista-destinatarios {
    max-height: 430px;
    overflow-y: auto;
    border: 1px solid var(--fdd-line);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.destinatario-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .82rem;
    margin: 0;
}

.destinatario-item:hover {
    background: #f4f8ff;
}

.editor-contenedor .ql-toolbar {
    border-radius: 10px 10px 0 0;
    border-color: var(--fdd-line);
    background: #fbfcfe;
}

.editor-contenedor .ql-container {
    border-radius: 0 0 10px 10px;
    border-color: var(--fdd-line);
    min-height: 240px;
    font-size: .9rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.preview-correo {
    width: 100%;
    height: 340px;
    border: 1px solid var(--fdd-line);
    border-radius: 10px;
    background: #fff;
}

.preview-cumple {
    position: relative;
    min-height: 250px;
    border: 1px solid var(--fdd-line);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    overflow: hidden;
}

.preview-cumple .birthday-cake,
.preview-cumple .birthday-cake-img-wrap {
    position: absolute;
}

/* ==================== TABLAS CON ANIMACIÓN DE ENTRADA ==================== */
@keyframes filaEntrada {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tabla-animada tbody tr {
    animation: filaEntrada .45s ease backwards;
    animation-delay: calc(var(--i, 0) * 45ms);
}

@media (prefers-reduced-motion: reduce) {
    .tabla-animada tbody tr {
        animation: none;
    }
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fdd-line);
}

.news-item:last-child {
    border-bottom: 0;
}

.news-thumb {
    width: 92px;
    height: 66px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(130deg, #dfe8f7, #c4d6f0);
    color: var(--fdd-navy);
    font-size: 1.4rem;
}

.news-item h3 {
    font-size: .84rem;
    font-weight: 700;
    color: var(--fdd-navy);
    margin: 0 0 3px;
    line-height: 1.25;
}

.news-date {
    font-size: .7rem;
    color: var(--fdd-muted);
    display: block;
    margin-bottom: 4px;
}

.news-item p {
    font-size: .74rem;
    color: var(--fdd-text);
    margin: 0;
    line-height: 1.35;
}

.announce-item {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--fdd-line);
}

.announce-item:last-child {
    border-bottom: 0;
}

.announce-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.announce-red { background: #fde8e9; color: var(--fdd-red); }
.announce-blue { background: #e8f0fb; color: var(--fdd-blue); }
.announce-navy { background: #e9ecf9; color: var(--fdd-navy); }
.announce-amber { background: #fdf3e2; color: #d98a12; }

.announce-item h3 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--fdd-navy);
    margin: 0;
}

.announce-item p {
    font-size: .73rem;
    color: var(--fdd-muted);
    margin: 2px 0 0;
    line-height: 1.35;
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}

.birthday-item .name {
    font-size: .84rem;
    font-weight: 700;
    color: var(--fdd-navy);
    display: block;
    line-height: 1.2;
}

.birthday-item .date {
    font-size: .73rem;
    color: var(--fdd-muted);
}

.info-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fdd-line);
    margin-bottom: 10px;
}

.info-person .name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--fdd-navy);
    display: block;
    line-height: 1.2;
}

.info-person .role {
    font-size: .74rem;
    color: var(--fdd-muted);
}

.info-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--fdd-navy);
}

.info-link:hover {
    color: var(--fdd-red);
}

.info-link .icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--fdd-line);
}

.event-item:last-child {
    border-bottom: 0;
}

.event-item .title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--fdd-navy);
    display: block;
    line-height: 1.25;
}

.event-item .time {
    font-size: .72rem;
    color: var(--fdd-muted);
}

.date-tile {
    width: 48px;
    border-radius: 10px;
    border: 1px solid #f6c6c8;
    background: #fff;
    text-align: center;
    padding: 4px 0 5px;
    flex-shrink: 0;
}

.date-tile span {
    display: block;
    color: var(--fdd-red);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.date-tile small {
    display: block;
    color: var(--fdd-text);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ==================== FOOTER PÚBLICO ==================== */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    border-top: 1px solid var(--fdd-line);
    background: #fff;
    box-shadow: 0 -6px 18px rgba(19, 31, 94, .07);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 22px;
    background: linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%);
}

.footer-banner {
    background: var(--fdd-navy);
    color: #fff;
    border-radius: 12px;
    padding: 11px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 1 640px;
    box-shadow: 0 6px 16px rgba(19, 31, 94, .25);
}

.footer-banner i {
    font-size: 1.55rem;
    flex-shrink: 0;
}

.footer-banner strong {
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
}

.footer-banner span {
    font-size: .86rem;
    color: rgba(255, 255, 255, .92);
}

.footer-mensaje {
    position: relative;
    flex: 1;
    height: 1.4em;
    overflow: hidden;
}

.footer-texto {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-texto.activo {
    opacity: 1;
}

.footer-watermark {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #dbe7f7;
    font-size: 52px;
    line-height: 1;
    overflow: hidden;
    min-height: 58px;
}

.footer-watermark i {
    display: inline-flex;
}

.footer-watermark i:nth-child(1) {
    transform: translateY(9px) rotate(-12deg);
}

.footer-watermark i:nth-child(2) {
    font-size: 72px;
    color: #e6eefb;
}

.footer-watermark i:nth-child(3) {
    transform: translateY(8px) rotate(14deg);
}

.footer-script {
    flex-shrink: 0;
    text-align: right;
}

.footer-script span {
    font-family: 'Caveat', cursive;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--fdd-navy);
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap;
}

.footer-script span::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 2%;
    bottom: 0;
    height: 5px;
    border-radius: 5px;
    background: var(--fdd-red);
    transform: rotate(-1.5deg);
}

/* ==================== PASTEL DE CUMPLEAÑOS ==================== */
.birthday-cake {
    text-align: right;
    padding: 6px 10px 12px;
}

.panel-card .birthday-cake,
.panel-card .birthday-cake-img-wrap {
    position: absolute;
    right: 16px;
    bottom: 10px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.birthday-cake .cake-icon {
    position: relative;
    display: inline-block;
    color: var(--fdd-red);
    font-size: 58px;
    line-height: 1;
}

.birthday-cake .cake-icon::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -7px;
    height: 9px;
    border-radius: 6px;
    background: var(--fdd-navy);
}

.birthday-cake-preview {
    text-align: left;
    padding: 8px 0 14px;
}

.birthday-cake-img-wrap {
    text-align: right;
    margin-top: 6px;
}

.birthday-cake-img {
    max-width: 120px;
    max-height: 110px;
    object-fit: contain;
}

/* ==================== ADMIN ==================== */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 258px;
    background: var(--fdd-navy-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    transition: left .25s ease;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 12px;
}

.admin-brand-centrado {
    justify-content: center;
}

.admin-brand-link {
    display: inline-flex;
    transition: opacity .15s ease;
}

.admin-brand-link:hover {
    opacity: .85;
}

.admin-brand-text strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
}

.admin-brand-text small {
    font-size: .68rem;
    color: rgba(255, 255, 255, .65);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.admin-nav-title {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .45);
    margin: 14px 10px 6px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .78);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
}

.admin-nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.admin-nav-link.active {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 700;
}

.admin-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.admin-user i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, .8);
}

.admin-user strong {
    display: block;
    font-size: .82rem;
    line-height: 1.1;
}

.admin-user small {
    font-size: .7rem;
    color: rgba(255, 255, 255, .6);
}

.admin-user form {
    margin-left: auto;
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--fdd-bg);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--fdd-line);
    padding: 13px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin: 0;
}

.admin-content {
    padding: 24px;
    flex: 1;
}

.admin-card {
    background: #fff;
    border-radius: var(--fdd-radius);
    box-shadow: var(--fdd-shadow);
    overflow: hidden;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--fdd-line);
}

.admin-card-head h2 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--fdd-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body {
    padding: 20px;
}

.btn-fdd {
    background: var(--fdd-navy);
    border: 1px solid var(--fdd-navy);
    color: #fff;
}

.btn-fdd:hover,
.btn-fdd:focus {
    background: var(--fdd-navy-dark);
    border-color: var(--fdd-navy-dark);
    color: #fff;
}

.thumb {
    width: 92px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: inline-block;
}

.thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f7;
    color: #9aa7bd;
    font-size: 1.2rem;
}

.preview-img {
    max-width: 280px;
    border-radius: 10px;
    box-shadow: var(--fdd-shadow);
}

.icon-chip {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--fdd-blue-light);
    color: var(--fdd-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.color-chip {
    text-transform: capitalize;
}

.color-navy { background: #1b2a7b; color: #fff; }
.color-blue { background: #2d6fc4; color: #fff; }
.color-red { background: #e21f26; color: #fff; }
.color-light { background: #cfe0f5; color: #1b2a7b; }

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--fdd-radius);
    padding: 18px;
    color: #fff;
    box-shadow: var(--fdd-shadow);
    height: 100%;
}

.stat-card > i {
    font-size: 1.7rem;
    opacity: .9;
}

.stat-card span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card small {
    font-size: .74rem;
    opacity: .8;
}

.stat-link {
    margin-left: auto;
    color: rgba(255, 255, 255, .9);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

.stat-link:hover {
    color: #fff;
    text-decoration: underline;
}

.stat-navy { background: var(--fdd-navy); }
.stat-blue { background: var(--fdd-blue); }
.stat-red { background: var(--fdd-red); }

.date-tile-sm {
    width: 44px;
    padding: 3px 0 4px;
}

.date-tile-sm span {
    font-size: .95rem;
}

/* ==================== LOGIN ==================== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #eef3fb 0%, #dfe8f7 100%);
    padding: 24px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 430px 380px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(19, 31, 94, .22);
    max-width: 810px;
    width: 100%;
}

.login-card {
    padding: 40px 38px 26px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.login-brand strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--fdd-navy);
    letter-spacing: .04em;
    line-height: 1;
}

.login-brand small {
    display: block;
    font-size: .7rem;
    color: var(--fdd-navy);
    max-width: 180px;
    line-height: 1.2;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--fdd-navy);
}

.login-side {
    background: linear-gradient(160deg, #16225f 0%, #24439c 70%, #3b76c9 100%);
    color: #fff;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-side::before {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 190px;
    height: 190px;
    background: rgba(226, 31, 38, .55);
    border-radius: 50%;
}

.login-side h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    position: relative;
}

.login-side h2 em {
    font-family: 'Caveat', cursive;
    font-style: normal;
    font-size: 1.25em;
}

.login-side p {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    position: relative;
}

.login-script {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 26px;
    position: relative;
    padding-bottom: 10px;
    align-self: flex-start;
}

.login-script::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0;
    height: 5px;
    border-radius: 5px;
    background: var(--fdd-red);
    transform: rotate(-2deg);
}

.login-foot {
    margin-top: 22px;
    margin-bottom: 0;
}

/* ==================== COLUMNA DERECHA (HOME) ==================== */
@media (min-width: 1200px) {
    .home-main {
        width: auto;
        max-width: none;
        flex: 1 1 0;
    }

    .home-rail {
        width: 320px;
        max-width: 320px;
        flex: 0 0 320px;
    }
}

/* ==================== QUIÉNES SOMOS ==================== */
.qs-hero {
    position: relative;
    background: linear-gradient(135deg, #16225f 0%, #24439c 65%, #3b76c9 100%);
    border-radius: var(--fdd-radius);
    color: #fff;
    padding: 46px 120px 42px 44px;
    overflow: hidden;
    box-shadow: var(--fdd-shadow);
}

.qs-hero-contenido {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.qs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50rem;
    padding: 5px 14px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.qs-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.qs-hero .lead {
    font-size: .95rem;
    color: rgba(255, 255, 255, .86);
    max-width: 680px;
    margin-bottom: 4px;
}

.qs-script {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin: 14px 0 6px;
}

.qs-script::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0;
    height: 5px;
    border-radius: 5px;
    background: var(--fdd-red);
    transform: rotate(-2deg);
}

.qs-hero-botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-box {
    background: #fff;
    border-radius: var(--fdd-radius);
    box-shadow: var(--fdd-shadow);
    padding: 20px 18px;
    text-align: center;
    border-top: 4px solid var(--fdd-red);
}

.stat-box:nth-child(even) {
    border-top-color: #1a56b0;
}

.stat-number {
    display: block;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 800;
    color: var(--fdd-navy);
    line-height: 1.15;
}

.stat-box small {
    font-size: .76rem;
    color: var(--fdd-muted);
}

.qs-section-head {
    max-width: 740px;
    margin: 0 0 20px;
}

.qs-section-head h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 8px;
}

.qs-section-head p {
    color: var(--fdd-muted);
    font-size: .88rem;
    margin: 0;
}

.qs-section-head .qs-eyebrow {
    background: #eaf1fb;
    border-color: #dbe7f7;
    color: #1a56b0;
    margin-bottom: 12px;
}

.qs-esencia h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--fdd-navy);
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.qs-esencia h3 i {
    color: var(--fdd-red);
}

.qs-esencia p {
    font-size: .85rem;
    color: var(--fdd-text);
    line-height: 1.6;
}

.qs-lista {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.qs-lista li {
    display: flex;
    gap: 9px;
    font-size: .83rem;
    color: var(--fdd-text);
    padding: 4px 0;
}

.qs-lista li i {
    color: #1a56b0;
    margin-top: 2px;
}

.qs-lema {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--fdd-line);
}

.qs-lema .script {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--fdd-navy);
    position: relative;
    padding-bottom: 8px;
}

.qs-lema .script::after {
    content: "";
    position: absolute;
    left: 2%;
    right: 30%;
    bottom: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--fdd-red);
    transform: rotate(-1.5deg);
}

.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #1a56b0, #cfe0f5);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 22px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1a56b0;
    color: #1a56b0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    border-radius: var(--fdd-radius);
    box-shadow: var(--fdd-shadow);
    padding: 20px 22px;
}

.timeline-periodo {
    display: inline-block;
    background: #fde8e9;
    color: var(--fdd-red);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 50rem;
    padding: 4px 12px;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: .84rem;
    color: var(--fdd-text);
    margin: 0;
}

.timeline-lista {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.timeline-lista li {
    display: flex;
    gap: 9px;
    font-size: .82rem;
    color: var(--fdd-text);
    padding: 4px 0;
}

.timeline-lista li i {
    color: #1a56b0;
    margin-top: 2px;
}

.qs-mv {
    padding: 26px 26px 22px;
}

.qs-mv .mv-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #1a56b0;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.qs-mv .mv-icono-rojo {
    background: var(--fdd-red);
}

.qs-mv h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 8px;
}

.qs-mv p {
    font-size: .86rem;
    color: var(--fdd-text);
    margin: 0;
    line-height: 1.6;
}

.valor-card {
    background: #fff;
    border-radius: var(--fdd-radius);
    box-shadow: var(--fdd-shadow);
    padding: 20px;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.valor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(20, 35, 90, .16);
}

.valor-icono {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fde8e9;
    color: var(--fdd-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.valor-card h3 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 6px;
}

.valor-card p {
    font-size: .8rem;
    color: var(--fdd-muted);
    margin: 0;
    line-height: 1.55;
}

.quote-card {
    background: linear-gradient(135deg, #16225f, #24439c);
    color: #fff;
    border-radius: var(--fdd-radius);
    padding: 28px 32px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--fdd-shadow);
}

.quote-icono {
    font-size: 2.4rem;
    color: var(--fdd-red);
    opacity: .9;
    display: block;
    margin-bottom: 4px;
}

.quote-card p {
    font-size: .95rem;
    font-style: italic;
    color: rgba(255, 255, 255, .92);
    max-width: 900px;
    margin-bottom: 14px;
}

.quote-card footer strong {
    display: block;
    font-size: .85rem;
}

.quote-card footer span {
    font-size: .75rem;
    color: rgba(255, 255, 255, .7);
}

.qs-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #eaf1fb;
    border: 1px solid #dbe7f7;
    border-radius: var(--fdd-radius);
    padding: 22px 26px;
}

.qs-cta h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin-bottom: 4px;
}

.qs-cta p {
    font-size: .82rem;
    color: var(--fdd-muted);
    margin: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991.98px) {
    .stats-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .qs-hero {
        padding: 34px 26px;
    }

    .qs-cta {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==================== PÁGINA DE CUMPLEAÑOS ==================== */
.cumple-hero {
    position: relative;
    background: linear-gradient(135deg, #16225f 0%, #24439c 65%, #3b76c9 100%);
    color: #fff;
    border-radius: var(--fdd-radius);
    padding: 38px 42px 34px;
    overflow: hidden;
    box-shadow: var(--fdd-shadow);
}

.cumple-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(226, 31, 38, .38);
}

.cumple-hero h1 {
    font-weight: 800;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cumple-hero p {
    color: rgba(255, 255, 255, .86);
    margin: 0;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.cumple-hero .script {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
}

.cumple-hero .script::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 12%;
    bottom: 0;
    height: 5px;
    border-radius: 5px;
    background: var(--fdd-red);
    transform: rotate(-2deg);
}

.cumple-slider {
    border-radius: var(--fdd-radius);
    overflow: hidden;
    box-shadow: var(--fdd-shadow);
    background: linear-gradient(180deg, #f6f9fd, #ffffff);
}

.cumple-slider .carousel-item {
    padding: 18px 40px 26px;
}

.cumple-slide {
    display: flex;
    justify-content: center;
}

.cumple-slide > div {
    width: 100%;
}

.cumple-slider .carousel-indicators {
    margin-bottom: 6px;
}

.cumple-slider .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #c9d4e6;
    border: 0;
}

.cumple-slider .carousel-indicators .active {
    background-color: #1a56b0;
}

.cumple-slider .carousel-control-prev,
.cumple-slider .carousel-control-next {
    width: 6%;
    opacity: 1;
}

.cumple-slider .carousel-control-prev-icon,
.cumple-slider .carousel-control-next-icon {
    background-color: #1a56b0;
    border-radius: 50%;
    padding: 15px;
    background-size: 52%;
    box-shadow: 0 6px 14px rgba(20, 35, 90, .25);
}

.cumple-mes {
    margin-bottom: 28px;
}

.cumple-mes:last-child {
    margin-bottom: 0;
}

.cumple-mes-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cumple-mes-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin: 0;
    white-space: nowrap;
}

.cumple-mes-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #cfe0f5, transparent);
    border-radius: 2px;
}

.cumple-mes-count {
    font-size: .74rem;
    color: var(--fdd-muted);
    white-space: nowrap;
}

.cumple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.cumple-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--fdd-shadow);
    padding: 22px 14px 18px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cumple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 26px rgba(20, 35, 90, .16);
}

.cumple-card.actual {
    border: 1px solid #ffd9db;
}

.cumple-foto {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 210deg, #1a56b0, #3b76c9, #e21f26, #1a56b0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cumple-card.actual .cumple-foto {
    animation: cumpleLatido 2.6s ease-in-out infinite;
}

.cumple-foto img,
.cumple-foto span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #eaf1fb;
    color: var(--fdd-navy);
    font-weight: 800;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cumple-card h3 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--fdd-navy);
    margin: 0 0 3px;
}

.cumple-fecha {
    font-size: .76rem;
    color: var(--fdd-muted);
    margin: 0 0 2px;
}

.cumple-card small {
    font-size: .72rem;
    color: var(--fdd-muted);
    display: block;
}

.cumple-hoy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--fdd-red);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    border-radius: 50rem;
    padding: 3px 9px;
}

.cumple-vacio {
    background: #fff;
    border: 1px dashed #dbe4f5;
    border-radius: 14px;
    padding: 18px;
    color: var(--fdd-muted);
    font-size: .84rem;
    text-align: center;
}

@keyframes cumpleLatido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes cumpleEntrada {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.cumple-mes.visible .cumple-card {
    animation: cumpleEntrada .55s ease backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@media (max-width: 991.98px) {
    .cumple-hero {
        padding: 28px 22px 26px;
    }

    .cumple-slider .carousel-item {
        padding: 14px 30px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cumple-card.actual .cumple-foto,
    .cumple-mes.visible .cumple-card {
        animation: none;
    }
}

/* ==================== TRANSICIONES DE PÁGINA ==================== */
@view-transition {
    navigation: auto;
}

.site-topbar {
    view-transition-name: site-topbar;
}

.site-sidebar {
    view-transition-name: site-sidebar;
}

.site-footer {
    view-transition-name: site-footer;
}

.site-content > main {
    view-transition-name: contenido-publico;
}

.admin-topbar {
    view-transition-name: admin-topbar;
}

.admin-sidebar {
    view-transition-name: admin-sidebar;
}

.admin-content {
    view-transition-name: contenido-admin;
}

::view-transition-old(root) {
    animation: fdd-fade-out .18s ease both;
}

::view-transition-new(root) {
    animation: fdd-fade-in .25s ease both;
}

::view-transition-old(contenido-publico),
::view-transition-old(contenido-admin) {
    animation: fdd-contenido-salida .16s ease both;
}

::view-transition-new(contenido-publico),
::view-transition-new(contenido-admin) {
    animation: fdd-contenido-entrada .32s cubic-bezier(.22, .61, .36, 1) both;
}

::view-transition-group(site-sidebar),
::view-transition-group(site-topbar),
::view-transition-group(site-footer),
::view-transition-group(admin-sidebar),
::view-transition-group(admin-topbar) {
    animation-duration: .25s;
}

@keyframes fdd-fade-out {
    to { opacity: 0; }
}

@keyframes fdd-fade-in {
    from { opacity: 0; }
}

@keyframes fdd-contenido-salida {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes fdd-contenido-entrada {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@supports not (view-transition-name: none) {
    .site-content main,
    .admin-content {
        animation: fdd-contenido-entrada .3s ease both;
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }

    .site-content main,
    .admin-content {
        animation: none !important;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199.98px) {
    .hero-slide {
        grid-template-columns: 1fr 200px;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -270px;
        z-index: 1040;
        height: 100vh;
        box-shadow: 0 0 30px rgba(0, 0, 0, .3);
    }

    .admin-sidebar.show {
        left: 0;
    }

    .site-sidebar {
        display: none;
    }

    .site-content {
        padding: 16px 14px 140px;
    }

    .site-topbar-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 14px;
    }

    .site-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
        padding: 18px;
    }

    .footer-inner {
        flex-wrap: wrap;
        padding: 14px;
    }

    .footer-banner {
        flex: 1 1 100%;
        padding: 12px 16px;
    }

    .footer-watermark {
        display: none;
    }

    .footer-script {
        flex: 1 1 100%;
        text-align: center;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 430px;
    }

    .login-side {
        display: none;
    }
}
