
:root {
    /* Colores Institucionales y Acentos */
    --primary-color: #0e312d;
    --primary-dark: #061e1b;
    --primary-light: #174a44;
    --accent-gold: #c9a86a;
    --accent-gold-warm: #bca66b;
    --accent-gold-bright: #e4c88f;

    --primary-soft: rgba(14, 49, 45, 0.08);
    --primary-soft-strong: rgba(14, 49, 45, 0.15);
    --primary-border: rgba(14, 49, 45, 0.22);
    --gold-soft: rgba(201, 168, 106, 0.15);
    --gold-border: rgba(201, 168, 106, 0.42);

    /* Superficies y Tipografía */
    --bg-body: #f4f6f8;
    --bg-nav: rgba(255, 255, 255, 0.78);
    --text-body: #1f2937;
    --text-heading: #0e312d;
    --text-muted-custom: #526071;
    --card-bg: #111827;
    --modal-bg: #ffffff;
    --border-color: rgba(14, 49, 45, 0.14);

    /* Radios y Sombras */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-soft: 0 16px 40px rgba(6, 30, 27, 0.08);
    --shadow-elev: 0 22px 50px rgba(6, 30, 27, 0.13);
    --shadow-accent: 0 16px 36px rgba(14, 49, 45, 0.25);

    /* Altura de Compensación del Encabezado Fijo */
    --header-height: 112px;

    /* Curvas y Tiempos de Animación Nativa */
    --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-snappy: cubic-bezier(0.2, 0.85, 0.25, 1);
    --transition: 0.24s var(--ease-snappy);
    --transition-slow: 0.45s var(--ease-standard);

    /* Cristal / Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-bg-strong: rgba(255, 255, 255, 0.84);
    --glass-border: rgba(255, 255, 255, 0.68);
    --glass-blur: blur(18px) saturate(170%);
    --glass-shadow: 0 22px 56px rgba(6, 30, 27, 0.15);
    --glass-bg-dark: rgba(12, 26, 24, 0.72);
    --glass-bg-dark-strong: rgba(16, 34, 31, 0.88);
    --glass-border-dark: rgba(201, 168, 106, 0.24);

    /* Variables Rediseño Institucional V2 */
    --ayu-wine: #0e312d;
    --ayu-wine-2: #061e1b;
    --ayu-burgundy: #174a44;
    --ayu-gold: #c9a86a;
    --ayu-ink: #0e312d;
    --ayu-muted: #526071;
    --ayu-paper: #f4f6f8;
    --ayu-line: rgba(14, 49, 45, 0.14);
    --ayu-white: #ffffff;
    --ayu-shadow: var(--shadow-soft);
    --ayu-shadow-lg: var(--shadow-elev);
}

/* ---------- Tipografía Base Amplia, Espaciado y Estabilidad de Scroll ---------- */
html {
    scroll-behavior: auto;
    font-size: 16px;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.78;
    letter-spacing: 0.004em;
    max-width: 100%;
    overflow-x: clip;
    padding-top: var(--header-height, 112px);
    overflow-anchor: none;
    background:
        radial-gradient(circle at 14% 12%, rgba(188, 166, 107, 0.20), transparent 36%),
        radial-gradient(circle at 86% 6%, rgba(14, 49, 45, 0.11), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(23, 74, 68, 0.08), transparent 40%),
        var(--bg-body);
    background-attachment: fixed;
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

h1 { font-size: clamp(2.05rem, 3.6vw, 3.05rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.96rem; }

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

a {
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

main {
    animation: publicFadeUp 0.5s var(--ease-standard) both;
}

/* ---------- Imágenes: Estables, Nítidas y con Zoom Sutil al Pasar el Cursor ---------- */
img {
    max-width: 100%;
    height: auto;
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform var(--transition-slow), filter var(--transition-slow), opacity var(--transition-slow);
}

.imageinfinite1,
.privacy-logo:hover {
    animation: imgZoomLoopSoft 6s ease-in-out infinite alternate;
}

@keyframes imgZoomLoop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1.055); }
}

@keyframes imgZoomLoopSoft {
    0%   { transform: scale(1); }
    100% { transform: scale(1.04); }
}

/* ---------- Encabezado Institucional Siempre Fijo (Estilo Glass) ---------- */
header,
#publicHeader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 12px 34px rgba(6, 30, 27, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow var(--transition-slow), background-color var(--transition-slow), border-color var(--transition-slow);
}

header.header-scrolled,
#publicHeader.header-scrolled {
    box-shadow: 0 16px 40px rgba(6, 30, 27, 0.22);
    background: var(--glass-bg-strong);
    border-bottom-color: var(--gold-border);
}

.top-bar {
    background: linear-gradient(90deg, rgba(14, 49, 45, 0.14), rgba(201, 168, 106, 0.10));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.85rem !important;
    padding: 0.55rem 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.6rem;
}

.top-bar a,
.top-bar span {
    color: var(--text-body) !important;
    font-weight: 500;
}

.top-bar a {
    border-radius: 8px;
    padding: 0.15rem 0.4rem;
}

.top-bar a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.top-bar i {
    color: var(--primary-color);
}

.top-separator {
    margin: 0 0.55rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.navbar {
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.95), rgba(14, 49, 45, 0.92) 62%, rgba(23, 74, 68, 0.90)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.24), transparent 36%);
    color: #ffffff;
    padding: 16px 12px;
    min-height: 112px;
    transition: padding var(--transition-slow), min-height var(--transition-slow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.navbar-brand img {
    height: 92px !important;
    padding: 4px;
    transition: transform var(--transition-slow), height var(--transition-slow);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

header.header-scrolled .navbar {
    min-height: 82px;
    padding: 10px 12px;
}

header.header-scrolled .navbar-brand img {
    height: 62px !important;
}

.navbar-toggler {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transition: background-color var(--transition), transform var(--transition);
}

.navbar-toggler:hover {
    background: rgba(201, 168, 106, 0.25);
    transform: scale(1.04);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.24rem rgba(201, 168, 106, 0.3) !important;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    margin: 0 0.18rem;
    border: 1px solid transparent;
    overflow: hidden;
}

.navbar-light .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: auto 50% 0.35rem 50%;
    height: 2.5px;
    width: 0;
    background: var(--accent-gold-bright);
    border-radius: 999px;
    opacity: 0;
    transition: inset var(--transition), opacity var(--transition), width var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--accent-gold-bright);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-color: rgba(201, 168, 106, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 30, 27, 0.22);
}

.navbar-light .navbar-nav .nav-link:hover::before {
    inset: auto 1rem 0.35rem 1rem;
    opacity: 1;
}

.navbar-light .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-accent);
    border-color: var(--gold-border);
    font-weight: 700;
    animation: activeGlow 3.2s ease-in-out infinite;
}

.navbar-light .navbar-nav .nav-link.active::before {
    display: none;
}

.dropdown-menu {
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent-gold);
    border-radius: 18px;
    padding: 0.7rem;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    animation: menuReveal 0.26s var(--ease-standard) both;
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: background-color var(--transition), color var(--transition),
                transform var(--transition), padding-left var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-soft);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item.fw-bold.text-primary {
    color: var(--primary-color) !important;
}

.dropdown-header {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
    text-transform: uppercase;
    padding: 0.5rem 1rem 0.25rem;
}

.dropdown-divider {
    opacity: 0.45;
    margin: 0.4rem 0;
}

.nav-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 4px;
    box-shadow: 0 8px 18px rgba(6, 30, 27, 0.08);
    transition: background-color var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
}

.nav-control-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-accent);
}

.nav-control-btn:active {
    transform: translateY(0) scale(0.95);
}

/* ---------- Loader ---------- */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s var(--ease-standard), visibility 0.4s var(--ease-standard);
}

#loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(14, 49, 45, 0.16);
    border-top-color: var(--primary-color);
    animation: spinLoader 0.75s linear infinite;
}

/* ---------- Chat Widget (Cristal) ---------- */
#chat-widget-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1070;
    display: flex;
    flex-direction: column;
    align-items: end;
    font-family: 'Poppins', sans-serif;
}

#chat-toggle-btn {
    min-width: 170px;
    height: 62px;
    padding: 0 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border: 1px solid rgba(201, 168, 106, 0.35);
    box-shadow: 0 16px 38px rgba(14, 49, 45, 0.32);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-radius var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

#chat-toggle-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 22px 48px rgba(14, 49, 45, 0.42);
    border-radius: 26px;
}

#chat-toggle-btn:active {
    transform: translateY(-1px) scale(0.98);
}

#chat-toggle-btn i {
    transition: transform var(--transition);
}

#chat-window {
    width: min(390px, calc(100vw - 32px));
    height: 540px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    box-shadow: 0 28px 76px rgba(6, 30, 27, 0.24);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--glass-border);
    animation: slideUpChat 0.34s var(--ease-standard);
    transform-origin: bottom right;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 1.1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.98rem;
    border-bottom: 2px solid var(--accent-gold);
}

.chat-body {
    flex: 1;
    padding: 1.3rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.42);
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.chat-msg {
    margin-bottom: 0.9rem;
    max-width: 88%;
    padding: 0.85rem 1.05rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.62;
    box-shadow: 0 8px 18px rgba(6, 30, 27, 0.07);
    animation: fadeInMsg 0.3s var(--ease-standard) both;
}

.msg-bot {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(8px);
    color: var(--text-body);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.msg-user {
    background: var(--primary-soft-strong);
    color: var(--primary-dark);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
    font-weight: 500;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.45rem;
    margin-bottom: 0.65rem;
}

.chat-opt-btn {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-border);
    color: var(--primary-dark);
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-align: left;
    font-weight: 600;
    animation: fadeInMsg 0.3s var(--ease-standard) both;
}

.chat-options .chat-opt-btn:nth-child(1) { animation-delay: 0.02s; }
.chat-options .chat-opt-btn:nth-child(2) { animation-delay: 0.06s; }
.chat-options .chat-opt-btn:nth-child(3) { animation-delay: 0.10s; }
.chat-options .chat-opt-btn:nth-child(4) { animation-delay: 0.14s; }
.chat-options .chat-opt-btn:nth-child(5) { animation-delay: 0.18s; }
.chat-options .chat-opt-btn:nth-child(6) { animation-delay: 0.22s; }
.chat-options .chat-opt-btn:nth-child(7) { animation-delay: 0.26s; }
.chat-options .chat-opt-btn:nth-child(8) { animation-delay: 0.30s; }

.chat-opt-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
    transform: translateX(5px);
    box-shadow: 0 10px 24px rgba(14, 49, 45, 0.26);
}

.chat-opt-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* ---------- Panel de Accesibilidad (Cristal) ---------- */
#acc-panel {
    position: fixed;
    top: calc(var(--header-height, 112px) + 10px);
    right: 28px;
    width: 330px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 22px;
    box-shadow: 0 28px 76px rgba(6, 30, 27, 0.22);
    padding: 0;
    z-index: 1060;
    display: none;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    animation: slideDown 0.26s var(--ease-standard);
}

.acc-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    font-size: 0.98rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}

.acc-body {
    padding: 1.3rem;
}

.acc-option-label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    display: block;
    color: var(--text-muted-custom);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.acc-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.25rem;
}

.acc-action-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(6px);
    padding: 0.78rem 0.85rem;
    border-radius: 14px;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition),
                transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-body);
}

.acc-action-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: var(--primary-border);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14, 49, 45, 0.14);
}

.acc-action-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ---------- Modal de Privacidad (Cristal) ---------- */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.privacy-logo {
    height: 155px;
    width: auto;
    display: block;
    margin: 0 auto 1.5rem;
    opacity: 0.96;
    filter: drop-shadow(0 16px 30px rgba(6, 30, 27, 0.14));
}

.modal-content.privacy-content {
    border-radius: 26px;
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--accent-gold);
    overflow: hidden;
    box-shadow: 0 32px 85px rgba(6, 30, 27, 0.28);
    background: #fff;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    animation: subtleModalEnter var(--transition-slow) both;
}

.btn-privacy-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border-color: rgba(201, 168, 106, 0.4) !important;
    color: #ffffff !important;
    padding: 0.85rem 1.9rem;
    font-size: 1rem;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-privacy-accept:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-accent);
}

.btn-privacy-accept:active {
    transform: translateY(0) scale(0.99);
}

.btn-outline-secondary.rounded-pill {
    transition: transform var(--transition), background-color var(--transition);
}

.btn-outline-secondary.rounded-pill:hover {
    transform: translateY(-2px);
}

/* ---------- Pie de Página (Cristal Institucional) ---------- */
.footer-custom {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
    margin-top: 3.5rem;
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.96), rgba(14, 49, 45, 0.92) 62%, rgba(23, 74, 68, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.22), transparent 36%) !important;
    color: #ffffff;
    border-top: 4px solid var(--accent-gold);
}

.footer-custom::before {
    content: '';
    position: absolute;
    inset: -30% -10% auto auto;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    background: rgba(201, 168, 106, 0.10);
    filter: blur(18px);
    pointer-events: none;
    animation: floatBlob 14s ease-in-out infinite;
}

.footer-custom::after {
    content: '';
    position: absolute;
    inset: auto auto -20% -10%;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: rgba(23, 74, 68, 0.18);
    filter: blur(18px);
    pointer-events: none;
    animation: floatBlob 17s ease-in-out infinite reverse;
}

.footer-custom .container {
    position: relative;
    background: transparent !important;
}

.footer-custom img {
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    transition: transform var(--transition-slow);
}

.footer-custom img:hover {
    transform: translateY(-4px) scale(1.02);
}

.contact-card {
    height: 100%;
    padding: 1.65rem 1.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    transition: transform var(--transition), background-color var(--transition),
                border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--gold-border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.contact-card i {
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border: 1px solid rgba(201, 168, 106, 0.35);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 26px rgba(6, 30, 27, 0.35);
    transition: transform var(--transition);
}

.contact-card:hover i {
    transform: scale(1.08);
}

.contact-card h6 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.contact-card p,
.contact-card a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.92rem;
    margin: 0;
}

.contact-card a:hover {
    color: var(--accent-gold-bright) !important;
}

.footer-simple-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-simple-link:hover {
    color: var(--accent-gold-bright) !important;
    transform: translateY(-2px);
}

/* ---------- Modo Oscuro (Cristal Oscuro) ---------- */
body.dark-mode {
    --bg-body: #111b1a !important;
    --bg-nav: rgba(16, 31, 29, 0.78) !important;
    --glass-bg-strong: rgba(22, 41, 38, 0.84) !important;
    --glass-bg: rgba(22, 41, 38, 0.66) !important;
    --glass-border: rgba(201, 168, 106, 0.22) !important;
    --text-body: #f1f5f9 !important;
    --text-heading: #f3e4c3 !important;
    --card-bg: #1e2d2b !important;
    --modal-bg: #1e2d2b !important;
    --border-color: rgba(201, 168, 106, 0.24) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-body) !important;
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode .navbar,
body.dark-mode .modal-header,
body.dark-mode .modal-body,
body.dark-mode .modal-footer,
body.dark-mode .card,
body.dark-mode .top-bar {
    background-color: transparent !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .dropdown-menu,
body.dark-mode .modal-content,
body.dark-mode .contact-card,
body.dark-mode #acc-panel,
body.dark-mode .acc-action-btn {
    background-color: rgba(24, 45, 42, 0.82) !important;
    color: #f1f5f9 !important;
    border-color: rgba(201, 168, 106, 0.24) !important;
}

body.dark-mode #chat-window {
    background-color: rgba(20, 38, 35, 0.86) !important;
    border-color: rgba(201, 168, 106, 0.25) !important;
}

