/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/

:root {
    --em-font__main: 'Albert Sans', Arial, sans-serif;
    --em-line-height__body: 1.6;
    --em-color__base: #545454;
    --em-color__dark: #ffffff;
    --em-color__light: #013042;
    --em-color__primary: #0173BB;
    --em-color__grayer: #d9d9d9;
    --em-text-color-on-primary: #fff;
    --em-link-color: #000000;
    --em-link-color-hover: #DB1215;
    --em-header-color: #000000;
    --em-color-price-sale: #db1215;
    --em-border-color: #EBEBEB;
    --em-image-rounded: 0px;
    --em-image-rounded-post-card: 0;
    --em-image-rounded-featured-post: 0;
    --em-image-rounded-product-card: 0;
    --em-image-rounded-product-gallery: 0;
    --em-image-rounded-product-thumbnail: 0;
    --em-rounded-xs: 2.5px;
    --em-rounded-sm: 5px;
    --em-rounded-md: 10px;
    --em-rounded-full: 9999px;
    --em-image-rounded-post-card-small: min(5px, var(--em-image-rounded-post-card));
    --em-image-rounded-product-card-small: min(5px, var(--em-image-rounded-product-card));
    --em-image-eff-scale: 1.1;
    --em-image-eff-scale-product-card: 1.09;
    --em-heading-font: var(--em-font__main);
    --em-heading-color: #000000;
    --em-heading-font-weight: 400;
    --em-heading-line-height: 1.2;
    --em-heading-text-transform: none;
    --em-button-color: #ffffff;
    --em-button-bg-color: #000000;
    --em-button-border-color: var(--em-button-bg-color);
    --em-button-color-hover: #ffffff;
    --em-button-bg-color-hover: #000000;
    --em-button-border-color-hover: var(--em-button-bg-color-hover);
    --em-button-eff-bg-color-hover: rgba(255, 255, 255, 0.25);
    --em-button-padding-top: 15px;
    --em-button-padding-right: 20px;
    --em-button-padding-bottom: 14px;
    --em-button-padding-left: 20px;
    --em-button-line-height: 1;
    --em-button-font-size: 14px;
    --em-button-rounded: 0px;
    --em-button-font-weight: 600;
    --em-button-icon-spacing: 10px;
    --em-button-icon-size: 8px;
    --em-loading-color: #000000;
}

body:not(.home) .header-left-items svg {
  color: #013042;
}

body:not(.home) .header-center-items {
    margin-top: 10px;
}

.gallery a img {
	position:relative;
} 

.single-product .header-main,
.single-post .header-main
{
	box-shadow: 0 1px 3px rgba(33, 37, 41, 0.1);
	padding-bottom: 5px;
}

.header-items {
    justify-content: space-between;
	padding-left: 40px;
	padding-right: 40px;
}

.header-logo {
	float:left;
}

.main-navigation {
	float:right;
}

.primary-navigation .nav-menu > li > a {
	text-transform:uppercase;	
	font-size: 14px;
	font-weight:bold;
}

.primary-navigation .nav-menu > li > a:after {
	border-bottom: solid 3px #FEC401;
}

.product-featured-icons {
	display:none;
}

.star-rating .user-rating {
	color: #FEC401 !important;
}

.type-product .product-thumbnail img {
	width:100%;
}

.type-product .product-summary {
    position: relative;	
    background: #ffffff;
    margin-top: -5px;
    border-top: solid 1px #f1f1f1;
    border-radius: 15px;
}

.em-post-grid article {
	border: solid 3px #f1f1f1;
	border-radius: 15px;
    /* box-shadow: -4px 4px 5px 0px rgba(240.99999999999997, 240.99999999999997, 240.99999999999997, 0.95);	*/
}

.em-post-grid article .entry-summary {
	padding: 0px 15px 15px 15px;
}

.product-card-layout-1 .product-inner {
	border: solid 3px #f1f1f1;	
	border-radius: 15px;
}

.product-card-layout-1 .product-summary {
	padding: 15px;
}

.product-card-layout-1 .woocommerce-loop-product__title {
	margin-bottom: 10px !important;
}

