/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Tema hijo para Hello Elementor.
Author: Tu Nombre
Author URI: https://tudominio.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/*
 Theme Name: Association Child
 Description: Child theme for Association theme
 License: Themeforest Split Licence
 Author: Themezaa
 Author URI: http://www.themezaa.com
 Template: association
 Version: 1.0
 Text Domain: association-child
*/
/* Obligatorio para que Lenis tome el control del scroll */
html {
  height: auto !important;
  overflow-y: visible !important;
}

body {
  overflow-x: hidden;
	font-size:15px!important;
}
p {
	font-size:17px;
}
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
#titles{ padding: 10px 10px !important;}

.single-post #core{
    margin-top: 0px !important;
}

.mc_logo{
    top: -180px; width: 100px !important;
}

.mc_div_home{
    margin-top: -130px;
}

.flexinside h2 a{
    left: 125px;
}

.footerhead h2{
    max-width: 100%;
    text-align: center;
    text-transform: none !important;
}


ul.ecs-event-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
    
li.ecs-event {
    background: url('http://camara-alajuela.com.com/wp-content/uploads/2017/12/calendar.png') no-repeat left top;
    height: 70px;
    padding-left: 90px;
    padding-top: 3px;
}

.owl-item > div > div:last-child{
    height: 85px !important;
}