body.dark-mode .chat-body {
    background: rgba(14, 27, 25, 0.52) !important;
}

body.dark-mode .msg-bot {
    background: rgba(45, 72, 68, 0.85);
    color: #f1f5f9;
}

body.dark-mode .chat-opt-btn {
    background: rgba(28, 52, 48, 0.78);
    border-color: rgba(201, 168, 106, 0.45);
    color: #f1f5f9;
}

body.dark-mode .chat-opt-btn:hover {
    background: var(--accent-gold);
    color: #061e1b;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode span,
body.dark-mode small,
body.dark-mode i,
body.dark-mode a,
body.dark-mode div,
body.dark-mode .nav-link,
body.dark-mode .dropdown-item {
    color: #f1f5f9 !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
body.dark-mode .navbar-light .navbar-nav .nav-link.active {
    background-color: rgba(201, 168, 106, 0.16) !important;
    border: 1px solid rgba(201, 168, 106, 0.45) !important;
    box-shadow: none !important;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .acc-action-btn:hover {
    background-color: rgba(201, 168, 106, 0.18) !important;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

body.dark-mode .privacy-logo {
    filter: brightness(0) invert(1);
}

body.dark-mode .nav-control-btn {
    border-color: rgba(201, 168, 106, 0.35);
    color: #f1f5f9;
    background: rgba(28, 52, 48, 0.72);
}

body.dark-mode .nav-control-btn:hover {
    background: rgba(45, 72, 68, 0.9);
}

html.acc-invert {
    filter: invert(1);
}

body.hc-dark * { background-color: #000 !important; color: #ff0 !important; border-color: #ff0 !important; box-shadow: none !important; animation: none !important; transition: none !important; backdrop-filter: none !important; }
body.hc-green * { background-color: #000 !important; color: #0f0 !important; border-color: #0f0 !important; box-shadow: none !important; animation: none !important; transition: none !important; backdrop-filter: none !important; }
body.hc-blue * { background-color: #000 !important; color: #0ff !important; border-color: #0ff !important; box-shadow: none !important; animation: none !important; transition: none !important; backdrop-filter: none !important; }

/* ---------- Menús Desplegables (Escritorio) ---------- */
@media (min-width: 992px) {
    .navbar .dropdown {
        position: relative;
    }
    .navbar .dropdown::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 0.75rem;
        display: block;
    }
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown:focus-within > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .navbar .dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(0.5rem) scale(0.98);
        margin-top: 0.45rem;
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 72px;
    }
    .navbar-brand img {
        height: 54px !important;
    }
    .navbar-collapse {
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1.2rem 0.5rem 2.2rem;
        overscroll-behavior: contain;
    }
    .navbar-collapse::-webkit-scrollbar {
        width: 5px;
    }
    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: rgba(201, 168, 106, 0.5);
        border-radius: 10px;
    }
    .navbar-nav {
        align-items: stretch !important;
        gap: 0.55rem !important;
    }
    .navbar-light .navbar-nav .nav-link {
        border-radius: 16px;
        margin: 0;
        padding: 0.82rem 1rem;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
    }
    .navbar-nav .dropdown-menu {
        display: block !important;
        position: static !important;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        padding-left: 1.1rem;
        margin-top: 0.2rem;
        animation: none;
    }
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }
    .navbar-nav .nav-link.dropdown-toggle {
        font-weight: 700;
        color: var(--accent-gold-bright);
        opacity: 1 !important;
        pointer-events: none;
        cursor: default;
        padding-bottom: 0.6rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }
    .navbar-nav .dropdown-item {
        padding: 0.7rem 0.85rem;
        white-space: normal;
    }
    .nav-item.ms-2.border-start {
        border-left: 0 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        justify-content: center;
        padding-top: 0.75rem;
    }
    #acc-panel {
        top: calc(var(--header-height, 84px) + 8px);
        right: 14px;
        width: min(315px, calc(100vw - 24px));
    }
    #chat-widget-container {
        right: 18px;
        bottom: 18px;
    }
    #chat-toggle-btn {
        min-width: 60px;
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 20px;
    }
    .footer-custom {
        padding-top: 2.8rem;
    }
}

@media (max-width: 575.98px) {
    html { font-size: 15px; }
    body { font-size: 0.96rem; }
    .top-bar { display: none !important; }
    .privacy-logo { height: 130px; }
    .modal-body.p-5 { padding: 1.75rem !important; }
}

/* ---------- Animaciones Base ---------- */
@keyframes publicFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtleModalEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes menuReveal {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideUpChat {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

@keyframes chatFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 16px 38px rgba(14, 49, 45, 0.30); }
    50% { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(14, 49, 45, 0.38); }
}

@keyframes activeGlow {
    0%, 100% { box-shadow: var(--shadow-accent); }
    50% { box-shadow: 0 16px 40px rgba(201, 168, 106, 0.28); }
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-14px, 12px) scale(1.05); }
}

/* ---------- Rendimiento y Accesibilidad de Movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

img, iframe, video, canvas, svg, table {
    max-width: 100%;
}

img {
    height: auto;
}

@media (max-width: 991.98px) {
    main, footer, .footer-custom {
        max-width: 100vw;
        overflow-x: clip;
    }
    .navbar-collapse, #chat-widget-container, #acc-panel {
        max-width: calc(100vw - 16px);
    }
}

/* ---------- Collage Vertical ---------- */
.collage-wrapper {
    display: flex;
    gap: 18px;
    height: 660px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.collage-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.collage-item {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.collage-item:nth-child(odd) { height: 225px; }
.collage-item:nth-child(even) { height: 285px; }

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-standard);
}

.collage-item:hover img {
    transform: scale(1.08);
}

.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 18px 18px;
    background: linear-gradient(to top, rgba(6, 30, 27, 0.92), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease-standard);
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

@keyframes verticalScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes verticalScrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.anim-up { animation: verticalScrollUp 38s linear infinite; }
.anim-down { animation: verticalScrollDown 48s linear infinite; }
.collage-wrapper:hover .collage-column { animation-play-state: paused; }

@media (max-width: 768px) {
    .collage-wrapper { height: 360px; }
    .collage-column:nth-child(4), .collage-column:nth-child(5) { display: none; }
}

/* ---------- Sala de Prensa ---------- */
.sala-prensa-section {
    padding: 84px 0;
    background: transparent;
}

.sp-card {
    position: relative;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-elev);
    border: 1px solid var(--glass-border);
}

.sp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 7s var(--ease-standard);
}

.carousel-item.active .sp-img {
    transform: scale(1.045);
}

.sp-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 82%;
    background: linear-gradient(to top, rgba(6, 30, 27, 0.95) 0%, rgba(14, 49, 45, 0.65) 45%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
}

.sp-meta {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.55s var(--ease-standard) 0.25s;
    display: block;
    font-size: 0.92rem;
}

.sp-title {
    color: #ffffff;
    font-size: clamp(1.85rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 850px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.55s var(--ease-standard) 0.35s;
}

.sp-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 1.85rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.55s var(--ease-standard) 0.45s;
}

.carousel-item.active .sp-meta,
.carousel-item.active .sp-title,
.carousel-item.active .sp-desc,
.carousel-item.active .sp-btn {
    opacity: 1;
    transform: translateY(0);
}

