/*
 * @Autor: David Vargas C.
 * @Telefono: +591 70870800
 * @Oficina: Sistemas | CCES-D
 * @Servicio: SEDES Santa Cruz
 * @Correo: dx.crazzy@gmail.com
 * @Version: Version 1.0.0
 */

:root {
    --font-base: 16px;
    --font-title: 26px;
    --font-subtitle: 18px;
    --font-menu: 15px;
    --font-text: 15px;
    --ui-radius: 8px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans", "Segoe UI", Tahoma, sans-serif;
    font-weight: 300;
    font-size: var(--font-base);
    background: #f8fafc;
    margin: 0;
    padding: 0;
}
main {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Noto Sans", "Segoe UI", Tahoma, sans-serif;
}
main h1,
main h2 {
    font-size: var(--font-title) !important;
    line-height: 1.25;
}
main h3,
main h4,
main h5,
main h6 {
    font-size: var(--font-subtitle) !important;
    line-height: 1.3;
}
main p,
main li,
main label,
main input,
main textarea,
main select,
main button {
    font-size: var(--font-text);
}
.text-xs {
    font-size: var(--font-text) !important;
}
.text-sm,
.text-base {
    font-size: var(--font-menu) !important;
}
.text-lg {
    font-size: var(--font-subtitle) !important;
}
.text-xl,
.text-2xl,
.text-3xl,
.text-4xl,
.text-5xl {
    font-size: var(--font-title) !important;
    line-height: 1.25 !important;
}

.site-container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    box-shadow:
        -8px 0 30px rgba(0, 0, 0, 0.12),
        8px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}
[class*="rounded-"]:not([class*="rounded-full"]) {
    border-radius: var(--ui-radius) !important;
}
.site-container
    :where(
        section,
        article,
        aside,
        nav,
        a,
        button,
        input,
        select,
        textarea,
        form,
        [class*="card"],
        [class*="panel"],
        [class*="menu"],
        [class*="dropdown"],
        [class*="submenu"],
        [class*="chip"],
        [class*="badge"],
        [class*="shadow"],
        [class*="border"]
    ):not([class*="rounded-full"]):not([style*="999px"]) {
    border-radius: var(--ui-radius) !important;
}
.container-box {
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00773f, #004631);
    border-radius: 5px;
}

footer a {
    border-radius: var(--ui-radius) !important;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-ver {
    background: #e0f2fe;
    color: #0369a1;
}
.btn-ver:hover {
    background: #0369a1;
    color: white;
    transform: scale(1.05);
}
.btn-descargar {
    background: #dcfce7;
    color: #15803d;
}
.btn-descargar:hover {
    background: #15803d;
    color: white;
    transform: scale(1.05);
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
}
.social-facebook {
    background: #1877f2;
    color: white;
}
.social-facebook:hover {
    box-shadow: 0 8px 25px -5px rgba(24, 119, 242, 0.5);
}
.social-instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    color: white;
}
.social-instagram:hover {
    box-shadow: 0 8px 25px -5px rgba(225, 48, 108, 0.5);
}
.social-tiktok {
    background: #000000;
    color: white;
}
.social-tiktok:hover {
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4);
}
.social-youtube {
    background: #ff0000;
    color: white;
}
.social-youtube:hover {
    box-shadow: 0 8px 25px -5px rgba(255, 0, 0, 0.5);
}
.social-whatsapp {
    background: #25d366;
    color: white;
}
.social-whatsapp:hover {
    box-shadow: 0 8px 25px -5px rgba(37, 211, 102, 0.5);
}

.user-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00773f, #004631);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 119, 63, 0.3);
}
.user-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 119, 63, 0.4);
}

.admin-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.admin-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    transition: box-shadow 0.3s ease;
    margin-bottom: 0;
    border-bottom: none;
}
#main-header + main > section[aria-labelledby="home-title"] {
    margin-top: -22px !important;
}
#main-header + main.page-institucional > section:first-child {
    margin-top: -22px !important;
}
#main-header + main[aria-label="Página de contacto"] > section:first-child {
    margin-top: -22px !important;
}
#main-header + main.page-documentacion > section:first-child {
    margin-top: -22px !important;
}
#main-header
    + main[aria-label="Página de publicaciones"]
    > section:first-child {
    margin-top: -22px !important;
}
.header-main.scrolled {
    box-shadow: none;
}

