/*
Theme Name: Gobierno Publico
Theme URI: Daniel Dalzotto
Author: Daniel Dalzotto
Author URI: Daniel Dalzotto
Description: Tema municipal con estructura completa para la gestión de gobierno local. Incluye áreas de Rentas (impuestos, tasas y vencimientos), Compras y Licitaciones (proveedores y contrataciones), Tesorería y Contaduría (presupuesto, balances e informes financieros), Catastro (planos y parcelas), Tránsito y Licencias de conducir, Producción (emprendedores y desarrollo económico), Concejo Deliberante (sesiones, comisiones y ordenanzas), Boletines Oficiales, Centro de Descargas, Noticias institucionales y Portal de Transparencia. Diseño responsivo y accesible.
Version: 1.0
License: Derechos reservados
Text Domain: Municipio
*/

/* ======================================================
   ROOT VARIABLES - PALETA DE COLORES
   ====================================================== */
:root {
    /* Colores principales */
    --primary: 160, 70%, 35%;      /* Verde esmeralda #1a8a6a */
    --primary-dark: 160, 75%, 25%; /* Verde oscuro #0f6b52 */
    --primary-light: 160, 60%, 55%; /* Verde claro #4ab892 */
    --primary-foreground: 0, 0%, 100%;
    
    /* Colores secundarios (Rosado/Terracota) */
    --secondary: 350, 60%, 55%;     /* Rosado #d46a7a */
    --secondary-light: 350, 50%, 70%; /* Rosado claro #e8a0ab */
    --secondary-foreground: 215, 25%, 20%;
    
    /* Acentos (Dorado/Amarillo) */
    --accent: 45, 85%, 55%;         /* Dorado #f0b830 */
    --accent-light: 45, 80%, 70%;   /* Dorado claro #f5d480 */
    --accent-foreground: 215, 75%, 25%;
    
    /* Colores base */
    --background: 160, 20%, 98%;
    --foreground: 215, 25%, 15%;
    --border: 160, 15%, 88%;
    --input: 160, 15%, 88%;
    --ring: 160, 70%, 35%;
    
    /* Colores de estado */
    --muted: 160, 10%, 95%;
    --muted-foreground: 215, 15%, 45%;
    --destructive: 0, 72%, 51%;
    --destructive-foreground: 0, 0%, 100%;
    
    /* Colores de éxito */
    --success: 142, 60%, 40%;
    --success-light: 142, 60%, 90%;
    --warning: 38, 90%, 45%;
    --warning-light: 38, 90%, 90%;
    --info: 200, 70%, 50%;
    --info-light: 200, 70%, 90%;
    
    /* Variables de diseño */
    --radius: 0.375rem;
    --app-font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ======================================================
   RESET & BASE
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    font-family: var(--app-font-sans);
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: hsl(var(--primary));
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

/* ======================================================
   POPUP DE BIENVENIDA - DISEÑO LLAMATIVO
   ====================================================== */
.popup-bienvenida {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--app-font-sans);
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 28, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: overlayFadeIn 0.6s ease forwards;
}

.popup-container {
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #f5faf8 100%);
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    padding: 50px 44px 44px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: popupSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.popup-container::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 138, 106, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.popup-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 106, 122, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.popup-container .popup-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(26, 138, 106, 0) 0%,
        #1a8a6a 20%,
        #d46a7a 50%,
        #1a8a6a 80%,
        rgba(26, 138, 106, 0) 100%
    );
    background-size: 200% 100%;
    animation: lineShimmer 3s ease-in-out infinite;
}

@keyframes lineShimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

.popup-cerrar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: hsl(215, 25%, 50%);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.popup-cerrar:hover {
    background: hsl(350, 60%, 55%);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(212, 106, 122, 0.4);
}

.popup-cerrar:active {
    transform: rotate(90deg) scale(0.95);
}

.popup-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.popup-logo {
    display: inline-block;
    margin-bottom: 16px;
    animation: logoFloat 3s ease-in-out infinite;
}

.popup-logo img {
    max-height: 90px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(26, 138, 106, 0.15));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.popup-badge {
    display: inline-block;
    padding: 4px 20px;
    background: linear-gradient(135deg, rgba(26, 138, 106, 0.08), rgba(26, 138, 106, 0.03));
    border: 1px solid rgba(26, 138, 106, 0.1);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--primary));
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.popup-titulo {
    font-size: 14px;
    font-weight: 500;
    color: hsl(215, 25%, 40%);
    margin: 0 0 2px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.popup-municipio {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    background: linear-gradient(135deg, #0f6b52 0%, #1a8a6a 40%, #d46a7a 70%, #f0b830 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.popup-municipio::after {
    content: 'MUNICIPALIDAD DE LOS CHARRUAS';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 107, 82, 0.1), rgba(212, 106, 122, 0.1));
    filter: blur(20px);
    -webkit-text-fill-color: transparent;
    z-index: -1;
}

.popup-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 10px auto 18px;
    width: 200px;
}

.popup-divider::before,
.popup-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)));
}

.popup-divider::after {
    background: linear-gradient(90deg, hsl(var(--primary)), transparent);
}

.popup-divider .divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--primary));
    flex-shrink: 0;
    animation: dotPulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(26, 138, 106, 0.2);
}

.popup-divider .divider-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.popup-divider .divider-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.6); opacity: 1; }
}

