#cabeceraTablaSubvenciones{
    background-color: #106FAD;
    padding: 10px 0;
    margin: 20px auto;
    color: #FFF;
}

#tablaSubvenciones, th, td{
    border: 1px solid #d2d2d2;
    border-collapse: collapse;
}

#tablaSubvenciones th, td{
    padding: 10px;
}

#tablaSubvenciones tr:nth-child(even) {
    background-color: #f0e4e7;
}

#tablaSubvenciones td:hover {background-color: #d2d2d2;}



/* HEADER*/
.hfe-site-logo img {
    width: 150px;
    height: auto;
}

.hfe-nav-menu__layout-horizontal.hfe-nav-menu__submenu-arrow ul li a{
    text-transform: capitalize;
}

.hfe-nav-menu__layout-horizontal.hfe-nav-menu__submenu-arrow ul li a:hover {
    color: #0074BC !important;
}

.elementor-element.header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
}

.header img {
    width: 200px;
    height: auto;
}

.bde-section.header {
    position: fixed !important;      
    top: 0;               
    left: 0;     
    z-index: 9999;        
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: box-shadow 0.3s ease; 
}

.ast-plain-container.ast-no-sidebar #primary,
.ficha-subvencion {
    margin-top: 180px !important;
}




/* FOOTER */

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
    background-color: #fff !important;
    background-image: none !important;
    border-style: none !important;
    border-width: 0px !important;
    border-top-width: 0 !important;
    border-top-color: transparent !important;
    padding-bottom: 0 !important;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    display: none !important;
}

.ast-builder-grid-row-container-inner {
    border-top: 1px solid #e5e5e5;
}

.footer {
    padding: 50px 20px 0 20px;
    background: #fff;
  }
  
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 20px;
    color: #444;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a,
.footer-bottom a {
    color: #444;
    text-decoration: none;
}

.footer-col ul li a:hover,
.footer-bottom a:hover {
    color: #0074BC;
}

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

.social-icon {
    width: 42px;
    height: 42px;
    background: #F3F4F6;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.social-icon svg {
    stroke: #4A5565;
    transition: 0.3s;
}

.social-icon:hover {
    background: rgba(0, 116, 188, 0.2); /* azul claro transparente */
}

.social-icon:hover svg {
    stroke: #0074BC;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #444;
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.contact-icon svg {
    stroke: #0074BC;
}
  
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #666;
    font-size: 14px;
}
  

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }
}



/* HOME */

.buscador-subvenciones {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    border-radius: 8px;
    max-width: 600px;
}

.buscador-subvenciones h2 {
    font-size: 20px;
    color: #0e70b8;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.buscador-subvenciones .icono-busqueda {
    font-size: 24px;
}

.buscador-subvenciones label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    margin-top: 15px;
}

.buscador-subvenciones input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 15px;
}

.buscador-subvenciones button {
    background-color: #0e70b8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.buscador-subvenciones button:hover {
    background-color: #095a93;
}

#sidebar button{
    margin-top: 15px;
    padding: 10px 75px;
    background: #143961;
}