.principal div:nth-child(1){
		background: url(https://camara-alajuela.com/wp-content/uploads/2022/03/Logo-Camara-de-Alajuela-en-blanco.png) !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
	height: 171px !important;
    }
.principal div:nth-child(2) {
		margin-top: 115px !important;
	}

@media only screen and (max-width: 700px) {
    .owl-item img {
        width: 60% !important;
        margin: auto;
    }
    .owl-item > div > div::before{
        background-color: white !important;
    }

    .mainflex{
        background-color: white !important;
    }

    .flexinside{
        margin: -200px 0 0 0px !important;
    }

    .principal{
        font-size: 18px;
    }


    .principal div:nth-child(1){
        height: 70px !important;
		width: 200px !important;
        margin-right: 10px !important;
		background: url(https://camara-alajuela.com/wp-content/uploads/2022/03/Logo-Camara-de-Alajuela-en-blanco.png) !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
    }
	
	.principal div:nth-child(2) {
		margin-top: 33px !important;
	}
	
	
}



/* ============================================
   DIRECTORIO DE ASOCIADOS - SHORTCODE
   ============================================ */

.directorio-container-shortcode {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.directorio-header-shortcode {
    text-align: center;
    margin-bottom: 30px;
}

.directorio-title-shortcode {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.directorio-subtitle-shortcode {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Filtros - Dropdown */
.directorio-filtros-shortcode {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.filtro-select-wrapper {
    position: relative;
    min-width: 220px;
    max-width: 100%;
}

.filtro-select-shortcode {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filtro-select-shortcode:hover {
    border-color: #cbd5e1;
}

.filtro-select-shortcode:focus {
    outline: none;
    border-color: #DF0001;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filtro-select-shortcode option {
    padding: 8px;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.7rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filtro-select-shortcode:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.filtro-resultados-shortcode {
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

.total-resultados-shortcode {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
}

/* Grid */
.directorio-grid-shortcode {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(5, 1fr);
}

/* Columnas forzadas */
.directorio-grid-shortcode.columnas-1 { grid-template-columns: repeat(1, 1fr) !important; }
.directorio-grid-shortcode.columnas-2 { grid-template-columns: repeat(2, 1fr) !important; }
.directorio-grid-shortcode.columnas-3 { grid-template-columns: repeat(3, 1fr) !important; }
.directorio-grid-shortcode.columnas-4 { grid-template-columns: repeat(4, 1fr) !important; }
.directorio-grid-shortcode.columnas-5 { grid-template-columns: repeat(5, 1fr) !important; }

/* Cards */
.directorio-card-shortcode {
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.directorio-card-shortcode:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

/* Imagen */
.card-image-shortcode {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: #f3f4f6;
    overflow: hidden;
}

.card-image-shortcode img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Categorías sobre la imagen */
.card-categorias-shortcode {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}

.categoria-tag-shortcode {
    background: #DF0001;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0px 10px;
    border-radius: 5px;
}

/* Cuerpo del card */
.card-body-shortcode {
    padding: 14px 16px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title-shortcode {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.card-title-shortcode a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title-shortcode a:hover {
    color: #DF0001;
}

/* Contacto - íconos */
.card-contacto-shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.contacto-icon-shortcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f8fafc;
    color: #4b5563;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

.contacto-icon-shortcode:hover {
    transform: scale(1.1);
    border-color: #DF0001;
    background: #eff6ff;
    color: #DF0001;
}

.contacto-icon-shortcode.facebook:hover {
    border-color: #1877f2;
    background: #e7f3ff;
    color: #1877f2;
}

.contacto-icon-shortcode.instagram:hover {
    border-color: #e4405f;
    background: #fde7ed;
    color: #e4405f;
}

.contacto-icon-shortcode.tiktok:hover {
    border-color: #000000;
    background: #f0f0f0;
    color: #000000;
}

/* Estado vacío */
.directorio-vacio-shortcode {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.directorio-vacio-shortcode p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* > 1600px - 5 columnas */
@media (min-width: 1600px) {
    .directorio-grid-shortcode {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
    }
}

/* 1025px - 1599px: 4 columnas */
@media (min-width: 1025px) and (max-width: 1599px) {
    .directorio-grid-shortcode {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* 769px - 1024px: 3 columnas (tablet) */
@media (min-width: 769px) and (max-width: 1024px) {
    .directorio-grid-shortcode {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .directorio-title-shortcode {
        font-size: 1.8rem;
    }
    
    .filtro-select-wrapper {
        min-width: 180px;
    }
}

/* 481px - 768px: 2 columnas */
@media (min-width: 481px) and (max-width: 768px) {
    .directorio-grid-shortcode {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .directorio-title-shortcode {
        font-size: 1.6rem;
    }
    
    .directorio-filtros-shortcode {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filtros-wrapper-shortcode {
        width: 100%;
    }
    
    .filtro-select-wrapper {
        min-width: 100%;
    }
    
    .filtro-resultados-shortcode {
        text-align: center;
    }
}

/* ≤ 480px: 1 columna (móvil) */
@media (max-width: 480px) {
    .directorio-grid-shortcode {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .directorio-title-shortcode {
        font-size: 1.4rem;
    }
    
    .directorio-filtros-shortcode {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filtros-wrapper-shortcode {
        width: 100%;
    }
    
    .filtro-select-wrapper {
        min-width: 100%;
    }
    
    .filtro-select-shortcode {
        font-size: 0.85rem;
        padding: 8px 36px 8px 12px;
    }
    
    .filtro-resultados-shortcode {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .card-title-shortcode {
        font-size: 0.9rem;
        min-height: 38px;
    }
    
    .contacto-icon-shortcode {
        width: 26px;
        height: 26px;
    }
    
    .contacto-icon-shortcode svg {
        width: 14px;
        height: 14px;
    }
    
    .categoria-tag-shortcode {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
    .directorio-title-shortcode {
        font-size: 1.2rem;
    }
    
    .card-body-shortcode {
        padding: 12px 14px 14px 14px;
    }
}

/* Animación de entrada */
@keyframes fadeInUpShortcode {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.directorio-card-shortcode {
    animation: fadeInUpShortcode 0.5s ease forwards;
}

.directorio-card-shortcode:nth-child(1) { animation-delay: 0.05s; }
.directorio-card-shortcode:nth-child(2) { animation-delay: 0.10s; }
.directorio-card-shortcode:nth-child(3) { animation-delay: 0.15s; }
.directorio-card-shortcode:nth-child(4) { animation-delay: 0.20s; }
.directorio-card-shortcode:nth-child(5) { animation-delay: 0.25s; }
.directorio-card-shortcode:nth-child(6) { animation-delay: 0.30s; }
.directorio-card-shortcode:nth-child(7) { animation-delay: 0.35s; }
.directorio-card-shortcode:nth-child(8) { animation-delay: 0.40s; }
.directorio-card-shortcode:nth-child(9) { animation-delay: 0.45s; }
.directorio-card-shortcode:nth-child(10) { animation-delay: 0.50s; }
.directorio-card-shortcode:nth-child(11) { animation-delay: 0.55s; }
.directorio-card-shortcode:nth-child(12) { animation-delay: 0.60s; }
.directorio-card-shortcode:nth-child(13) { animation-delay: 0.65s; }
.directorio-card-shortcode:nth-child(14) { animation-delay: 0.70s; }
.directorio-card-shortcode:nth-child(15) { animation-delay: 0.75s; }
.directorio-card-shortcode:nth-child(16) { animation-delay: 0.80s; }
.directorio-card-shortcode:nth-child(17) { animation-delay: 0.85s; }
.directorio-card-shortcode:nth-child(18) { animation-delay: 0.90s; }
.directorio-card-shortcode:nth-child(19) { animation-delay: 0.95s; }
.directorio-card-shortcode:nth-child(20) { animation-delay: 1.00s; }

.telefono-directorio {
	background: url(img/phone-solid-full.svg) no-repeat;
	background-size: 20px;
	background-position-x: 0;
	background-position-y: 5px;
	padding-left: 30px;
	font-size:17px;
}
.correo-directorio {
	background: url(img/envelope-solid-full.svg) no-repeat;
	background-size: 20px;
	background-position-x: 0;
	background-position-y: 5px;
	padding-left: 30px;
	font-size:17px;
}
.direccion-directorio {
	background: url(img/location-dot-solid-full.svg) no-repeat;
	background-size: 20px;
	background-position-x: 0;
	background-position-y: 5px;
	padding-left: 30px;
	font-size:17px;
}



.grid-noticias-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.noticia-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.noticia-media {
    position: relative;
    width: 100%;
    height: 200px;
}

.noticia-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noticia-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #a81c1c; /* Color rojo de la tarjeta */
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.noticia-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    stroke: #6b7280;
}

.meta-separator {
    color: #9ca3af;
}

.noticia-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.noticia-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.noticia-title a:hover {
    color: #a81c1c;
}

.noticia-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.noticia-link {
    color: #a81c1c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.noticia-link:hover {
    gap: 8px;
}

/* Responsivo para Tablets y Móviles */
@media (max-width: 1024px) {
    .grid-noticias-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-noticias-container {
        grid-template-columns: 1fr;
    }
}
.caja-asociado-slider {
	background: #fff;
	border-radius: 10px;
	padding:20px;
}
.caja-asociado-slider h3 a {
	text-decoration:none;font-size: 18px!important;
}
.img-asociado-slider {
	background: #F0F3FF;
	padding: 20px;
	border-radius:10px;
	width:180px;
	height:180px;
	margin: 0 auto;
}
.img-asociado-slider img {
	object-fit: contain;
}