.single-product div.product .ecomus-product-gallery-thumbnails .swiper-slide-thumb-active::after {
	border-color: #FEC401 !important;
}

.woocommerce-Price-amount {
    color: #0173BB;
}


.woocommerce-loop-product__title {
    height: 40px;
}

@media (max-width: 1024px) {
    .woocommerce-loop-product__title {
        height: auto;
    }
}

@media (max-width: 640px) {
    .woocommerce-loop-product__title {
        height: auto;
    }
}


.em-button-go-top,
.em-button-go-top::after {
    background: #FEC401;
}

.eael-posted-by {
    display:none;
}

.eael-grid-post-excerpt, 
.eael-grid-post-excerpt a {
    margin-top:8px;
}

.justificado,
.justificado p {
	text-align:justify;
}



/*++++++++++++++++++++++++++++++++ */
/* OCULTAR ENCABEZADO DE BLOG */
/*++++++++++++++++++++++++++++++++ */

.single-post .post .entry-header,
.single-post .post .entry-thumbnail {
	display: none;
}

/*++++++++++++++++++++++++++++++++ */


/* Forzar alineación vertical flexible en las tarjetas de producto */
.woocommerce ul.products li.product,
.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Empujar los precios y botones hacia la parte inferior de la tarjeta */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .price {
    margin-top: auto;
}

/* Estilo opcional para el texto de consultar */
.consult-price {
    font-weight: 600;
    color: #0173BB;
}


/* ==========================================================================
   Pizarra de Eventos - Estilos Unificados (Tabs & Carousel)
   ========================================================================== */
/* ==========================================================================
   ESTILOS GENERALES Y CONTENEDORES
   ========================================================================== */
.amintur-eventos-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.amintur-eventos-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   CABECERA DE TABS (MESES)
   ========================================================================== */
.amintur-tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.amintur-tab-btn {
    background-color: #F4F6F8;
    color: #002A4A;
    border: 1px solid #E3E7EB !important;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.amintur-tab-btn:hover {
    background-color: #0AA9BE;
    color: #FFFFFF;
    border-color: #0AA9BE !important;
}

.amintur-tab-btn.active {
    background-color: #0AA9BE;
    color: #FFFFFF;
    border-color: #0AA9BE !important;
}

/* Manejo correcto de paneles por pestaña para evitar colapsos */
.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
    width: 100%;
}

/* ==========================================================================
   GRILLA DE PRODUCTOS (4 Columnas por defecto)
   ========================================================================== */

/* Asegura que el contenedor principal del shortcode ocupe todo el ancho */
.pizarra-eventos-container, /* Reemplaza con la clase real del contenedor si difiere */
.wp-block-shortcode {
    width: 100%;
}