.sp-btn {
    opacity: 0;
    transition: all 0.55s var(--ease-standard) 0.55s;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0;
    transition: opacity 0.35s var(--ease-standard);
}

.sp-card:hover .carousel-control-prev,
.sp-card:hover .carousel-control-next {
    opacity: 1;
}

.text-primary_tez { color: var(--primary-color); }
.bg-primary_tez { background: var(--primary-color); }

@media (max-width: 768px) {
    .sp-card { height: 510px; }
    .sp-gradient-overlay { padding: 2rem; }
    .sp-title { font-size: 1.8rem; }
    .sp-desc { font-size: 1rem; }
    .sala-prensa-section { padding: 48px 0; }
}

.playlist-thumbnail {
    transition: all 0.4s var(--ease-standard);
}

/* ---------- Tarjetas de Servicio, Pilares y Turismo ---------- */
.service-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 2.6rem 1.85rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.45s var(--ease-standard);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transition: height 0.45s var(--ease-standard);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elev) !important;
    border-color: var(--gold-border);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h3.text-dark,
.service-card:hover p.text-muted,
.service-card:hover .service-icon-box i {
    color: #ffffff !important;
}

.service-icon-box {
    width: 74px;
    height: 74px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem auto;
    transition: all 0.4s var(--ease-standard);
}

.service-icon-box i {
    font-size: 1.85rem;
    color: var(--primary-color);
    transition: all 0.4s var(--ease-standard);
}

.service-card:hover .service-icon-box {
    background: rgba(201, 168, 106, 0.22);
    border-color: var(--accent-gold-bright);
    transform: scale(1.08);
}

.pillar-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-standard);
    border: 1px solid var(--glass-border);
}

.pillar-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow-elev) !important;
    border-color: var(--gold-border) !important;
}

.tourism-banner {
    height: 490px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-elev);
    transition: all 0.5s var(--ease-standard);
}

.tourism-banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(6, 30, 27, 0.22) !important;
}

.tourism-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/portada.jpg') no-repeat center center;
    background-size: cover;
    transition: transform 1.2s var(--ease-standard);
}

.tourism-banner:hover .tourism-bg {
    transform: scale(1.06);
}

.tourism-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(6, 30, 27, 0.92) 0%, rgba(14, 49, 45, 0.62) 55%, rgba(6, 30, 27, 0.14) 100%);
}

.tourism-btn {
    transition: all 0.35s var(--ease-standard);
}

.tourism-btn:hover {
    transform: scale(1.04) translateX(4px);
    box-shadow: 0 12px 28px rgba(201, 168, 106, 0.35);
}

.text-shadow-sm { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65); }
.tracking-wider { letter-spacing: 0.14em; }

.mosaic-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
}

.mosaic-tile {
    position: absolute;
    opacity: 0.14;
    border-radius: 14%;
    animation: floatMosaic linear infinite;
    bottom: -200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    will-change: transform, opacity;
}

@keyframes floatMosaic {
    0% { transform: translateY(0) rotate(0deg) scale(0.9); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-115vh) rotate(180deg) scale(1.1); opacity: 0; }
}

.news-hero-img-wrapper {
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.news-hero-img-wrapper img,
.news-grid-img,
.card-hover-effect img {
    transition: transform 0.7s var(--ease-standard);
}

.news-hero-card:hover .news-hero-img-wrapper img {
    transform: scale(1.07);
}

.news-grid-item {
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.45s var(--ease-standard);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.news-grid-item:hover {
    box-shadow: var(--shadow-elev);
    transform: translateY(-6px);
    border-color: var(--gold-border);
}

.news-grid-item:hover .news-grid-img {
    transform: scale(1.07);
}

.card-hover-effect {
    transition: all 0.4s var(--ease-standard);
}

.card-hover-effect:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elev) !important;
    border-color: var(--gold-border) !important;
}

.card-hover-effect:hover img {
    transform: scale(1.07);
}

/* ==========================================================
   REDISEÑO INSTITUCIONAL V2 (CAPA VISUAL GLASS)
   ========================================================== */
html { scroll-behavior: auto; }
body { font-family: 'Poppins', sans-serif; background: var(--ayu-paper); color: var(--text-body); }
body .tez-home-v2 { overflow: clip; }
.tez-home-v2 img { animation: none !important; }

/* HEADER V5 SIEMPRE FIJO */
.tez-header-v5 {
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.96), rgba(14, 49, 45, 0.92) 62%, rgba(23, 74, 68, 0.90)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.22), transparent 36%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    width: 100%;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style;
    box-shadow: 0 10px 30px rgba(6, 30, 27, 0.18);
    border-bottom: 1px solid rgba(201, 168, 106, 0.35);
    font-family: 'Poppins', sans-serif;
}

.tez-header-v5 .navbar {
    padding: 0;
    background: transparent;
    min-height: auto;
}

.brand-wrapper {
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(244, 240, 228, 0.88));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 14px 64px 14px clamp(1.5rem, 4vw, 3.5rem);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 112px;
    border-right: 3px solid var(--accent-gold);
    transition: min-height var(--transition-slow), padding var(--transition-slow);
}

header.header-scrolled .brand-wrapper {
    min-height: 88px;
}

.brand-wrapper img {
    height: 64px;
    margin-right: 16px;
    mix-blend-mode: multiply;
}

header.header-scrolled .brand-wrapper img {
    height: 56px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: #0e312d;
}

.brand-text .h-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0.5px;
}

.brand-text .h-year {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-top: 4px;
    color: #174a44;
}

.tez-header-v5 .navbar-nav {
    padding-right: 2vw;
    gap: 8px;
}

.tez-header-v5 .nav-link {
    color: #000 !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1.65rem 1rem !important;
    position: relative;
    transition: color var(--transition), background-color var(--transition);
}

header.header-scrolled .tez-header-v5 .nav-link {
    padding: 1.25rem 1rem !important;
}

.tez-header-v5 .nav-link:hover,
.tez-header-v5 .nav-link:focus {
    color: #e4c88f !important;
}

.tez-header-v5 .nav-link.active {
    color: #ffffff !important;
}

.tez-header-v5 .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    border-radius: 999px;
    background-color: #e4c88f;
}

.tez-header-v5 .dropdown-menu {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 3px solid #e4c88f;
    border-radius: 0 0 14px 14px;
    box-shadow: var(--glass-shadow);
    margin-top: 0;
    padding: 0.65rem;
}

.tez-header-v5 .dropdown-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0e312d;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    text-transform: uppercase;
    transition: all var(--transition);
}

.tez-header-v5 .dropdown-item:hover {
    background-color: var(--primary-soft);
    color: #061e1b;
    padding-left: 1.45rem;
}

.header-tools-v5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.tool-btn-v5 {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.tool-btn-v5:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #e4c88f;
    border-color: #e4c88f;
}

.tez-header-v5 .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    margin-right: 15px;
    padding: 6px 12px;
}

.tez-header-v5 .navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    .brand-wrapper {
        clip-path: none;
        width: calc(100% - 72px);
        padding: 15px 20px;
        min-height: auto;
    }
    .tez-header-v5 .navbar-collapse {
        background-color: rgba(6, 30, 27, 0.96);
        backdrop-filter: var(--glass-blur);
    }
    .tez-header-v5 .navbar-nav {
        padding: 12px 0;
        gap: 4px;
    }
    .tez-header-v5 .nav-link {
        padding: 0.9rem 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .tez-header-v5 .nav-link.active::after {
        bottom: 6px;
        left: 20px;
        width: 44px;
        right: auto;
    }
    .tez-header-v5 .dropdown-menu {
        background-color: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    .tez-header-v5 .dropdown-item {
        color: rgba(255, 255, 255, 0.88);
    }
    .tez-header-v5 .dropdown-item:hover {
        background-color: transparent;
        color: #e4c88f;
    }
    .header-tools-v5 {
        display: none;
    }
}

.tez-site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.tez-topline {
    background: var(--ayu-wine);
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.tez-topline .container {
    min-height: 40px;
}

.tez-top-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tez-header-tool {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.tez-header-tool:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.tez-main-nav {
    background: transparent;
    padding: 0.85rem 0 !important;
    min-height: 84px;
}

.tez-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--ayu-ink) !important;
}

.tez-brand img {
    height: 62px !important;
    width: auto;
    object-fit: contain;
}

.tez-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    border-left: 2px solid var(--accent-gold);
    padding-left: 0.9rem;
}

