/**
 * Theme Name: Agrikole Child
 * Template: agrikole
 * Version: 1.0
 * Description: Responsive WordPress Theme for Agriculture and Farming
 * Author: Ninzio
 **/

/* Páginas de Plataforma: ancho completo, sin márgenes a los lados
   (el tema agrega "agrikole-container" por JS a #content-wrap en toda
   Página que no use WPBakery; lo neutralizamos aquí). */
body.alasa-plataforma-page #content-wrap,
body.alasa-plataforma-page #content-wrap.agrikole-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Icon Box con 2 botones: mostrarlos en fila, con espacio entre ellos */
.agrikole-icon-box-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.agrikole-icon-box-buttons .url-wrap {
    margin: 0;
}

/* ================================================
   Reemplazar Amatic SC por Barlow
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&display=swap');


h1,
h2,
h3,
h4,
h5,
h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.heading-font,
.agrikole-tabs .tab-title .item-title,
.agrikole-adv-tabs .tab-title .item-title .anchor-link,
.agrikole-icon-box .icon-number,
.agrikole-icon,
.agrikole-icon.icon-text,
.agrikole-testimonials-group .name,
.agrikole-testimonials-box .name,
.agrikole-pricing-group .pricing-switcher-wrap .switch-text-1,
.agrikole-pricing-group .pricing-switcher-wrap .switch-text-2,
.agrikole-pricing-group .pricing-item .price,
.woo-single-post-class .woocommerce-tabs ul li > a,
.woo-single-post-class .woocommerce-tabs .entry-content .meta strong,
.woo-single-post-class .woocommerce-tabs .comment-respond .comment-reply-title,
.woocommerce .shop_table.cart .product-name a,
.woocommerce-page .shop_table.cart .product-name a,
.widget_shopping_cart_content ul li .product-name {
    font-family: "Barlow", sans-serif !important;
}


/* Galería de videos de Eventos [eventos_videos] */
.alasa-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.alasa-videos-columnas-2 { grid-template-columns: repeat(2, 1fr); }
.alasa-videos-columnas-3 { grid-template-columns: repeat(3, 1fr); }
.alasa-videos-columnas-4 { grid-template-columns: repeat(4, 1fr); }
.alasa-videos-columnas-5 { grid-template-columns: repeat(5, 1fr); }
@media only screen and (max-width: 991px) {
    .alasa-videos-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media only screen and (max-width: 575px) {
    .alasa-videos-grid { grid-template-columns: 1fr !important; }
}

.alasa-video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #1c1c1c;
    aspect-ratio: 16 / 9;
}
.alasa-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.alasa-video-thumb:hover img {
    transform: scale(1.06);
}
.alasa-video-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease;
}
.alasa-video-thumb:hover .alasa-video-play {
    background: rgba(0, 0, 0, 0.4);
}
.alasa-video-play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eddd5e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.alasa-video-thumb:hover .alasa-video-play-icon {
    transform: scale(1.1);
}
.alasa-video-play-icon:after {
    content: "";
    margin-left: 5px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #1c1c1c;
}
.alasa-video-title {
    margin: 10px 0 0;
    font-weight: 600;
}

/* Subtítulo del evento en #featured-title */
#featured-title .sub-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    line-height: initial;
}

/* Images Carousel: altura fija, imágenes con object-fit en vez de "full" */
.agrikole-images-carousel .item-wrap {
    position: relative;
    overflow: hidden;
    height: 350px;
    background-color: #2b2b2b;
}
.agrikole-images-carousel .item-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media only screen and (max-width: 767px) {
    .agrikole-images-carousel .item-wrap {
        height: 220px;
    }
}

/* Espaciado entre eventos en el carrusel de /eventos/ */
.agrikole-project .owl-item {
    padding: 0 8px;
}

/* Mostrar flechas de navegación en el carrusel de eventos */
.agrikole-project .owl-nav {
    display: block !important;
}
.agrikole-project .owl-prev,
.agrikole-project .owl-next {
    display: block !important;
}

/* Centrado vertical de logos en carrusel de partners */
.agrikole-partner .partner-item .inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.agrikole-partner .partner-item .thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    overflow: visible;
}
.agrikole-partner .partner-item .thumb img {
    width: auto;
    height: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* ================================================
   Área de Miembros
   ================================================ */

.alasa-btn,
.alasa-members-login input[type="submit"] {
    display: inline-block;
    background: #4c8b3a;
    color: #fff !important;
    padding: 10px 22px;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.alasa-btn:hover,
.alasa-members-login input[type="submit"]:hover {
    background: #3d7230;
}

.alasa-link {
    text-decoration: underline;
}

.alasa-restricted-content {
    background: #f5f5f5;
    border-left: 4px solid #4c8b3a;
    padding: 20px 25px;
    margin: 20px 0;
}

.alasa-members-login {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
}
.alasa-members-login p {
    margin-bottom: 15px;
}
.alasa-members-login form {
    text-align: left;
}
.alasa-login-logo {
    margin-bottom: 25px;
}
.alasa-login-logo img {
    max-width: 220px;
    height: auto;
}
.alasa-login-intro {
    margin-bottom: 25px;
    line-height: 1.6;
}
.alasa-members-login label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.alasa-members-login input[type="text"],
.alasa-members-login input[type="password"],
.alasa-members-login input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
}
.alasa-login-error {
    background: #fbeaea;
    border-left: 4px solid #c0392b;
    padding: 10px 15px;
    margin-bottom: 15px;
}
.alasa-login-message {
    background: #f5f5f5;
    padding: 20px 25px;
}

.alasa-documentos-categoria {
    margin-bottom: 30px;
}
.alasa-documentos-categoria h3 {
    margin-bottom: 12px;
}
.alasa-documentos-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}
.alasa-documento-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}
.alasa-documento-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e4d2b;
}
.alasa-documento-titulo::before {
    content: "\f316";
    font-family: dashicons;
    color: #4c8b3a;
}
.alasa-documento-acciones {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.alasa-documento-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background: #4c8b3a;
}
.alasa-documento-btn:hover {
    background: #3d7230;
}
.alasa-documento-btn-ver {
    background: #1e4d2b;
}
.alasa-documento-btn-ver:hover {
    background: #163a20;
}

.alasa-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media only screen and (max-width: 991px) {
    .alasa-noticias { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (max-width: 575px) {
    .alasa-noticias { grid-template-columns: 1fr; }
}
.alasa-noticia {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.alasa-noticia-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.alasa-noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.alasa-noticia-thumb:hover img {
    transform: scale(1.06);
}
.alasa-noticia-body {
    padding: 18px 20px;
}
.alasa-noticia h3 {
    margin-bottom: 5px;
    font-size: 20px;
}
.alasa-noticia-fecha {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}