/* Si usa CSS Grid y las tarjetas vacías se quedan fijas, puedes hacer que se ajusten al contenido real */
.pizarra-grid-view { /* Reemplaza con la clase de la cuadrícula */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.amintur-products-grid {
    display: grid;
    /* Esto creará columnas automáticas que midan al menos 280px (ajusta este valor según el ancho deseado de tus tarjetas) 
       y se expandirán de manera fluida ocupando el 100% del ancho */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Forzar que las tarjetas midan siempre lo mismo y no se deformen */
.amintur-products-grid .amintur-product-card,
.amintur-carousel-grid .amintur-product-card {
    width: 100%;
    min-width: 0; /* Evita desbordamientos de flex/grid */
}

@media (max-width: 1024px) {
    .amintur-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .amintur-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   ESTRUCTURA DE LA TARJETA (PRODUCT CARD)
   ========================================================================== */

.amintur-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    /*overflow: hidden;*/
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amintur-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.amintur-card-image-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f8fafc;
    /*overflow: hidden;*/
}

.amintur-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0 !important;
}

.amintur-product-card:hover .amintur-card-image-wrap img {
    transform: scale(1.05);
}

/* Badges sobre la imagen abajo */
.amintur-badges-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.amintur-badge-cat,
.amintur-badge-mes {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.amintur-badge-etiqueta {
    position:absolute;
    right: 10px;
    top: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.amintur-badge-cat.badge-excursion {
    background-color: #01A454 !important; 
}

.amintur-badge-cat.badge-evento {
    background-color: #FEA401 !important;
}

.amintur-badge-mes {
    background-color: #0b1c3c !important; /* Azul oscuro elegante */
}

/* Información interna de la tarjeta */
.amintur-card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.amintur-event-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.amintur-event-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.amintur-event-title a:hover {
    color: #00a8cc;
}

/* Fila de fecha y ubicación con iconos */
.amintur-meta-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

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

.amintur-icon {
    stroke: #0173BB;
}

.amintur-meta-sep {
    color: #cbd5e1;
}

/* Texto descriptivo / extracto */
.amintur-event-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Footer de tarjeta: Precio a la izquierda, Botón a la derecha */
.amintur-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.amintur-price-block {
    display: flex;
    flex-direction: column;
}

.amintur-price-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2px;
}

.amintur-price-value {
    color: #0173BB;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
}

/* Botón "Ver Detalles" contorneado */
.amintur-btn-detalles {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #00a8cc;
    border: 1.5px solid #00a8cc;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.amintur-btn-detalles:hover {
    background-color: #00a8cc;
    color: #ffffff;
}

/* ==========================================================================
   ESTILOS DE CARRUSEL Y FLECHAS DE NAVEGACIÓN
   ========================================================================== */
.amintur-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0px;
}

.amintur-carousel-grid {
    display: flex;
    gap: 20px;
	/*
	overflow-x: auto;
	scroll-behavior: smooth;
    scrollbar-width: none;
	*/
    width: 100%;
    padding: 10px 0;
}

.amintur-carousel-grid::-webkit-scrollbar {
    display: none;
}

.amintur-carousel-grid .amintur-product-card {
    flex: 0 0 calc((100% - (20px * (var(--items-visibles, 4) - 1))) / var(--items-visibles, 4));
    min-width: 240px;
}

@media (max-width: 1024px) {
    .amintur-carousel-grid .amintur-product-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .amintur-carousel-grid .amintur-product-card {
        flex: 0 0 100%;
    }
}

/* Botones de Navegación del Carrusel - Ocultos por defecto */
.amintur-nav-btn {
    font-size: 20px;
    font-weight: 300;
    border: 1px solid #cbd5e1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    /* Configuración para efecto de aparición (fade) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Mostrar las flechas al hacer hover en el contenedor principal */
.amintur-carousel-wrapper:hover .amintur-nav-btn {
    opacity: 1;
    visibility: visible;
}

/* Posicionamiento exacto a 10px */
.amintur-nav-btn.prev {
    left: 10px;
}

.amintur-nav-btn.next {
    right: 10px;
}

/* Estado Activo */
.amintur-nav-btn:not(:disabled) {
    background-color: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
    border-color: #cbd5e1;
}

/* Estado Activo => Hover */
.amintur-nav-btn:not(:disabled):hover {
    background-color: rgba(0, 0, 0, 1);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 1);
}

/* Estado Inactivo (Disabled) */
.amintur-nav-btn:disabled {
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 1);
    border-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

/* Estado Inactivo => Hover (Sin efecto) */
.amintur-nav-btn:disabled:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 1);
}

/* Caja de Estado Vacío */
.amintur-no-eventos-box {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 15px;
}

/* ==========================================================================
   ESTILOS DE TARJETAS SKELETON (RELLENO)
   ========================================================================== */
.amintur-product-card.amintur-skeleton-card {
    opacity: 0.6;
    pointer-events: none;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.amintur-skel-bg {
    background: #e2e8f0 !important;
    animation: amintur-pulse 1.5s infinite ease-in-out;
    border-radius: 15px 15px 0 0 !important;
}

.amintur-skel-line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: amintur-pulse 1.5s infinite ease-in-out;
}

.amintur-skel-short {
    width: 40%;
}

.amintur-skel-long {
    width: 90%;
    height: 16px;
    margin-bottom: 15px;
}

.amintur-skel-medium {
    width: 60%;
}

@media (max-width: 640px) {
    .amintur-product-card.amintur-skeleton-card {
        display: none !important;
    }
}

@keyframes amintur-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