.tez-brand strong {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    color: var(--ayu-wine);
}

.tez-brand small {
    font-size: 0.78rem;
    color: var(--ayu-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.tez-main-nav .navbar-nav {
    gap: 0.25rem;
}

.tez-main-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 0.9rem !important;
    border-radius: 10px;
    white-space: nowrap;
}

.tez-main-nav .nav-link:hover {
    background: var(--primary-soft);
    color: var(--ayu-wine) !important;
}

.tez-main-nav .nav-link.active {
    background: var(--ayu-wine) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-accent);
}

.tez-main-nav .dropdown-menu {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.65rem;
    box-shadow: var(--glass-shadow);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    min-width: 245px;
}

.tez-main-nav .dropdown-item {
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 0.68rem 0.85rem;
    border-radius: 9px;
}

.tez-main-nav .dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--ayu-wine);
}

.tez-main-nav .dropdown-header {
    color: var(--ayu-wine);
}

.tez-main-nav .navbar-toggler {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}

/* HERO */
.tez-hero {
    position: relative;
    min-height: 660px;
    background: #061e1b;
    color: #ffffff;
    display: flex;
    align-items: stretch;
}

.tez-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tez-hero-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tez-hero-empty {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.96), #0e312d 62%, rgba(23, 74, 68, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.24), transparent 36%);
}

.tez-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 30, 27, 0.92) 0%, rgba(14, 49, 45, 0.72) 48%, rgba(6, 30, 27, 0.24) 100%),
        linear-gradient(0deg, rgba(6, 30, 27, 0.62), transparent 48%);
}

.tez-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8rem 0 6.5rem;
}

.tez-hero-copy {
    max-width: 780px;
}

.tez-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #f4e8d0;
    border: 1px solid rgba(201, 168, 106, 0.45);
    background: rgba(6, 30, 27, 0.56);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.tez-hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.35rem);
    line-height: 1.16;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0 0 1.4rem;
    font-weight: 800;
    max-width: 820px;
}

.tez-hero h1 span {
    color: #e4c88f;
}

.tez-hero p {
    font-size: 1.1rem;
    line-height: 1.82;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    margin-bottom: 2.1rem;
}

.tez-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tez-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border-radius: 12px;
    padding: 0.95rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.tez-btn-primary {
    background: #ffffff;
    color: var(--ayu-wine) !important;
    border: 1px solid #ffffff;
}

.tez-btn-primary:hover {
    background: #e4c88f;
    border-color: #e4c88f;
    color: #061e1b !important;
    transform: translateY(-2px);
}

.tez-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

.tez-btn-ghost:hover {
    background: #ffffff;
    color: var(--ayu-wine) !important;
    transform: translateY(-2px);
}

.tez-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(6, 30, 27, 0.48);
    backdrop-filter: blur(12px);
}

.tez-hero-status {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tez-hero-status i {
    font-size: 0.55rem;
    color: #7fd29b;
    margin-right: 0.4rem;
}

/* SECTIONS */
.tez-section {
    padding: 92px 0;
    background: transparent;
}

.tez-services,
.tez-most-read {
    background: transparent;
}

.tez-press {
    background: transparent;
}

.tez-bulletins {
    background: transparent;
}

.tez-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2.2rem;
    margin-bottom: 3rem;
}

.tez-section-head-center {
    display: block;
    text-align: center;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.tez-section-head h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    line-height: 1.15;
    color: var(--ayu-ink);
    margin: 0.4rem 0 0;
    letter-spacing: -0.025em;
}

.tez-section-head p {
    max-width: 540px;
    color: var(--ayu-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.tez-section-head-center p {
    margin: 0.9rem auto 0;
}

.tez-eyebrow {
    display: inline-block;
    color: var(--ayu-burgundy);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.tez-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--border-color);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    color: var(--ayu-ink) !important;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.tez-outline-btn:hover {
    border-color: var(--ayu-wine);
    color: var(--ayu-wine) !important;
    background: #ffffff;
    transform: translateY(-2px);
}

/* SERVICES */
.tez-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.tez-service-card {
    position: relative;
    min-height: 245px;
    padding: 1.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
    color: var(--ayu-ink) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: var(--transition);
}

.tez-service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, var(--ayu-wine), var(--ayu-gold));
    transition: height 0.3s var(--ease-standard);
}

.tez-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elev);
    border-color: var(--gold-border);
    z-index: 2;
}

.tez-service-card:hover::before {
    height: 100%;
}

.tez-service-number {
    position: absolute;
    top: 1.3rem;
    right: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted-custom);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tez-service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--ayu-wine);
    border-radius: 14px;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.tez-service-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.45rem;
    color: var(--ayu-ink);
}

.tez-service-card p {
    font-size: 0.94rem;
    color: var(--ayu-muted);
    margin: 0;
    line-height: 1.65;
}

.tez-service-arrow {
    position: absolute;
    right: 1.4rem;
    bottom: 1.5rem;
    color: var(--text-muted-custom);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tez-service-card:hover .tez-service-arrow {
    color: var(--ayu-wine);
    transform: translateX(4px);
}

/* NEWS */
.tez-news-lead {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 450px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--ayu-shadow);
    margin-bottom: 1.85rem;
    overflow: hidden;
}

.tez-lead-image {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: block;
}

.tez-lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-standard) !important;
}

.tez-lead-image:hover img {
    transform: scale(1.05) !important;
}

.tez-image-label {
    position: absolute;
    left: 1.35rem;
    top: 1.35rem;
    background: var(--ayu-wine);
    color: #ffffff;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tez-lead-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tez-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted-custom);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.tez-meta i {
    color: var(--ayu-burgundy);
}

.tez-lead-content h3 {
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0.25rem 0 1.1rem;
    color: var(--ayu-ink);
}

.tez-lead-content p {
    color: var(--ayu-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.65rem;
}

.tez-inline-link,
.tez-card-link {
    color: var(--ayu-wine) !important;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tez-inline-link i,
.tez-card-link i {
    margin-left: 0.45rem;
    transition: var(--transition);
}

.tez-inline-link:hover i,
.tez-card-link:hover i {
    transform: translateX(4px);
}

.tez-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.tez-news-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
}

.tez-news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ayu-shadow);
    border-color: var(--gold-border);
}

.tez-news-card-image {
    height: 220px;
    display: block;
    overflow: hidden;
}

.tez-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-standard) !important;
}

.tez-news-card:hover .tez-news-card-image img {
    transform: scale(1.06) !important;
}

.tez-news-card-body {
    padding: 1.5rem;
}

.tez-news-card-body h3 {
    font-size: 1.1rem;
    line-height: 1.45;
    margin: 0.35rem 0 1.1rem;
}

.tez-news-card-body h3 a {
    color: var(--ayu-ink) !important;
}

.tez-news-card-body h3 a:hover {
    color: var(--ayu-burgundy) !important;
}