.buscador-subvenciones select {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    font-size: 16px;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    appearance: none; /* Quita el estilo por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.cuantia {
    font-size: 1.1em;
    padding: 4px 4px 4px 24px;
    color: white;
}

ul.cat li {
    width: 100%;
    clear: both;
    line-height: 24px;
    margin: 0 0 5px;
    padding: 0 0 5px;
    border-bottom: 1px solid #CCC;
  }

ul.cat li span {
    margin-right: 4px;
}

ul.cat li::marker {
    content: "";
}

.fa-solid {
    padding: 0px 3px 0px 3px;
}

#pshowresult{
    font-weight: bold;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0074bc;
    display: none;
}


.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.overlay.active {
opacity: 1;
visibility: visible;
}


.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 60px);
}

/* FILTROS */
.sidebar {
    background: #fff;
    padding: 0.5rem 1.5rem;
    border: 1px solid #ececec;
    border-radius: 12px;
    margin: 2rem 1rem 1rem 0;
    transition: transform 0.3s ease;
    z-index: 20;
    height: fit-content;
}

.sidebar h3 {
    font-size: 24px !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.25rem;
    margin-bottom: 1.2rem;
}

.sidebar input,
.sidebar select {
    margin: 8px 0 16px 0;
}

.filter-group {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.filter-header h4 {
    font-size: 0.95rem;
    margin: 0.2rem 0;
}

.arrow {
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(-90deg);
}

.filter-group.collapsed .filter-content {
    max-height: 0;
}

.filter-content {
    margin-top: 0.5rem;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.filter-content label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #444;
}

.filter-content input {
    margin-right: 6px;
}


/* MAIN CONTENT*/
.main-content {
    padding: 2rem 0 2rem 2rem; 
}

.page-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0074bc;
    margin: 0 0 0.5rem 0;
}

.title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0 !important;
}

/* CARDS */
.card,
.header {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #ececec;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.1rem !important;
    font-weight: 400;
    margin: 0;
}

.status {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.status.open {
    background-color: #28a745;
}

.status.closed {
    background-color: #dc1616;
}

.status.weproccess {
    background-color: #09cde3;
}

.card-header__title p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.3rem 0 0.8rem;
}

.card-subheader{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #DFDFDF;
    width: 25%;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
}

.card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 24px;
    border-top: 1px solid #eee;
    padding-top: 2.25rem;
}

.section {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    margin-bottom: 1rem;
}

.section img {
    grid-column-start: 1;
    justify-self: center;
}

.section h4 {
    font-size: 0.9rem !important;
    color: #444;
    grid-column-start: 2;
    margin-bottom: 0;
}

.section p {
    font-size: 0.9rem !important;
    color: #555;
    margin: 12px 0 0 0;
    grid-column-start: 2;
}