.popup-lema {
    font-size: 18px;
    color: hsl(215, 25%, 30%);
    margin: 2px 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.popup-lema:last-of-type {
    font-weight: 600;
    background: linear-gradient(135deg, #1a8a6a, #d46a7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    margin-top: 4px;
}

.popup-close-area {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: pointer;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ======================================================
   HEADER
   ====================================================== */
.header-container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 16px;
}

.header-top {
    background: hsl(215, 25%, 12%);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    width: 100%;
    position: relative;
    z-index: 60;
}

.header-top .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.header-contact {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    font-size: 13px;
}

.header-contact i {
    font-size: 14px;
    color: hsl(350, 60%, 55%);
}

.header-admin a {
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.header-admin a:hover {
    opacity: 1;
}

.header-admin i {
    color: hsl(200, 70%, 50%);
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid hsl(160, 15%, 88%);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.custom-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
}

.site-title-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 2px;
    height: 35px;
    background: hsl(160, 15%, 88%);
    border-radius: 2px;
}

.site-title-top {
    font-size: 10px;
    font-weight: 600;
    color: hsl(215, 15%, 55%);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title-main {
    font-size: 22px;
    font-weight: 700;
    color: hsl(215, 25%, 15%);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* MENU */
.primary-menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: hsl(215, 25%, 15%);
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.nav-menu > li > a:hover {
    background: hsl(160, 20%, 94%);
    color: hsl(var(--primary));
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    font-weight: 600;
}

.nav-menu > li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 6px 0;
    list-style: none;
    border: 1px solid hsl(160, 15%, 88%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    z-index: 999;
    padding-top: 8px;
    margin-top: -4px;
}

.nav-menu > li:hover > ul.sub-menu,
.nav-menu > li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu ul.sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    color: hsl(215, 25%, 15%);
    transition: all 0.15s ease;
    line-height: 1.5;
}

.nav-menu ul.sub-menu li a:hover {
    background: hsl(160, 20%, 94%);
    color: hsl(var(--primary));
}

.nav-menu ul.sub-menu li.current-menu-item a {
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    font-weight: 500;
}

.nav-menu ul.sub-menu ul.sub-menu {
    top: -6px;
    left: calc(100% + 4px);
    padding-top: 6px;
    margin-top: 0;
}

.nav-menu ul.sub-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header-search .search-form:focus-within {
    border-color: hsl(var(--primary));
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 138, 106, 0.15);
    transform: translateY(-1px);
}

.header-search .search-form input[type="search"] {
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: hsl(var(--foreground));
    width: 200px;
    min-width: 140px;
    font-weight: 400;
}

.header-search .search-form input[type="search"]::placeholder {
    color: #9aa3b5;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.header-search .search-form button {
    padding: 10px 18px;
    background: transparent;
    color: hsl(var(--primary));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search .search-form button:hover {
    color: hsl(160, 75%, 25%);
    transform: scale(1.05);
}

.header-search .search-form button i {
    font-size: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: hsl(160, 20%, 94%);
}

.toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: hsl(215, 25%, 15%);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

/* ======================================================
   LAYOUT
   ====================================================== */
.content-area {
    display: flex;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    gap: 30px;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.content-area-full {
    max-width: 1280px;
    margin: 0 auto;
}

/* ======================================================
   PAGE HEADER
   ====================================================== */
.page-header {
    position: relative;
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 42px 10px 42px;
    background: linear-gradient(135deg, #0f6b52 0%, #1a8a6a 50%, #d46a7a 100%);
    overflow: hidden;
    isolation: isolate;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-header .header-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        hsl(160, 70%, 35%) 0%, 
        hsl(350, 60%, 55%) 30%,
        hsl(45, 85%, 55%) 70%,
        hsl(160, 70%, 35%) 100%
    );
    z-index: 1;
}

.page-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.page-header .header-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05) rotate(-5deg);
}

.page-header h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, hsl(45, 85%, 55%), hsl(350, 60%, 55%));
    border-radius: 2px;
    margin: 16px auto 0;
}

.page-header p {
    font-size: clamp(16px, 1.4vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 8px auto 0;
    line-height: 1.6;
}

/* ======================================================
   SECTION TITLE (Global)
   ====================================================== */
.section-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 32px;
    margin-top: 32px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(350, 60%, 55%));
    border-radius: 4px;
}

.section-title.text-center {
    display: block;
    text-align: center;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ======================================================
   ACTION BAR (Global)
   ====================================================== */
.action-bar {
    background: #ffffff;
    padding: 0;
    position: relative;
    z-index: 5;
    overflow-x: auto;
}

.action-bar .container {
    padding: 12px 20px;
    max-width: 100%;
}

.action-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: hsl(var(--foreground));
    transition: all 0.3s ease;
    gap: 4px;
    text-align: center;
    min-height: 80px;
    min-width: 130px;
    max-width: 130px;
    background: #ffffff;
    border: 1px solid hsl(160, 15%, 88%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}

.action-btn i {
    font-size: 22px;
    color: hsl(var(--primary));
    transition: transform 0.3s ease;
}

.action-btn span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.action-btn:hover {
    background: hsl(160, 20%, 94%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* ======================================================
   FULLSCREEN SLIDER
   ====================================================== */
.fullscreen-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 500px;
    overflow: hidden;
    background: hsl(215, 25%, 15%);
}

.fullscreen-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fullscreen-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.1);
}

.fullscreen-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.fullscreen-slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    color: #ffffff;
    text-align: center;
}

.slide-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slide-meta .post-date {
    opacity: 0.8;
}

.slide-meta .post-category {
    background: hsl(var(--primary));
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.slide-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.slide-title a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.slide-title a:hover {
    color: hsl(45, 85%, 55%);
}

.slide-excerpt {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-slider {
    display: inline-block;
    padding: 14px 36px;
    background: hsl(var(--primary));
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

.btn-slider:hover {
    background: hsl(160, 75%, 25%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.no-slides-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

/* ======================================================
   NOTICIAS - Sección principal y página
   ====================================================== */
.noticias-section {
    padding: 10px 0;
    background: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 6px;
}

.section-link-all {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--primary));
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-link-all:hover {
    color: hsl(160, 75%, 25%);
    transform: translateX(4px);
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.noticia-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
    transition: all 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.noticia-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.05);
}

.noticia-content {
    padding: 20px 24px 24px;
}

.noticia-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    flex-wrap: wrap;
}

.noticia-meta i {
    margin-right: 4px;
}

.noticia-category {
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.noticia-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.noticia-title a {
    color: hsl(var(--foreground));
    transition: color 0.3s ease;
}

.noticia-title a:hover {
    color: hsl(var(--primary));
}

.noticia-excerpt {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 16px;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--primary));
    transition: all 0.3s ease;
}

.noticia-link:hover {
    color: hsl(160, 75%, 25%);
    gap: 12px;
}

.noticias-filters {
    padding: 20px 0 30px;
    border-bottom: 1px solid hsl(160, 15%, 88%);
    margin-bottom: 30px;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-wrapper label {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid hsl(160, 15%, 88%);
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    border-color: hsl(var(--primary));
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 138, 106, 0.1);
}

.noticias-grid-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.noticia-card-all {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
    transition: all 0.3s ease;
}

.noticia-card-all:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.noticia-image-all {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.noticia-image-all img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.noticia-card-all:hover .noticia-image-all img {
    transform: scale(1.05);
}

.noticia-content-all {
    padding: 20px 24px 24px;
}

.noticia-meta-all {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    flex-wrap: wrap;
}

.noticia-category-all {
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.noticia-title-all {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.noticia-title-all a {
    color: hsl(var(--foreground));
    transition: color 0.3s ease;
}

.noticia-title-all a:hover {
    color: hsl(var(--primary));
}

.noticia-excerpt-all {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 16px;
}

.noticia-link-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--primary));
    transition: all 0.3s ease;
}

.noticia-link-all:hover {
    color: hsl(160, 75%, 25%);
    gap: 12px;
}

/* ======================================================
   NUESTRA HISTORIA
   ====================================================== */
.historia-section {
    padding: 40px 0;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(160, 75%, 25%));
}