.tez-empty-state {
    border: 1.5px dashed var(--border-color);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: var(--ayu-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

/* PRESS */
.tez-press-carousel {
    height: 610px;
    background: #061e1b;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--ayu-shadow-lg);
}

.tez-press-carousel .carousel-inner,
.tez-press-carousel .carousel-item {
    height: 100%;
}

.tez-press-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 7s var(--ease-standard) !important;
}

.tez-press-carousel .active .tez-press-image {
    transform: scale(1.045) !important;
}

.tez-press-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 30, 27, 0.92) 0%, rgba(14, 49, 45, 0.65) 55%, rgba(6, 30, 27, 0.14) 100%);
}

.tez-press-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(740px, 76%);
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.tez-meta-light {
    color: rgba(255, 255, 255, 0.8);
}

.tez-meta-light i {
    color: #e4c88f;
}

.tez-press-content h3 {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.1;
    color: #ffffff;
    margin: 0.4rem 0 1.1rem;
    letter-spacing: -0.025em;
}

.tez-press-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 1.65rem;
}

.tez-carousel-control {
    width: 52px;
    height: 52px;
    top: auto;
    bottom: 2rem;
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    margin: 0 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.tez-carousel-control:hover {
    background: #ffffff;
    color: var(--ayu-wine);
}

.tez-press-carousel .carousel-control-prev { left: auto; right: 92px; }
.tez-press-carousel .carousel-control-next { right: 26px; }

/* MOST READ */
.tez-most-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tez-most-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.15rem;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    color: var(--ayu-ink) !important;
    min-height: 145px;
    transition: var(--transition);
}

.tez-most-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    border-color: var(--gold-border);
    z-index: 2;
    box-shadow: var(--ayu-shadow);
}

.tez-most-thumb {
    width: 98px;
    height: 98px;
    flex: 0 0 98px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8ecef;
}

.tez-most-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tez-most-copy {
    min-width: 0;
    padding-right: 1.75rem;
}

.tez-most-copy h3 {
    font-size: 1.02rem;
    line-height: 1.45;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tez-most-copy span {
    font-size: 0.8rem;
    color: var(--text-muted-custom);
    display: block;
    margin-bottom: 0.25rem;
}

.tez-most-copy strong {
    font-size: 0.8rem;
    color: var(--ayu-wine);
}

.tez-most-arrow {
    position: absolute;
    right: 1.2rem;
    color: var(--text-muted-custom);
    font-size: 0.88rem;
}

.tez-most-card:hover .tez-most-arrow {
    color: var(--ayu-wine);
    transform: translateX(3px);
}

/* BULLETINS */
.tez-bulletin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.tez-bulletin-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    color: var(--ayu-ink) !important;
    transition: var(--transition);
    overflow: hidden;
}

.tez-bulletin-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ayu-shadow);
    border-color: var(--gold-border);
}

.tez-bulletin-media {
    height: 225px;
    background: #e8eaee;
    position: relative;
    overflow: hidden;
}

.tez-bulletin-media > img,
.tez-bulletin-media > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tez-file-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(8px);
    color: var(--ayu-wine);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.tez-file-preview {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--text-muted-custom);
    background: linear-gradient(135deg, rgba(244, 245, 247, 0.9), rgba(229, 232, 236, 0.9));
}

.tez-file-preview i {
    font-size: 3.1rem;
}

.tez-file-pdf {
    color: #b42318;
}

.tez-file-preview span {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tez-bulletin-body {
    padding: 1.5rem;
}

.tez-doc-type {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ayu-burgundy);
}

.tez-bulletin-body h3 {
    font-size: 1.1rem;
    line-height: 1.48;
    margin: 0.65rem 0 1.1rem;
    min-height: 64px;
}

.tez-validity {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted-custom);
    margin-bottom: 1.15rem;
}

.tez-document-link {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ayu-wine);
}

/* FOOTER */
.tez-footer {
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.96), rgba(14, 49, 45, 0.92) 62%, rgba(23, 74, 68, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.22), transparent 36%);
    color: #ffffff;
    padding: 4.5rem 0 1.85rem;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent-gold);
}

.tez-footer::before {
    content: '';
    position: absolute;
    right: -150px;
    top: -150px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.2);
}

.tez-footer-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 0.75fr;
    gap: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tez-footer-brand img {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.08) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.tez-footer-brand p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    max-width: 380px;
}

.tez-footer-title {
    display: block;
    color: #e4c88f;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.15rem;
}

.tez-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.1rem;
}

.tez-footer-links a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86) !important;
}

.tez-footer-links a:hover {
    color: #e4c88f !important;
}

.tez-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tez-contact-list a {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88) !important;
}

.tez-contact-list a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-border);
}

.tez-contact-list i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 106, 0.25);
    color: #e4c88f;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tez-contact-list b,
.tez-contact-list small {
    display: block;
}

.tez-contact-list b {
    font-size: 0.92rem;
    color: #ffffff;
}

.tez-contact-list small {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.12rem;
}

.tez-footer-qr {
    text-align: center;
}

.tez-qr-box {
    display: inline-flex;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
}

.tez-qr-box img {
    width: 128px;
    height: 128px;
}

.tez-footer-qr small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    margin-top: 0.65rem;
}