.section .tags {
    grid-column-start: 2;
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

.tags span {
    display: inline-block;
    background: #eef3f8;
    color: #333;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 12px;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
}

.card-footer {      
    text-decoration: none;
    border-radius: 16px;
    margin-top: 32px;
    padding: 0.75rem;
}

.card-footer:hover {
    background-color: #f0f8ff;
  }

.card-footer a{
    display: flex;
    justify-content: space-between; 
    align-items: center;
    color: #0074bc !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

/* FICHA SUBVENCION */
.ficha-subvencion {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #ececec;
}
  
.ficha-subvencion__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.ficha-subvencion__title {
    width: 80%;
}
  
.ficha-subvencion__title h1 {
    font-size: 24px !important;
    font-weight: 600;
    margin: 0;
}
  
.ficha-subvencion__subtitle {
    font-size: 16px;
    color: #666;
    margin: 0.3rem 0 0.8rem;
}
  
.status {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
  
.status.open {
    background-color: #28a745;
}
  
.ficha-subvencion__subheader {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #DFDFDF;
    width: 20%;
}
  
.tag {
    display: inline-block;
    font-size: 0.8rem;
 }
  
.ficha-subvencion__body {
    display: flex;
    flex-direction: column;
    gap: 56px;
    border-top: 1px solid #eee;
    padding-top: 36px;
    margin-top: 24px;
}
  
.ficha-subvencion__body .section {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 6px;
      margin-bottom: 0 !important;
}

.ficha-subvencion__body .section p {
    margin-top: 0 !important;
}

.ficha-subvencion__body .section img {
    grid-column-start: 1;
    justify-self: center;
    width: 32px;
    height: auto;
}
  
.ficha-subvencion__body .section h2 {
    font-size: 1.1rem !important;
    color: #444;
    grid-column-start: 2;
    margin-bottom: 0;
}
  
.ficha-subvencion__body .section p,
.ficha-subvencion__body .section ul,
.ficha-subvencion__documentos-asociados,
.ficha-subvencion__categorias-asociadas{
    font-size: 0.9rem !important;
    color: #555;
    grid-column-start: 2;
}
  
.ficha-subvencion__documentos-asociados {
    background: #F9FAFB;
    border-radius: 10px;
    padding: 0 0 12px 12px;;
    border: 1px solid #ececec;
}
  
.ficha-subvencion__documentos-asociados:hover {
    background: #f0f8ff;
    border: 1px solid #eef3f8;
}
  
.ficha-subvencion__documentos-asociados .titulo {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
  
.ficha-subvencion__categorias-asociadas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
  
.ficha-subvencion__categorias-asociadas span {
    color: #0074BC;
    background-color: #f0f8ff;
    border-radius: 16px;
    padding: 6px 18px;
    border: 1px solid #B8D9ED;
}



@media (max-width: 1023px) {
    .status.open {
        margin-bottom: 22px;
    }
}

@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }

    .topbar {
        background: #fff;
        border-bottom: 1px solid #ddd;
        padding: 0.8rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 20;
    }
 
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        width: 260px;
        height: calc(100% - 60px);
        transform: translateX(-100%);
        border: none;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.visible {
        transform: translateX(0);
    }

    .container {
        grid-template-columns: 1fr;
    }

    .menu-btn {
        display: block;
    }

    .main-content {
        padding: 1.5rem;
    }
}

/* ALERTAS*/
header.entry-header .entry-title {
    display: none !important;
}

.alertas .main-content {
    padding: 0 !important;
}

/* TARIFAS */

.tarifas__precio {
    line-height: 30px;
}

.tarifas__precio span {
    font-size: 14px;
    font-weight: 400;
    color: #777;
}

.tarifas-card__heading,
.tarifas__precio {
    margin-left: auto !important;
    margin-right: auto !important;
}

.nuestros-planes__card {
    justify-content: space-between !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nuestros-planes__card:hover {
    transform: translateY(-16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.nuestros-planes__card .bde-button a {
    text-decoration: none;
}

/* SERVICIOS */
.servicios-banner {
    width: 60% !important;
}

.servicios-banner__button a {
    text-decoration: none !important;
}


/* CONTACTO*/
.contacto-container {
    height: 350px !important;
}



@media (max-width: 1119px) {
    .contacto-informacion {
        flex-direction: row !important;
    }

    .contacto-informacion .bde-column-523-129.bde-column,
    .contacto-informacion .bde-column-523-133.bde-column,
    .contacto-informacion  .bde-column-523-138.bde-column{
        width: 10% !important;
    }

    .breakdance .bde-columns-523-105.bde-columns > .bde-column,
    .contacto-container {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .nuestros-planes__card {
        width: 50% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    .card-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 660px) { 
    .card-subheader {
        width: 65%;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 1rem;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .section h4 {
        font-size: 0.85rem;
    }

    .section p, .card-header__title p {
        font-size: 0.85rem;
    }

    .card-footer {
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) { 
    .card-subheader {
        margin-top: 24px;
    }
}

#button_crear_alerta{
    margin-bottom: 20px;
    background: #143961;
}

#breadcrumbs a{
  text-decoration: none;
  color: var(--black) !important;
  cursor: pointer;
  outline: none;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination li {
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.pagination a {
    text-decoration: none;
    color: #444;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    font-weight: bold;
    border-color: #007bff;
}

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

#inf_form_alertas select.bigselect{
    max-width: 100%;
    min-height: 100px;
}

.bt_eliminar_alerta {
    margin-bottom: 20px;
  background: #143961;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease-in-out;
}

.modal h3 {
    margin-top: 0;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.modal-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-no {
    background: #ccc;
}

.btn-si {
    background: #d9534f;
    color: #fff;
}

.btn-si:hover {
    background: #c9302c;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.blur {
  filter: blur(3px);
  user-select: none;
}