/* ANKA Tours — Tarjetas de servicios (v1.2). Estilos encapsulados al widget. */
.anka-tour-cards { width: 100%; }
.anka-tour-cards *, .anka-tour-cards *::before, .anka-tour-cards *::after { box-sizing: border-box; }
.anka-tour-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    align-items: stretch;
}
.anka-tour-cards .anka-tour-card {
    --anka-tour-hover-scale: 1.06;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background: #f0f5f7;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(10, 45, 69, .03);
    outline-offset: 4px;
    -webkit-tap-highlight-color: transparent;
}
.anka-tour-card:focus-visible { outline: 3px solid #86c63a; }

/* Cabecera independiente encima de la fotografía */
.anka-tour-card__header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 20px 16px;
    background: #084972;
    transition: background-color .25s ease;
}
.anka-tour-card__title {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(17px, 1.3vw, 24px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.018em;
    text-align: center;
    text-shadow: none;
    overflow-wrap: anywhere;
    transition: color .25s ease;
}
.anka-tour-card:hover .anka-tour-card__header,
.anka-tour-card:focus-visible .anka-tour-card__header { background: #fff; }
.anka-tour-card:hover .anka-tour-card__title,
.anka-tour-card:focus-visible .anka-tour-card__title { color: #084972; }

/* Bloque central: imagen siempre cover y sin deformarse. */
.anka-tour-card__media {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.05 / 1;
    flex: none;
    overflow: hidden;
    background: #7ca7b4;
}
.anka-tour-cards .anka-tour-card__media > img.anka-tour-card__image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    min-height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover !important;
    object-position: center;
    transform: scale(1);
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.anka-tour-card__placeholder {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #79bac9, #1c6a83 70%, #12394b);
}
.anka-tour-card:hover .anka-tour-card__image,
.anka-tour-card:focus-visible .anka-tour-card__image { transform: scale(var(--anka-tour-hover-scale)); }

/* Pleca opcional sobre la imagen */
.anka-tour-card__category {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 0;
    display: inline-block;
    max-width: 90%;
    padding: 7px 14px;
    background: #0b8190;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    overflow-wrap: anywhere;
}

/* Franja CTA inferior — toda la tarjeta sigue siendo un único enlace. */
.anka-tour-card__footer {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 4px 16px 4px 28px;
    background: #edf3f6;
    transition: background-color .25s ease;
}
.anka-tour-card__cta-text {
    display: inline-block;
    color: #85bc33;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    text-decoration: none;
    transition: color .25s ease;
}
.anka-tour-card__arrow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dfe8ed;
    color: #084972;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.anka-tour-card__arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.anka-tour-card:hover .anka-tour-card__arrow,
.anka-tour-card:focus-visible .anka-tour-card__arrow {
    background: #8bc53f;
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .anka-tour-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .anka-tour-card__title { font-size: 21px; }
}
@media (max-width: 767px) {
    .anka-tour-cards__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .anka-tour-card__header { min-height: 66px; padding: 16px 12px; }
    .anka-tour-card__title { font-size: 20px; }
    .anka-tour-card__footer { min-height: 64px; padding: 8px 15px 8px 22px; }
    .anka-tour-card__arrow { width: 43px; height: 43px; }
}
@media (prefers-reduced-motion: reduce) {
    .anka-tour-card__header, .anka-tour-card__title, .anka-tour-card__image,
    .anka-tour-card__footer, .anka-tour-card__cta-text, .anka-tour-card__arrow { transition: none !important; }
}