.tez-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.35rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
    .tez-service-grid { grid-template-columns: repeat(2, 1fr); }
    .tez-brand small { display: none; }
    .tez-main-nav .nav-link { font-size: 0.85rem; padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .tez-footer-grid { grid-template-columns: 1fr 1fr; }
    .tez-footer-qr { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 991.98px) {
    .tez-topline .container { padding-top: 0.4rem; padding-bottom: 0.4rem; }
    .tez-topline .container > span { display: none; }
    .tez-topline .container { justify-content: flex-end !important; }
    .tez-main-nav { padding: 0.6rem 0 !important; }
    .tez-brand img { height: 52px !important; }
    .tez-brand strong { font-size: 1rem; }
    .tez-main-nav .navbar-collapse { padding: 1rem 0; }
    .tez-main-nav .nav-link { background: var(--primary-soft); margin: 0.25rem 0; }
    .tez-hero { min-height: 620px; }
    .tez-hero-content { padding: 6rem 0 5.5rem; }
    .tez-news-lead { grid-template-columns: 1fr; }
    .tez-lead-image { min-height: 350px; }
    .tez-news-grid { grid-template-columns: repeat(2, 1fr); }
    .tez-press-carousel { height: 540px; }
    .tez-press-content { width: 88%; padding: 3rem; }
    .tez-bulletin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .tez-section { padding: 64px 0; }
    .tez-section-head { display: block; margin-bottom: 2.2rem; }
    .tez-section-head > p { margin-top: 0.8rem; }
    .tez-outline-btn { margin-top: 1.1rem; }
    .tez-service-grid { grid-template-columns: 1fr; }
    .tez-service-card { min-height: 195px; }
    .tez-hero h1 { font-size: 2.25rem; }
    .tez-hero p { font-size: 1rem; }
    .tez-hero-status { font-size: 0.75rem; }
    .tez-hero-status span:last-child { display: none; }
    .tez-news-grid { grid-template-columns: 1fr; }
    .tez-lead-content { padding: 2rem; }
    .tez-press-carousel { height: 520px; }
    .tez-press-content { width: 100%; padding: 2rem 2rem 5.5rem; }
    .tez-press-content h3 { font-size: 2rem; }
    .tez-most-grid { grid-template-columns: 1fr; }
    .tez-bulletin-grid { grid-template-columns: 1fr; }
    .tez-footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .tez-footer-qr { text-align: left; }
    .tez-footer-bottom { display: block; line-height: 1.85; }
    .tez-footer-bottom span { display: block; }
}

@media (max-width: 480px) {
    .tez-brand span { padding-left: 0.65rem; }
    .tez-brand strong { font-size: 0.92rem; }
    .tez-brand small { display: none; }
    .tez-top-actions { gap: 0; }
    .tez-header-tool { font-size: 0; }
    .tez-header-tool i { font-size: 0.95rem; }
    .tez-hero { min-height: 590px; }
    .tez-hero-content { padding-top: 5rem; }
    .tez-hero-actions { flex-direction: column; align-items: stretch; }
    .tez-btn { width: 100%; }
    .tez-lead-image { min-height: 270px; }
    .tez-news-card-image { height: 195px; }
    .tez-carousel-control { bottom: 1rem; }
    .tez-press-carousel .carousel-control-prev { right: 74px; }
    .tez-press-carousel .carousel-control-next { right: 14px; }
    .tez-bulletin-media { height: 195px; }
}

@media (prefers-reduced-motion: reduce) {
    .tez-home-v2 *, .tez-home-v2 *::before, .tez-home-v2 *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   PORTADA DINÁMICA · IMAGEN / VIDEO
   ========================================================== */
.tez-hero-media { z-index: 0; }
.tez-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.75s var(--ease-standard), visibility 0.75s var(--ease-standard); overflow: hidden; }
.tez-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.tez-hero-media-element { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.tez-hero-slide video.tez-hero-media-element { background: #061e1b; }
.tez-hero-slide.is-active .tez-hero-media-element { animation: heroMediaReveal 0.9s var(--ease-standard) both; }

@keyframes heroMediaReveal {
    from { transform: scale(1.03); }
    to { transform: scale(1); }
}

.tez-hero-shade { z-index: 3; }
.tez-hero-content { z-index: 4; }
.tez-hero-bottom { z-index: 5; }

.tez-hero-progress {
    position: absolute;
    z-index: 6;
    left: 0;
    bottom: 50px;
    height: 3px;
    width: 0;
    background: #e4c88f;
    box-shadow: 0 0 16px rgba(228, 200, 143, 0.45);
}

.tez-hero-counter {
    position: absolute;
    right: 28px;
    bottom: 66px;
    z-index: 6;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
}

.hero-copy-change { animation: heroCopyChange 0.55s var(--ease-standard) both; }

@keyframes heroCopyChange {
    from { opacity: 0.25; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .tez-hero-progress { bottom: 48px; }
    .tez-hero-counter { right: 16px; bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .tez-hero-slide, .tez-hero-media-element, .hero-copy-change {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================
   PÁGINA DE DETALLE DE NOTICIA (LAYOUT V2)
   ========================================================== */
.tez-breadcrumb-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.86rem;
    padding: 0.95rem 0;
}

.tez-breadcrumb-bar .breadcrumb-item a {
    color: var(--ayu-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tez-breadcrumb-bar .breadcrumb-item a:hover {
    color: var(--ayu-wine);
}

.tez-breadcrumb-bar .breadcrumb-item.active {
    color: var(--ayu-wine);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tez-article-title {
    font-size: clamp(1.9rem, 3.5vw, 2.85rem);
    line-height: 1.18;
    color: var(--ayu-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
    min-height: 1.2em;
}

.tez-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ayu-wine), var(--ayu-burgundy));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.tez-article-body {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.85;
}

.tez-article-lead {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--ayu-ink);
    border-left: 4px solid var(--ayu-gold);
    padding-left: 1.35rem;
    margin-bottom: 1.85rem;
    line-height: 1.65;
}

.tez-article-body p {
    margin-bottom: 1.45rem;
    color: var(--text-body);
}

.tez-share-box {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.35rem 1.6rem;
}

.tez-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--ayu-muted);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.tez-share-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: transparent;
}

.tez-share-btn.facebook:hover { background-color: #3b5998; box-shadow: 0 8px 18px rgba(59, 89, 152, 0.25); }
.tez-share-btn.twitter:hover { background-color: #1da1f2; box-shadow: 0 8px 18px rgba(29, 161, 242, 0.25); }
.tez-share-btn.whatsapp:hover { background-color: #25d366; box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25); }

.tez-sidebar {
    padding-left: 1.5rem;
}

.tez-widget {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.9rem;
    box-shadow: var(--shadow-soft);
}

.tez-widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ayu-ink);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.tez-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--ayu-wine), var(--ayu-gold));
    border-radius: 2px;
}

.tez-mini-news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.tez-mini-news-item a:hover {
    color: var(--ayu-wine) !important;
}

.tez-mini-news-item img {
    transition: transform 0.5s var(--ease-standard);
}

.tez-mini-news-item:hover img {
    transform: scale(1.08);
}

.tez-gallery-item {
    position: relative;
    display: block;
    background: #061e1b;
    border-radius: 16px;
    overflow: hidden;
}

.tez-gallery-item img {
    transition: transform 0.65s var(--ease-standard), opacity 0.4s var(--ease-standard);
}

.tez-gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.72;
}

.tez-gallery-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 0.3s var(--ease-standard);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tez-gallery-item:hover .tez-gallery-overlay {
    opacity: 1;
}

.typing-cursor::after {
    content: '|';
    animation: blinkCursor 1s step-start infinite;
    color: var(--ayu-wine);
    margin-left: 4px;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

@media (max-width: 991.98px) {
    .tez-sidebar { padding-left: 0; margin-top: 3rem; }
    .tez-article-title { font-size: 2.15rem; }
    .tez-share-box { flex-direction: column; text-align: center; gap: 1.35rem; }
}

/* ==========================================================
   ESTILOS DE FORMULARIO ACCESIBLE V2 (CONTACTO Y BUZÓN)
   ========================================================== */
.bg-paper { background-color: transparent; }
.text-ink { color: var(--text-heading); }
.text-wine { color: var(--primary-color); }

.tez-modern-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.tez-form-label-lg {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.tez-input-lg,
.tez-textarea-lg {
    display: block;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font-size: 1.05rem;
    color: var(--text-heading);
    transition: all var(--transition);
}

.tez-input-lg {
    padding: 1.05rem 1.1rem 1.05rem 3.4rem;
    height: auto;
}

.tez-textarea-lg {
    padding: 1.1rem 1.4rem;
    resize: vertical;
    min-height: 155px;
}

.tez-input-lg:focus,
.tez-textarea-lg:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 49, 45, 0.14);
    outline: none;
}

.tez-input-lg::placeholder,
.tez-textarea-lg::placeholder {
    color: #7c8b9e;
    opacity: 1;
}

.tez-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff !important;
    border: 1px solid rgba(201, 168, 106, 0.35);
    border-radius: 14px;
    padding: 1.1rem 1.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all var(--transition);
    cursor: pointer;
}

.tez-btn-lg:hover,
.tez-btn-lg:focus {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 49, 45, 0.28);
    outline: none;
}

.tez-btn-lg:focus {
    box-shadow: 0 0 0 4px rgba(14, 49, 45, 0.32);
}

.tez-directory-card {
    background: var(--glass-bg-dark-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-elev);
}

.directory-header {
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.96), #0e312d 62%, rgba(23, 74, 68, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.24), transparent 36%);
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.directory-body {
    padding: 1.5rem;
}

.directory-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem;
    border-radius: 14px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.directory-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 168, 106, 0.25);
    transform: translateX(4px);
}

.directory-item .icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(201, 168, 106, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #c9a86a;
    flex-shrink: 0;
}

.directory-item .details {
    display: flex;
    flex-direction: column;
}

.directory-item .title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.directory-item .number {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition);
}

.directory-item .number:hover {
    color: #c9a86a;
}

.directory-item .number:focus {
    outline: 2px solid #c9a86a;
    outline-offset: 4px;
    border-radius: 4px;
}

.tez-info-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

@media (max-width: 767.98px) {
    .tez-modern-card { padding: 1.5rem !important; }
    .tez-input-lg, .tez-textarea-lg, .tez-btn-lg { font-size: 1rem; }
}

