/* ==========================================================================
   SISTEMA DE DISEÑO NEUMÓRFICO (SOFT UI) - H. AYUNTAMIENTO DE TINGAMBATO
   Paleta: Gris Neutro (#E6E8EC), Amarillo PRD (#FFC107 / #FFD700), Negro (#121212)
   ========================================================================== */

:root {
    --bg-neu: #E6E8EC;
    --bg-neu-dark: #121212;
    --yellow-prd: #FFC107;
    --yellow-prd-light: #FFD700;
    --text-dark: #1F2328;
    --text-muted: #57606A;
    --white: #FFFFFF;

    /* Sombras Neumórficas Elevadas (Extruidas) */
    --neu-flat: 8px 8px 16px #c3c5c9, -8px -8px 16px #ffffff;
    --neu-flat-sm: 4px 4px 8px #c3c5c9, -4px -4px 8px #ffffff;
    --neu-hover: 12px 12px 24px #bebfc3, -12px -12px 24px #ffffff;

    /* Sombras Neumórficas Inset (Hundidas / Campos / Contenedores) */
    --neu-inset: inset 5px 5px 10px #c3c5c9, inset -5px -5px 10px #ffffff;
    --neu-inset-dark: inset 4px 4px 8px #000000, inset -4px -4px 8px #2a2a2a;

    /* Sombras Neumórficas para Fondos Oscuros */
    --neu-dark-flat: 6px 6px 12px #0a0a0a, -6px -6px 12px #1a1a1a;
}