.historia-line {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.historia-label {
    font-size: 18px;
    font-weight: 700;
    color: hsl(45, 85%, 55%);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    padding-right: 30px;
    position: relative;
}

.historia-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.historia-items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.historia-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 180px;
}

.historia-item i {
    font-size: 18px;
    color: hsl(45, 85%, 55%);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.historia-item:hover i {
    transform: scale(1.05);
}

.historia-item-text {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
}

.historia-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* ======================================================
   DOCUMENTS GRID (Global)
   ====================================================== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.document-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px 20px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid hsl(160, 15%, 88%);
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: hsl(160, 40%, 92%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.document-icon i {
    font-size: 24px;
    color: hsl(var(--primary));
}

.document-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: hsl(var(--foreground));
}

.document-card p {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
}

.document-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.doc-link:first-child {
    background: hsl(var(--primary));
    color: #ffffff;
}

.doc-link:first-child:hover {
    background: hsl(160, 75%, 25%);
}

.doc-link:last-child {
    background: hsl(160, 20%, 94%);
    color: hsl(var(--foreground));
}

.doc-link:last-child:hover {
    background: hsl(160, 40%, 92%);
}

/* ======================================================
   SERVICES CATEGORIES (Global)
   ====================================================== */
.services-categories {
    padding: 10px 0;
    background: hsl(160, 20%, 98%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 40px;
}

.category-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px 20px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid hsl(160, 15%, 88%);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: hsl(160, 40%, 85%);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-card h3 i {
    color: hsl(var(--primary));
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-card ul li {
    padding: 4px 0;
}

.category-card ul li a {
    color: hsl(215, 25%, 35%);
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
}

.category-card ul li a:hover {
    color: hsl(var(--primary));
    background: hsl(160, 40%, 95%);
    padding-left: 12px;
}

/* ======================================================
   RENTAS Y PÁGINAS INTERNAS (Global)
   ====================================================== */
.content-container {
    padding: 20px 0;
}

.rentas-section {
    margin-bottom: 48px;
}

.alert-rentas {
    background: hsl(160, 40%, 95%);
    border: 1px solid hsl(160, 40%, 85%);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-rentas .alert-icon {
    color: hsl(var(--primary));
    font-size: 20px;
    flex-shrink: 0;
}

.alert-rentas .alert-content {
    font-size: 14px;
    color: hsl(215, 25%, 30%);
}

.alert-rentas .alert-content strong {
    color: hsl(var(--primary));
}

.alert-rentas .alert-link {
    color: hsl(var(--primary));
    font-weight: 600;
    margin-left: 8px;
    text-decoration: none;
}

.alert-rentas .alert-link:hover {
    text-decoration: underline;
}

.rentas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rentas-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px 22px 22px;
    border: 1px solid hsl(160, 15%, 88%);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.rentas-card:hover {
    box-shadow: var(--shadow-md);
}

.rentas-card-title {
    font-size: 16px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rentas-card-title i {
    color: hsl(var(--primary));
    font-size: 18px;
    width: 20px;
}

.rentas-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.rentas-list li {
    padding: 5px 0;
    border-bottom: 1px solid hsl(160, 15%, 94%);
    font-size: 14px;
    color: hsl(215, 25%, 35%);
}

.rentas-list li:last-child {
    border-bottom: none;
}

.rentas-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rentas-list li a:hover {
    color: hsl(var(--primary));
}

.btn-rentas {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-rentas i {
    margin-right: 6px;
}

.btn-primary-rentas {
    background: hsl(var(--primary));
    color: #ffffff;
}

.btn-primary-rentas:hover {
    background: hsl(160, 75%, 25%);
    color: #ffffff;
}

.btn-secondary-rentas {
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
}

.btn-secondary-rentas:hover {
    background: hsl(160, 40%, 85%);
}

.btn-tertiary-rentas {
    background: hsl(160, 20%, 94%);
    color: hsl(215, 25%, 35%);
}

.btn-tertiary-rentas:hover {
    background: hsl(160, 20%, 88%);
}

.table-rentas-wrapper {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid hsl(160, 15%, 88%);
    box-shadow: var(--shadow-sm);
}

.table-rentas-scroll {
    overflow-x: auto;
}

.table-rentas {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-rentas thead {
    background: hsl(160, 70%, 25%);
    color: #ffffff;
}

.table-rentas thead th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
}

.table-rentas tbody tr {
    border-bottom: 1px solid hsl(160, 15%, 94%);
}

.table-rentas tbody tr:last-child {
    border-bottom: none;
}

.table-rentas tbody td {
    padding: 12px 20px;
    color: hsl(215, 25%, 35%);
}

.table-rentas-name {
    font-weight: 500;
    color: hsl(215, 25%, 15%);
}

.estado-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.estado-a-tiempo {
    background: hsl(142, 60%, 90%);
    color: hsl(142, 60%, 35%);
}

.estado-proximo {
    background: hsl(38, 90%, 90%);
    color: hsl(38, 90%, 40%);
}

.estado-pendiente {
    background: hsl(160, 40%, 92%);
    color: hsl(215, 25%, 35%);
}

.btn-pagar {
    display: inline-block;
    background: hsl(var(--primary));
    color: #ffffff;
    padding: 4px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-pagar:hover {
    background: hsl(160, 75%, 25%);
    color: #ffffff;
}

.table-rentas-footer {
    padding: 10px 20px;
    background: hsl(160, 20%, 96%);
    border-top: 1px solid hsl(160, 15%, 88%);
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

.table-rentas-footer i {
    margin-right: 6px;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.documento-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 20px 22px 22px;
    border: 1px solid hsl(160, 15%, 88%);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.documento-card:hover {
    box-shadow: var(--shadow-md);
}

.documento-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.documento-icon i {
    color: #ffffff;
    font-size: 20px;
}

.documento-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin: 0 0 2px 0;
}

.documento-card p {
    font-size: 13px;
    color: hsl(215, 25%, 35%);
    margin: 0 0 14px 0;
}

.documento-links {
    display: flex;
    gap: 10px;
}

.doc-link {
    flex: 1;
    text-align: center;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.doc-download {
    background: hsl(var(--primary));
    color: #ffffff;
}

.doc-download:hover {
    background: hsl(160, 75%, 25%);
    color: #ffffff;
}

.doc-view {
    background: hsl(160, 20%, 94%);
    color: hsl(215, 25%, 35%);
}

.doc-view:hover {
    background: hsl(160, 20%, 88%);
}

.rentas-contacto {
    margin-bottom: 20px;
}

.contacto-grid {
    background: hsl(215, 25%, 12%);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contacto-item i {
    font-size: 18px;
    color: hsl(45, 85%, 55%);
    width: 24px;
    flex-shrink: 0;
}

.contacto-item div {
    display: flex;
    flex-direction: column;
}

.contacto-label {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.contacto-value {
    font-weight: 600;
    font-size: 14px;
}

/* ======================================================
   PRODUCCIÓN - PROGRAMAS ACTIVOS
   ====================================================== */
.programas-lista {
    display: grid;
    gap: 16px;
}

.programa-item {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 22px 24px;
    border: 1px solid hsl(160, 15%, 88%);
    border-left: 4px solid hsl(var(--primary));
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.programa-item:hover {
    box-shadow: var(--shadow-md);
}

.programa-titulo {
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--primary));
    margin: 0 0 6px 0;
}

.programa-titulo i {
    margin-right: 8px;
}

.programa-desc {
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    margin: 0 0 12px 0;
}

.programa-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.detalle-item {
    background: hsl(160, 20%, 94%);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: hsl(215, 25%, 35%);
}

.detalle-item i {
    color: hsl(var(--primary));
    margin-right: 4px;
}

/* ======================================================
   BOLETINES
   ====================================================== */
.search-filters {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
}

.search-filters h3 {
    font-size: 18px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 16px;
}

.search-filters .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid hsl(160, 15%, 88%);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: hsl(var(--primary));
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 138, 106, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulletins-section {
    background: #ffffff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
}

.bulletin-viewer {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
}

.bulletin-viewer .viewer-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pdf-viewer {
    width: 100%;
    height: 700px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid hsl(160, 15%, 88%);
}

.pdf-viewer embed {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.bulletin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulletin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: hsl(160, 20%, 96%);
    border-radius: var(--radius);
    border: 1px solid hsl(160, 15%, 88%);
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 12px;
}

.bulletin-item:hover {
    background: hsl(160, 40%, 95%);
    border-color: hsl(var(--primary));
}

.bulletin-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 2px;
}

.bulletin-info p {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.bulletin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulletin-actions a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view {
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    padding: 4px 12px;
    border-radius: 20px;
}

.btn-view:hover {
    background: hsl(var(--primary));
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-download {
    background: hsl(var(--primary));
    color: #ffffff;
}

.btn-download:hover {
    background: hsl(160, 75%, 25%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 138, 106, 0.25);
}

.bulletin-form {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
    margin-bottom: 40px;
}

.bulletin-form h2 {
    font-size: 22px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid hsl(160, 15%, 88%);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 6px;
}

.form-group input[type="number"],
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid hsl(160, 15%, 88%);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input[type="number"]:focus,
.form-group input[type="file"]:focus {
    border-color: hsl(var(--primary));
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 138, 106, 0.1);
}

.form-group input[type="number"] {
    max-width: 200px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: hsl(var(--muted-foreground));
    font-size: 13px;
}

.btn-primary {
    padding: 10px 28px;
    background: hsl(var(--primary));
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: hsl(160, 75%, 25%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 138, 106, 0.25);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 28px;
    background: hsl(160, 20%, 94%);
    color: hsl(215, 25%, 15%);
    border: 1px solid hsl(160, 15%, 88%);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: hsl(160, 40%, 92%);
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
}

.existing-bulletins {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
}

.existing-bulletins h2 {
    font-size: 22px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid hsl(160, 15%, 88%);
}

.no-bulletins {
    text-align: center;
    padding: 40px 20px;
    background: hsl(160, 20%, 96%);
    border-radius: var(--radius);
    border: 1px solid hsl(160, 15%, 88%);
}

.no-bulletins h3 {
    font-size: 20px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 8px;
}

.no-bulletins p {
    font-size: 15px;
    color: hsl(var(--muted-foreground));
}

/* ======================================================
   SINGLE POST
   ====================================================== */
.single-post-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.entry-header {
    margin-bottom: 32px;
}

.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.entry-categories a {
    display: inline-block;
    padding: 4px 14px;
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.entry-categories a:hover {
    background: hsl(var(--primary));
    color: #ffffff;
    transform: translateY(-1px);
}

.entry-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: hsl(215, 25%, 15%);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid hsl(160, 15%, 92%);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: hsl(var(--muted-foreground));
}

.meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.post-thumbnail {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    background: hsl(160, 20%, 96%);
    text-align: center;
    font-style: italic;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: hsl(215, 25%, 20%);
}

.entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: hsl(215, 25%, 15%);
    letter-spacing: -0.02em;
}

.entry-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: hsl(215, 25%, 15%);
}

.entry-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: hsl(215, 25%, 15%);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: hsl(160, 75%, 25%);
}

.entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid hsl(var(--primary));
    background: hsl(160, 20%, 96%);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: hsl(215, 25%, 30%);
}

.entry-content blockquote p {
    margin-bottom: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table th,
.entry-content table td {
    padding: 10px 16px;
    border: 1px solid hsl(160, 15%, 88%);
    text-align: left;
}

.entry-content table th {
    background: hsl(160, 40%, 92%);
    font-weight: 600;
}

.entry-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid hsl(160, 15%, 92%);
}

.tags-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tags-title {
    font-size: 14px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-container a {
    display: inline-block;
    padding: 4px 14px;
    background: hsl(160, 20%, 94%);
    color: hsl(215, 25%, 35%);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tags-container a:hover {
    background: hsl(var(--primary));
    color: #ffffff;
    transform: translateY(-1px);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 16px 20px;
    background: hsl(160, 20%, 96%);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid hsl(160, 15%, 88%);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: hsl(160, 40%, 92%);
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.post-navigation a {
    font-size: 14px;
    font-weight: 500;
    color: hsl(215, 25%, 15%);
    transition: color 0.3s ease;
    display: block;
}

.post-navigation a:hover {
    color: hsl(var(--primary));
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid hsl(160, 15%, 92%);
}

/* ======================================================
   SIDEBAR
   ====================================================== */
.widget-area {
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
    margin-left: 40px;
}

.widget-area .widget {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px 20px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(160, 15%, 88%);
    transition: all 0.3s ease;
}

.widget-area .widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-area .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: hsl(215, 25%, 15%);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid hsl(160, 15%, 92%);
    position: relative;
    letter-spacing: -0.02em;
}

.widget-area .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: hsl(var(--primary));
    border-radius: 2px;
}

.widget-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid hsl(160, 15%, 94%);
    transition: all 0.3s ease;
}

.widget-area .widget ul li:last-child {
    border-bottom: none;
}

.widget-area .widget ul li a {
    color: hsl(215, 25%, 35%);
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.widget-area .widget ul li a::before {
    content: '›';
    margin-right: 8px;
    color: hsl(var(--primary));
    font-weight: 700;
    transition: all 0.3s ease;
}

.widget-area .widget ul li a:hover {
    color: hsl(var(--primary));
    transform: translateX(6px);
}

.widget-area .widget ul li a:hover::before {
    transform: translateX(3px);
}

.widget-area .widget_search .search-form {
    display: flex;
    align-items: center;
    background: hsl(160, 20%, 96%);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid hsl(160, 15%, 88%);
    transition: all 0.3s ease;
}

.widget-area .widget_search .search-form:focus-within {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px rgba(26, 138, 106, 0.08);
}

.widget-area .widget_search .search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: hsl(var(--foreground));
}

.widget-area .widget_search .search-form input[type="search"]::placeholder {
    color: hsl(var(--muted-foreground));
    font-size: 13px;
}

.widget-area .widget_search .search-form button {
    padding: 10px 16px;
    background: transparent;
    color: hsl(var(--primary));
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 15px;
}

.widget-area .widget_search .search-form button:hover {
    color: hsl(160, 75%, 25%);
}

.widget-area .widget_categories ul li,
.widget-area .widget_archive ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-area .widget_categories ul li a,
.widget-area .widget_archive ul li a {
    flex: 1;
}

.widget-area .widget_categories ul li span,
.widget-area .widget_archive ul li span {
    font-size: 12px;
    font-weight: 600;
    background: hsl(160, 40%, 92%);
    color: hsl(var(--primary));
    padding: 2px 10px;
    border-radius: 20px;
}

.widget-area .widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-area .widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 4px 14px;
    background: hsl(160, 20%, 96%);
    color: hsl(215, 25%, 35%);
    border-radius: 20px;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border: 1px solid hsl(160, 15%, 88%);
}

.widget-area .widget_tag_cloud .tagcloud a:hover {
    background: hsl(var(--primary));
    color: #ffffff;
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.widget-area .widget_recent_entries ul li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
}

.widget-area .widget_recent_entries ul li:first-child {
    padding-top: 0;
}

.widget-area .widget_recent_entries ul li a {
    font-weight: 500;
    color: hsl(215, 25%, 15%);
}

.widget-area .widget_recent_entries ul li a::before {
    display: none;
}

.widget-area .widget_recent_entries ul li .post-date {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    padding-left: 0;
}

.widget-area .widget_media_image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.widget-area .widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.widget-area .widget_calendar table th {
    background: hsl(160, 40%, 92%);
    padding: 6px 4px;
    text-align: center;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
}

.widget-area .widget_calendar table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid hsl(160, 15%, 92%);
}

.widget-area .widget_calendar table td a {
    display: block;
    background: hsl(var(--primary));
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget-area .widget_calendar table td a:hover {
    background: hsl(160, 75%, 25%);
}

.widget-area .widget_calendar table caption {
    caption-side: top;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
    margin-bottom: 8px;
    font-size: 14px;
}

.widget-area .widget_calendar .wp-calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
}

.widget-area .widget_calendar .wp-calendar-nav a {
    color: hsl(var(--primary));
    transition: color 0.3s ease;
}

.widget-area .widget_calendar .wp-calendar-nav a:hover {
    color: hsl(160, 75%, 25%);
}

/* ======================================================
   PAGINACIÓN (Global)
   ====================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: #ffffff;
    border: 1px solid hsl(160, 15%, 88%);
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination .page-numbers.current {
    background: hsl(var(--primary));
    color: #ffffff;
    border-color: hsl(var(--primary));
}

.pagination .page-numbers:hover:not(.current) {
    background: hsl(160, 40%, 92%);
    border-color: hsl(var(--primary));
}

.pagination .dots {
    border: none;
    background: transparent;
}

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
    background: hsl(215, 25%, 10%);
    color: #ffffff;
    padding: 50px 0 0;
    margin-top: 40px;
    border-top: 4px solid hsl(var(--primary));
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: hsl(var(--primary));
    border-radius: 2px;
}

.footer-column p,
.footer-column a,
.footer-column span {
    font-size: 14px;
    opacity: 0.75;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.footer-column a:hover {
    opacity: 1;
    color: hsl(45, 85%, 55%);
    transform: translateX(4px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: -0.5px;
}

.footer-logo h3::after {
    display: none;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.footer-contact-item:hover {
    opacity: 1;
}

.footer-contact-item i {
    color: hsl(45, 85%, 55%);
    width: 18px;
    font-size: 14px;
    flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
    font-size: 14px;
    opacity: 1;
}

.footer-menu-column {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.footer-menu-column li a {
    font-size: 14px;
    opacity: 0.75;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    position: relative;
}

.footer-menu-column li a::before {
    content: '›';
    margin-right: 6px;
    color: hsl(45, 85%, 55%);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-menu-column li a:hover {
    opacity: 1;
    color: hsl(45, 85%, 55%);
    transform: translateX(4px);
}

.footer-menu-column li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    opacity: 0.6;
}

.footer-bottom span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-credit i.fa-heart {
    color: hsl(350, 60%, 55%);
    animation: pulse-heart 1.5s ease infinite;
}

.footer-credit i.fa-code {
    color: hsl(45, 85%, 55%);
}

@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ======================================================
   BACK TO TOP
   ====================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 138, 106, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    z-index: 999;
    padding: 0;
    line-height: 1;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: hsl(160, 75%, 25%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(26, 138, 106, 0.4);
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top span {
    display: block;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

/* ======================================================
   UTILITY
   ====================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: hsl(142, 60%, 95%);
    color: hsl(142, 60%, 35%);
    border: 1px solid hsl(142, 60%, 85%);
}

.alert-error {
    background: hsl(0, 72%, 95%);
    color: hsl(0, 72%, 40%);
    border: 1px solid hsl(0, 72%, 85%);
}

/* ======================================================
   RESPONSIVE - GLOBAL (UNIFICADO)
   ====================================================== */

/* --- Tablets grandes y laptops pequeñas (≤1024px) --- */
@media (max-width: 1024px) {
    .header-container {
        max-width: 85%;
        padding: 0 12px;
    }

    .header-search .search-form input[type="search"] {
        width: 150px;
        min-width: 100px;
        font-size: 13px;
        padding: 8px 14px;
    }

    .header-search .search-form button {
        padding: 8px 14px;
        font-size: 14px;
    }

    .nav-menu > li > a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .site-header .header-container {
        height: 72px;
    }

    .custom-logo {
        height: 42px;
    }

    .site-title-top {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .site-title-main {
        font-size: 18px;
    }

    .site-title-wrapper::before {
        height: 30px;
    }

    .fullscreen-slider {
        height: 70vh;
        min-height: 400px;
    }

    .action-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .action-btn {
        min-height: 70px;
        padding: 12px 6px;
    }

    .action-btn i {
        font-size: 20px;
    }

    .action-btn span {
        font-size: 11px;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-menu-column {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo img {
        height: 42px;
    }

    .widget-area {
        max-width: 100%;
        margin-left: 0;
        margin-top: 32px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .widget-area .widget {
        margin-bottom: 0;
    }

    .historia-line {
        gap: 20px;
    }

    .historia-label {
        font-size: 13px;
        padding-right: 20px;
    }

    .historia-items {
        gap: 15px;
    }

    .historia-item {
        min-width: 150px;
    }

    .historia-item i {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .historia-item-text {
        font-size: 12px;
    }

    .historia-divider {
        height: 30px;
    }

    .content-area {
        flex-direction: column;
        padding: 16px;
        gap: 24px;
    }

    .content-main {
        width: 100%;
    }

    .widget-area {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .content-area-full {
        padding: 16px;
    }

    .rentas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .documentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacto-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }
}

/* --- Móviles grandes (≤768px) --- */
@media (max-width: 768px) {
    .header-top {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        order: 10;
    }

    .site-header .header-container {
        height: 64px;
        gap: 8px;
        position: relative;
        flex-wrap: nowrap;
    }

    .header-container {
        max-width: 95%;
        padding: 0 10px;
    }

    .site-branding {
        gap: 12px;
    }

    .custom-logo {
        height: 35px;
    }

    .site-title-top {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .site-title-main {
        font-size: 15px;
    }

    .site-title-wrapper::before {
        height: 25px;
        left: -8px;
    }

    .primary-menu-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #ffffff !important;
        padding: 80px 24px 24px !important;
        box-shadow: none !important;
        display: none !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        flex: none !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .primary-menu-container.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        animation: slideDown 0.3s ease !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .nav-menu > li:last-child {
        border-bottom: none !important;
    }

    .nav-menu > li > a {
        padding: 14px 16px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        justify-content: space-between !important;
        color: hsl(215, 25%, 15%) !important;
        border-radius: 0 !important;
        width: 100% !important;
        background: transparent !important;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li > a:active {
        background: hsl(160, 20%, 94%) !important;
    }

    .nav-menu > li.menu-item-has-children > a::after {
        content: "▾" !important;
        font-size: 14px !important;
        margin-left: auto !important;
        opacity: 0.5 !important;
        transition: transform 0.3s ease !important;
    }

    .nav-menu > li.menu-item-has-children.active > a::after {
        transform: rotate(180deg) !important;
    }

    .nav-menu ul.sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 4px 0 4px 16px !important;
        background: hsl(160, 20%, 98%) !important;
        border-radius: 6px !important;
        margin: 4px 8px !important;
        transition: none !important;
        width: auto !important;
    }

    .nav-menu ul.sub-menu.open {
        display: block !important;
    }

    .nav-menu ul.sub-menu li a {
        padding: 10px 14px !important;
        font-size: 14px !important;
        color: hsl(215, 25%, 35%) !important;
        width: 100% !important;
        border-radius: 4px !important;
    }

    .nav-menu ul.sub-menu li a:hover,
    .nav-menu ul.sub-menu li a:active {
        background: hsl(160, 40%, 95%) !important;
        color: hsl(var(--primary)) !important;
    }

    .nav-menu ul.sub-menu ul.sub-menu {
        left: 0 !important;
        top: 0 !important;
        padding-left: 16px !important;
    }

    .header-search .search-form input[type="search"] {
        width: 80px;
        min-width: 60px;
        font-size: 12px;
        padding: 4px 8px;
    }

    .header-search .search-form button {
        padding: 4px 8px;
        font-size: 13px;
    }

    .header-search .search-form {
        border-radius: 6px;
        border-width: 1.5px;
    }

    .nav-overlay {
        z-index: 999 !important;
    }

    .fullscreen-slider {
        height: 60vh;
        min-height: 350px;
    }

    .fullscreen-slide-content {
        padding: 20px 16px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-excerpt {
        font-size: 15px;
    }

    .btn-slider {
        padding: 12px 28px;
        font-size: 14px;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-btn {
        padding: 14px 10px;
        min-height: 80px;
    }

    .action-btn i {
        font-size: 22px;
    }

    .action-btn span {
        font-size: 12px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-categories {
        padding: 40px 0;
    }

    .noticias-section {
        padding: 40px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .noticias-grid-all {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .noticia-image,
    .noticia-image-all {
        height: 180px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    .historia-section {
        padding: 16px 0;
    }

    .historia-line {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .historia-label {
        padding-right: 0;
        text-align: center;
        font-size: 14px;
    }

    .historia-label::after {
        display: none;
    }

    .historia-items {
        flex-direction: column;
        gap: 12px;
    }

    .historia-item {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        text-align: center;
        min-width: unset;
        padding: 8px 0;
    }

    .historia-item i {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .historia-item-text {
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .historia-divider {
        width: 60%;
        height: 1px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.15);
    }

    .single-post-article {
        padding: 24px 16px;
    }

    .entry-title {
        font-size: 26px;
    }

    .entry-meta {
        gap: 16px;
        font-size: 13px;
    }

    .entry-content {
        font-size: 16px;
    }

    .entry-content h2 {
        font-size: 24px;
    }

    .entry-content h3 {
        font-size: 20px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .widget-area .widget {
        padding: 20px 16px 16px;
    }

    .widget-area .widget-title {
        font-size: 15px;
    }

    .widget-area .widget ul li a {
        font-size: 13px;
    }

    .widget-area .widget_search .search-form input[type="search"] {
        padding: 8px 12px;
        font-size: 13px;
    }

    .widget-area .widget_search .search-form button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .site-footer {
        padding: 40px 0 0;
        margin-top: 30px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 30px;
    }

    .footer-column:first-child {
        grid-column: auto;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-column h3::after {
        width: 25px;
    }

    .footer-column p,
    .footer-column a,
    .footer-column span {
        font-size: 13px;
    }

    .footer-logo img {
        height: 38px;
    }

    .footer-logo h3 {
        font-size: 16px;
    }

    .footer-menu-column {
        grid-template-columns: 1fr 1fr;
        gap: 2px 12px;
    }

    .footer-menu-column li a {
        font-size: 13px;
        padding: 3px 0;
    }

    .footer-contact-item i {
        font-size: 13px;
        width: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 16px 0;
        font-size: 12px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
        box-shadow: 0 4px 12px rgba(26, 138, 106, 0.25);
    }

    .back-to-top span {
        font-size: 22px;
    }

    .content-area {
        padding: 12px;
        gap: 20px;
    }

    .content-area-full {
        padding: 12px;
    }

    .page-header {
        min-height: 220px;
        padding: 40px 16px 35px;
        margin-bottom: 30px;
    }

    .page-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header h1::after {
        width: 40px;
        height: 2px;
        margin-top: 12px;
    }

    .page-header p {
        font-size: 15px;
    }

    .page-header::before {
        width: 300px;
        height: 300px;
        top: -30%;
    }

    .page-header::after {
        width: 200px;
        height: 200px;
        bottom: -20%;
    }

    .rentas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .documentos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    
    .alert-rentas {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .table-rentas {
        font-size: 13px;
    }
    
    .table-rentas thead th,
    .table-rentas tbody td {
        padding: 10px 14px;
    }
    
    .contacto-item {
        justify-content: center;
        text-align: center;
    }
}

/* --- Móviles pequeños (≤480px) --- */
@media (max-width: 480px) {
    .header-container {
        max-width: 98%;
        padding: 0 8px;
    }

    .site-header .header-container {
        height: 56px;
        gap: 6px;
    }

    .site-branding {
        gap: 8px;
    }

    .custom-logo {
        height: 28px;
    }

    .site-title-top {
        display: none;
    }

    .site-title-main {
        font-size: 13px;
    }

    .site-title-wrapper::before {
        display: none;
    }

    .mobile-menu-toggle {
        padding: 6px;
    }

    .toggle-bar {
        width: 20px;
        height: 2px;
    }

    .mobile-menu-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header-search .search-form input[type="search"] {
        width: 60px;
        min-width: 50px;
        font-size: 11px;
        padding: 4px 6px;
    }

    .header-search .search-form button {
        padding: 4px 6px;
        font-size: 12px;
    }

    .header-search .search-form input[type="search"]::placeholder {
        font-size: 10px;
    }

    .header-search .search-form button i {
        font-size: 12px;
    }

    .custom-logo {
        height: 32px;
    }

    .primary-menu-container {
        padding: 70px 16px 16px !important;
    }

    .nav-menu > li > a {
        padding: 12px 12px !important;
        font-size: 15px !important;
    }

    .fullscreen-slider {
        min-height: 300px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-meta {
        font-size: 12px;
        gap: 10px;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .slider-controls button {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .action-btn {
        padding: 12px 8px;
        min-height: 65px;
    }

    .action-btn i {
        font-size: 18px;
    }

    .action-btn span {
        font-size: 10px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .page-header {
        min-height: 180px;
        padding: 30px 12px 25px;
        margin-bottom: 24px;
    }

    .page-header .header-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header h1::after {
        width: 32px;
        margin-top: 10px;
    }

    .page-header p {
        font-size: 14px;
    }

    .noticia-image,
    .noticia-image-all {
        height: 150px;
    }

    .noticia-title,
    .noticia-title-all {
        font-size: 16px;
    }

    .pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 34px;
    }

    .historia-section {
        padding: 12px 0;
    }

    .historia-label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .historia-items {
        gap: 8px;
    }

    .historia-item {
        padding: 6px 0;
        gap: 4px;
    }

    .historia-item i {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .historia-item-text {
        font-size: 11px;
    }

    .historia-divider {
        width: 50%;
    }

    .single-post-article {
        padding: 16px 12px;
        border-radius: 0;
    }

    .entry-title {
        font-size: 22px;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .entry-content {
        font-size: 15px;
    }

    .entry-content h2 {
        font-size: 20px;
        margin: 28px 0 12px;
    }

    .entry-content h3 {
        font-size: 18px;
        margin: 24px 0 10px;
    }

    .entry-content blockquote {
        padding: 16px 20px;
        margin: 20px 0;
    }

    .tags-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .post-navigation a {
        font-size: 13px;
    }

    .widget-area {
        gap: 12px;
        margin-top: 16px;
    }

    .widget-area .widget {
        padding: 16px 12px 12px;
        border-radius: 8px;
    }

    .widget-area .widget-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .widget-area .widget-title::after {
        width: 30px;
    }

    .widget-area .widget ul li {
        padding: 6px 0;
    }

    .widget-area .widget ul li a {
        font-size: 12px;
    }

    .widget-area .widget_search .search-form input[type="search"] {
        padding: 6px 10px;
        font-size: 12px;
    }

    .widget-area .widget_search .search-form button {
        padding: 6px 10px;
        font-size: 13px;
    }

    .widget-area .widget_tag_cloud .tagcloud a {
        font-size: 12px !important;
        padding: 3px 10px;
    }

    .widget-area .widget_calendar table {
        font-size: 12px;
    }

    .widget-area .widget_calendar table th,
    .widget-area .widget_calendar table td {
        padding: 4px 3px;
    }

    .site-footer {
        padding: 30px 0 0;
        margin-top: 20px;
    }

    .footer-container {
        padding: 0 12px;
    }

    .footer-content {
        gap: 20px;
        padding-bottom: 24px;
    }

    .footer-column h3 {
        font-size: 14px;
        padding-bottom: 8px;
    }

    .footer-column h3::after {
        width: 20px;
        height: 2px;
    }

    .footer-column p,
    .footer-column a,
    .footer-column span {
        font-size: 12px;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-logo h3 {
        font-size: 15px;
    }

    .footer-logo {
        gap: 10px;
    }

    .footer-menu-column {
        grid-template-columns: 1fr 1fr;
        gap: 2px 8px;
    }

    .footer-menu-column li a {
        font-size: 12px;
        padding: 2px 0;
    }

    .footer-menu-column li a::before {
        font-size: 12px;
    }

    .footer-contact-item {
        gap: 8px;
    }

    .footer-contact-item i {
        font-size: 12px;
        width: 14px;
    }

    .footer-bottom {
        font-size: 11px;
        padding: 12px 0;
    }

    .footer-credit i.fa-heart {
        font-size: 12px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 3px 10px rgba(26, 138, 106, 0.2);
    }

    .back-to-top span {
        font-size: 18px;
    }

    .back-to-top:hover {
        transform: translateY(-2px) scale(1.05);
    }

    .content-area {
        padding: 8px;
        gap: 16px;
    }

    .content-area-full {
        padding: 8px;
    }

    .rentas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .documentos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    
    .alert-rentas {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .table-rentas {
        font-size: 12px;
    }
    
    .table-rentas thead th,
    .table-rentas tbody td {
        padding: 8px 10px;
    }
    
    .estado-badge {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .btn-pagar {
        font-size: 11px;
        padding: 3px 12px;
    }

    .contacto-item {
        justify-content: center;
        text-align: center;
    }
}

/* --- Móviles muy pequeños (≤380px) --- */
@media (max-width: 380px) {
    .action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .action-btn {
        padding: 10px 6px;
        min-height: 60px;
    }

    .action-btn i {
        font-size: 16px;
    }

    .action-btn span {
        font-size: 9px;
    }
}

/* ======================================================
   POPUP RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
    .popup-container {
        padding: 36px 28px 28px;
        border-radius: 18px;
        max-width: 460px;
    }

    .popup-logo img {
        max-height: 70px;
    }

    .popup-municipio {
        font-size: clamp(26px, 4vw, 34px);
    }

    .popup-divider {
        width: 150px;
    }

    .popup-lema {
        font-size: 16px;
    }

    .popup-lema:last-of-type {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: 28px 20px 24px;
        border-radius: 14px;
        max-width: 100%;
        margin: 10px;
    }

    .popup-logo img {
        max-height: 56px;
    }

    .popup-badge {
        font-size: 10px;
        padding: 3px 14px;
        letter-spacing: 1.5px;
    }

    .popup-titulo {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .popup-municipio {
        font-size: clamp(22px, 5vw, 28px);
        letter-spacing: 0.5px;
    }

    .popup-divider {
        width: 110px;
        gap: 10px;
        margin: 8px auto 14px;
    }

    .popup-divider .divider-dot {
        width: 6px;
        height: 6px;
    }

    .popup-lema {
        font-size: 14px;
    }

    .popup-lema:last-of-type {
        font-size: 16px;
    }

    .popup-cerrar {
        width: 34px;
        height: 34px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 380px) {
    .popup-container {
        padding: 20px 14px 18px;
    }

    .popup-logo img {
        max-height: 44px;
    }

    .popup-municipio {
        font-size: clamp(18px, 4vw, 22px);
    }

    .popup-lema {
        font-size: 12px;
    }

    .popup-lema:last-of-type {
        font-size: 14px;
    }
}

/* ======================================================
   CONTACT FORM 7 - ESTILOS PERSONALIZADOS
   ====================================================== */

/* Contenedor del formulario */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Grid de campos */
.wpcf7-form .wpcf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Grupos de campos */
.wpcf7-form .wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Etiquetas */
.wpcf7-form label {
    font-size: 14px;
    font-weight: 600;
    color: hsl(215, 25%, 15%);
}

/* Campos de entrada */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid hsl(160, 15%, 88%);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--app-font-sans);
    transition: all 0.3s ease;
    background: #ffffff;
    color: hsl(var(--foreground));
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: hsl(var(--primary));
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 138, 106, 0.1);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón de envío */
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: hsl(var(--primary));
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 4px;
}

.wpcf7-form .wpcf7-submit:hover {
    background: hsl(160, 75%, 25%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 138, 106, 0.25);
}

.wpcf7-form .wpcf7-submit:active {
    transform: scale(0.98);
}

/* Mensajes de error */
.wpcf7-form .wpcf7-not-valid-tip {
    color: hsl(0, 72%, 40%);
    font-size: 12px;
    margin-top: 4px;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: hsl(0, 72%, 51%) !important;
}

/* Mensajes de éxito/error */
.wpcf7-response-output {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: 16px;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: hsl(142, 60%, 95%);
    color: hsl(142, 60%, 35%);
    border: 1px solid hsl(142, 60%, 85%);
}

.wpcf7-response-output.wpcf7-validation-errors {
    background: hsl(0, 72%, 95%);
    color: hsl(0, 72%, 40%);
    border: 1px solid hsl(0, 72%, 85%);
}

/* Spinner de carga */
.wpcf7-form .wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Campos en columna completa */
.wpcf7-form .wpcf7-full-width {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7-form .wpcf7-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wpcf7-form .wpcf7-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form select,
    .wpcf7-form textarea {
        padding: 8px 12px;
        font-size: 13px;
    }

    .wpcf7-form .wpcf7-submit {
        padding: 10px 24px;
        font-size: 14px;
    }
}