/* ---------- Encabezado Compacto ---------- */
.tez-compact-header {
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.96), #0e312d 62%, rgba(23, 74, 68, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.24), transparent 36%);
    padding: 5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #c9a86a;
    box-shadow: 0 8px 24px rgba(6, 30, 27, 0.14);
    min-height: 10vh;
}

.tez-header-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 168, 106, 0.12);
    filter: blur(28px);
    animation: floatShape 10s infinite alternate ease-in-out;
    pointer-events: none;
}

.shape-1 { width: 260px; height: 260px; top: -80px; right: 10%; }
.shape-2 { width: 160px; height: 160px; bottom: -50px; left: 15%; animation-duration: 13s; animation-direction: alternate-reverse; }

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 24px) scale(1.1); }
}

.tez-breadcrumb-compact { padding: 0; }

.tez-breadcrumb-compact .breadcrumb-item {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.tez-breadcrumb-compact .breadcrumb-item a {
    color: #e4c88f;
    text-decoration: none;
    transition: color 0.25s;
}

.tez-breadcrumb-compact .breadcrumb-item a:hover { color: #ffffff; }
.tez-breadcrumb-compact .breadcrumb-item.active { color: rgba(255, 255, 255, 0.72); }

.tez-breadcrumb-compact .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
    line-height: 0.8;
}

.tez-header-icon {
    font-size: 4.5rem;
    color: rgba(201, 168, 106, 0.22);
    transform: rotate(-8deg);
    animation: pulseIcon 4.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulseIcon {
    0% { transform: scale(1) rotate(-8deg); }
    50% { transform: scale(1.06) rotate(-4deg); color: rgba(228, 200, 143, 0.34); }
    100% { transform: scale(1) rotate(-8deg); }
}

@media (max-width: 767.98px) {
    .tez-compact-header { padding: 1.9rem 0; text-align: center !important; }
    .tez-breadcrumb-compact { justify-content: center; margin-bottom: 0.6rem !important; }
    .tez-compact-header h1 { font-size: 1.85rem !important; justify-content: center; }
    .tez-compact-header p { margin: 0 auto; font-size: 0.98rem; }
}

/* ==========================================================
   TARJETAS DE DIRECTORIO INSTITUCIONAL V3 (ESTILO GLASS)
   ========================================================== */
.tez-dir-card-v3 {
    background:
        linear-gradient(135deg, rgba(6, 30, 27, 0.95), #0e312d 62%, rgba(23, 74, 68, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(201, 168, 106, 0.24), transparent 36%);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    border-bottom: 4px solid #c9a86a;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-soft);
}

.tez-dir-card-v3:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(14, 49, 45, 0.28) !important;
}

.tez-card-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 168, 106, 0.10);
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
}

.shape-a { width: 120px; height: 120px; top: -30px; right: -30px; }
.shape-b { width: 100px; height: 100px; bottom: -20px; left: -20px; }

.tez-dir-card-v3:hover .shape-a {
    transform: scale(1.15);
    transition: transform 0.5s var(--ease-standard);
}

.tez-dir-avatar-v3 {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid #c9a86a;
    background-color: rgba(255, 255, 255, 0.12);
    padding: 3px;
    transition: transform 0.4s var(--ease-standard);
}

.tez-dir-avatar-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tez-dir-card-v3:hover .tez-dir-avatar-v3 {
    transform: scale(1.05);
    border-color: #ffffff;
}

.tez-dir-link-v3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tez-dir-link-v3 i {
    color: #c9a86a;
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.tez-dir-link-v3:hover {
    opacity: 0.9;
    transform: translateX(3px);
}

/* ==========================================================
   BUZÓN DE SUGERENCIAS Y MENÚ DE SELECCIÓN (V2)
   ========================================================== */
.bg-wine { background-color: var(--primary-color) !important; }
.bg-wine-soft { background-color: var(--primary-soft) !important; }
.text-wine { color: var(--primary-color) !important; }
.bg-gold-soft { background-color: rgba(201, 168, 106, 0.14) !important; }
.text-gold { color: #c9a86a !important; }

.tez-form-section {
    display: none;
    animation: slideInFade 0.4s var(--ease-standard);
}

.tez-form-section.active {
    display: block;
}

@keyframes slideInFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.tez-selection-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1.5px solid var(--glass-border);
    border-radius: 18px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tez-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elev);
    border-color: var(--gold-border);
}

.tez-selection-card .selection-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.35s var(--ease-standard);
}

.tez-selection-card:hover .selection-icon {
    transform: scale(1.07);
}

/* ==========================================================
   REPORTE DE SERVICIOS Y TIMELINE (LAYOUT V2)
   ========================================================== */
.view-section {
    display: none;
    animation-duration: 0.4s;
}

.view-section.active {
    display: block;
}

.tez-option-box {
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 1.2rem;
    transition: all var(--transition);
}

.tez-option-box:focus-within,
.tez-option-box:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(14, 49, 45, 0.08);
}

.tez-option-box.is-invalid-box {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.tez-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 0.85rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.tez-option-list.list-large {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.tez-select-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-body);
    border-radius: 14px;
    padding: 0.85rem 1.05rem;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all var(--transition);
    cursor: pointer;
}

.tez-select-btn i {
    color: var(--primary-color);
    background: var(--primary-soft);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tez-select-btn small {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted-custom);
    margin-top: 2px;
}

.tez-select-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.tez-select-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 49, 45, 0.22);
}

.tez-select-btn.active i {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.tez-select-btn.active small {
    color: rgba(255, 255, 255, 0.86);
}

.selected-value-label {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: var(--primary-soft);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--primary-color);
}

.selected-value-label.active {
    display: block;
}

.tez-timeline-container {
    position: relative;
    margin: 2.5rem 0;
}

.tez-timeline-line {
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 4px;
}

.tez-timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.tez-step-item {
    text-align: center;
    width: 33.33%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tez-step-item .step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tez-step-item.active .step-circle {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(14, 49, 45, 0.3);
}

.tez-timeline-line.progress-1 {
    background: linear-gradient(to right, var(--primary-color) 50%, #e2e8f0 50%);
}

.tez-timeline-line.progress-2 {
    background: #198754;
}

.tez-step-item.active:last-child .step-circle {
    background: #198754;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

@media (max-width: 575.98px) {
    .tez-option-list { grid-template-columns: 1fr; }
    .tez-timeline-line { display: none; }
    .tez-step-item .step-circle { width: 46px; height: 46px; font-size: 1rem; }
}

/* Estados Activos y Pills */
.sidebar-item.active,
.tez-sidebar .list-group-item.active,
.area-item.active {
    background-color: var(--ayu-wine, #0e312d) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--ayu-gold, #e4c88f) !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(14, 49, 45, 0.22) !important;
}

.sidebar-item.active .badge,
.area-item.active .area-count {
    background-color: #ffffff !important;
    color: var(--ayu-wine, #0e312d) !important;
}

.sidebar-item:hover,
.tez-sidebar .list-group-item:hover,
.area-item:hover {
    background-color: var(--primary-soft) !important;
    color: var(--ayu-wine, #0e312d) !important;
}

.nav-link { color: var(--text-body); }

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.tez-pills .nav-link.active {
    background-color: #0e312d !important;
    color: #ffffff !important;
    border-color: #0e312d !important;
    box-shadow: 0 6px 16px rgba(14, 49, 45, 0.25);
}

.active:not(.navbar-toggler) {
    background-color: var(--ayu-wine, #0e312d) !important;
    color:#fff;
}

.btn-group .btn.active,
.view-toggler .btn.active {
    background-color: #0e312d !important;
    color: #ffffff !important;
    border-color: #0e312d !important;
}