body {
    background-color: var(--bg-neu);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   TARJETAS Y CONTENEDORES NEUMÓRFICOS
   ========================================================================== */
.neu-card {
    background: var(--bg-neu);
    box-shadow: var(--neu-flat);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.neu-card:hover {
    box-shadow: var(--neu-hover);
    transform: translateY(-3px);
}

.neu-inset {
    background: var(--bg-neu);
    box-shadow: var(--neu-inset);
    border-radius: 16px;
}

.neu-card-dark {
    background: var(--bg-neu-dark);
    box-shadow: var(--neu-dark-flat);
    border-radius: 20px;
    color: var(--white);
}

/* ==========================================================================
   BOTONES NEUMÓRFICOS
   ========================================================================== */
.btn-neu {
    background: var(--bg-neu);
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 24px;
    border: none;
    box-shadow: var(--neu-flat-sm);
    transition: all 0.2s ease;
}

.btn-neu:hover,
.btn-neu:focus {
    box-shadow: var(--neu-hover);
    color: var(--text-dark);
}

.btn-neu:active {
    box-shadow: var(--neu-inset);
    transform: scale(0.98);
}

.btn-neu-yellow {
    background: linear-gradient(135deg, var(--yellow-prd-light), var(--yellow-prd));
    color: var(--bg-neu-dark);
    font-weight: 800;
    border-radius: 50px;
    padding: 12px 28px;
    border: none;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15), -4px -4px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-neu-yellow:hover {
    background: linear-gradient(135deg, var(--yellow-prd), var(--yellow-prd-light));
    color: var(--bg-neu-dark);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   EFECTOS DE FONDOS, PARALLAX, DIFUMINADO Y SEPARADORES
   ========================================================================== */
.parallax-section {
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative;
}

.section-overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.78);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
}

.yellow-separator {
    height: 5px;
    background: linear-gradient(90deg, #121212 0%, #FFC107 50%, #121212 100%);
    border: none;
    margin: 0;
    opacity: 1;
}

/* Subtítulos y textos sobre fondos oscuros difuminados */
.section-overlay-dark .section-subtitle,
.section-overlay-dark p.micro-text {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   ANIMACIONES E INTERACTIVIDAD HOVER
   ========================================================================== */
.neu-card-interactive {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.neu-card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 193, 7, 0.3) !important;
}

.neu-card-interactive:hover .icon-animated {
    transform: scale(1.18) rotate(5deg);
    background-color: #121212 !important;
    color: #FFC107 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

.icon-animated {
    transition: all 0.4s ease;
}

.img-hover-zoom {
    transition: transform 0.5s ease;
}

.neu-card-interactive:hover .img-hover-zoom {
    transform: scale(1.08);
}

/* ==========================================================================
   ESTILOS DE MENÚ NEUMÓRFICO Y ESTRUCTURA DE 3 FILAS
   ========================================================================== */
.neu-navbar-wrapper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.hover-yellow:hover {
    color: var(--yellow-prd) !important;
}

.neu-navbar {
    background: rgba(230, 232, 236, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--yellow-prd);
}

.neu-nav-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    padding: 8px 12px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.neu-nav-link:hover,
.neu-nav-link.active {
    background: var(--bg-neu);
    box-shadow: var(--neu-inset);
    color: #000000 !important;
}

.neu-dropdown-menu {
    background: var(--bg-neu);
    box-shadow: var(--neu-flat);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 10px;
}

.neu-dropdown-item {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.neu-dropdown-item:hover {
    background: var(--yellow-prd);
    color: var(--bg-neu-dark);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Compensación de espacio en el main-wrapper para la cabecera de 3 filas */
.main-wrapper {
    padding-top: 145px !important;
}

@media (max-width: 1199.98px) {
    .main-wrapper {
        padding-top: 85px !important;
    }
}

/* ==========================================================================
   ESTILO CARDS BORDES AMARILLOS + MARCA DE AGUA + HOVER DORADO
   ========================================================================== */

.card-tramite-style {
    background-color: #ffffff;
    border: 2px solid #FFC107;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Icono en marca de agua flotante en la esquina superior derecha */
.card-tramite-style .bg-watermark-icon {
    position: absolute;
    top: -20px;
    right: -25px;
    font-size: 8.5rem;
    color: rgba(220, 228, 236, 0.45);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* Ajustes de contenido y textos */
.card-tramite-style .card-body-content {
    position: relative;
    z-index: 2;
}

.card-tramite-style .tramite-icon {
    color: #FFC107;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.card-tramite-style .tramite-title {
    color: #121212;
    transition: color 0.4s ease;
}

.card-tramite-style .tramite-desc {
    color: #4a5568;
    transition: color 0.4s ease;
}

.card-tramite-style .btn-action-tramite {
    background-color: #f8f9fa;
    color: #121212;
    border: 1px solid #FFC107;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s ease;
}

/* ==========================================================================
   ESTADO HOVER TARJETAS CON DEGRADADO
   ========================================================================== */
.card-tramite-style:hover {
    background: linear-gradient(135deg, #FFC107 0%, #E0A800 100%);
    border-color: #E0A800;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 35px rgba(255, 193, 7, 0.35);
}

.card-tramite-style:hover .bg-watermark-icon {
    color: rgba(255, 255, 255, 0.28);
    transform: scale(1.1) rotate(-8deg);
}

.card-tramite-style:hover .tramite-icon {
    color: #ffffff !important;
    transform: scale(1.15);
}

.card-tramite-style:hover .tramite-title {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-tramite-style:hover .tramite-desc {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-tramite-style:hover .btn-action-tramite {
    background-color: #ffffff;
    color: #121212;
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   CORRECCIÓN RESPONSIVA PARA CABECERA MÓVIL
   ========================================================================== */

.header-logo-img {
    height: 52px;
    width: auto;
    transition: height 0.3s ease;
}

.brand-title {
    font-size: 1.1rem;
    white-space: normal;
    word-break: break-word;
}

.brand-subtitle {
    font-size: 0.72rem;
}

/* Ajustes específicos para teléfonos y pantallas pequeñas (< 576px) */
@media (max-width: 575.98px) {
    .header-logo-img {
        height: 38px;
    }

    .brand-title {
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
    }

    .brand-subtitle {
        font-size: 0.62rem !important;
        letter-spacing: 0px !important;
    }

    .mid-header-bar {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

.hover-yellow-footer {
    transition: color 0.3s ease;
}

.hover-yellow-footer:hover {
    color: #FFC107 !important;
}