.flash-message {
    animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emergency-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.emergency-text {
    display: inline-block;
    animation: marqueoll 25s linear infinite;
    padding-left: 100%;
}
@keyframes marqueoll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.siren-rotate {
    animation: siren-spin 1.5s ease-in-out infinite alternate;
    display: inline-block;
    color: #ef4444;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
}
@keyframes siren-spin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

.emergency-text-glow {
    animation: text-glow 2s ease-in-out infinite alternate;
}
@keyframes text-glow {
    0% {
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
        color: #4b5563;
    }
    100% {
        text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
        color: #1f2937;
    }
}

.number-pulse {
    animation: number-beat 1s ease-in-out infinite;
    display: inline-block;
}
@keyframes number-beat {
    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(220, 38, 38, 0.82);
        color: #dc2626;
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroFloatSoft {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.03);
    }
}
@keyframes heroFloatSoftDelay {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(10px, 10px, 0) scale(1.04);
    }
}
.hero-fade-up {
    opacity: 0;
    animation: heroFadeUp 0.75s ease forwards;
}
.hero-blob-slow {
    animation: heroFloatSoft 8s ease-in-out infinite;
}
.hero-blob-delay {
    animation: heroFloatSoftDelay 10s ease-in-out infinite;
}
.hero-lively-card {
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.75);
    position: relative;
    overflow: hidden;
}
.hero-card-glow {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    background: radial-gradient(
        circle at top right,
        rgba(125, 211, 252, 0.28),
        transparent 42%
    );
}
.hero-accent-line {
    width: 6rem;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

footer input::placeholder,
footer textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-msg-user {
    background: #00773f;
    color: #fff;
}
.chat-msg-bot {
    background: #f3f4f6;
    color: #111827;
}
.emergency-float {
    position: fixed;
    left: 0;
    top: 52%;
    transform: translateY(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    padding: 10px 6px;
    color: #ffffff;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 16px 34px rgba(153, 27, 27, 0.38);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.emergency-float:hover {
    transform: translateY(-50%) translateX(5px);
    box-shadow: 0 18px 40px rgba(153, 27, 27, 0.52);
}
.emergency-float-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}
.emergency-float-label {
    display: block;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.emergency-float-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 24px;
    line-height: 0.9;
    font-weight: 900;
}
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 2px 4px;
}
.footer-contact-icon {
    min-width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-contact-icon svg {
    stroke: currentColor;
    transition: transform 0.22s ease;
}
.footer-contact-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px -5px rgba(190, 219, 139, 0.45);
}
.footer-contact-icon:hover svg {
    transform: scale(1.08);
}
@keyframes footerIconIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.footer-icon-reveal {
    opacity: 0;
    animation: footerIconIn 0.4s ease-out forwards;
    animation-delay: var(--icon-delay, 0s);
}
.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    gap: 12px;
}
@media (max-width: 1200px) {
    .site-container {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .container-box {
        width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    #hero-slider {
        height: 420px !important;
    }
    #slider-prev,
    #slider-next {
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.18) !important;
        backdrop-filter: blur(8px);
    }
    #slider-dots {
        bottom: 1rem !important;
        gap: 0.5rem !important;
    }
    #content-tabs {
        scrollbar-width: none;
    }
    #content-tabs::-webkit-scrollbar {
        display: none;
    }
    .emergency-float {
        left: 0;
        top: auto;
        bottom: 5.25rem;
        transform: none;
        width: 40px;
        padding: 8px 5px;
    }
    .emergency-float:hover {
        transform: translateX(4px);
    }
    .emergency-float-icon {
        width: 28px;
        height: 28px;
    }
    .emergency-float-number {
        font-size: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .footer-icon-reveal {
        animation: none !important;
        opacity: 1 !important;
    }
}

@keyframes avisoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.93);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
