@charset "UTF-8";

/*
 * Mendikat - Capa de estilos modernos
 *
 * Se carga después de Bootstrap y del resto de hojas de estilo para
 * refrescar el diseño sin modificar el marcado funcional (Vue, jQuery,
 * Owl Carousel, pestañas de Bootstrap, cookies...).
 *
 * @author Javi Urrutia <javi@mendikat.net>
 */

/* TOKENS
----------------------*/

:root {
    --mk-purple-900: #2a0a52;
    --mk-purple-700: #4a0d8f;
    --mk-purple-600: #633991;
    --mk-pink-500: #fa2a8f;
    --mk-pink-400: #e54595;
    --mk-pink-100: #fde7f2;
    --mk-surface: #ffffff;
    --mk-surface-soft: #f8f5fb;
    --mk-border: #ece6f1;
    --mk-text: #2b2433;
    --mk-text-muted: #6d6675;
    --mk-gradient: linear-gradient(135deg, #4a0d8f 0%, #fa2a8f 100%);
    --mk-gradient-soft: linear-gradient(135deg, #f3ecfb 0%, #fde7f2 100%);
    --mk-radius-sm: 10px;
    --mk-radius: 16px;
    --mk-radius-lg: 24px;
    --mk-shadow-sm: 0 1px 2px rgba(42, 10, 82, 0.06), 0 2px 8px rgba(42, 10, 82, 0.04);
    --mk-shadow: 0 4px 12px rgba(42, 10, 82, 0.06), 0 16px 40px rgba(42, 10, 82, 0.08);
    --mk-shadow-lg: 0 8px 20px rgba(42, 10, 82, 0.08), 0 28px 60px rgba(42, 10, 82, 0.14);
    --mk-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mk-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --mk-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* GLOBAL
----------------------*/

body {
    font-family: var(--mk-font-body);
    color: var(--mk-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5 {
    font-family: var(--mk-font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1, .h1 {
    font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
    font-weight: 800;
}

h2, .h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
    font-weight: 700;
    color: var(--mk-purple-600);
}

h3, .h3 {
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
    font-weight: 800;
    color: var(--mk-purple-600);
}

h4, .h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mk-purple-600);
}

h5, .h5 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--mk-purple-600);
}

p {
    color: var(--mk-text-muted);
    line-height: 1.7;
}

.text-primary {
    color: #d13a86 !important;
}

p.lead {
    font-weight: 500;
    color: var(--mk-pink-400);
}

a {
    color: #d13a86;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--mk-purple-600);
}

::selection {
    background: var(--mk-pink-100);
    color: var(--mk-purple-900);
}

:focus-visible {
    outline: 3px solid rgba(250, 42, 143, 0.45);
    outline-offset: 3px;
    border-radius: 6px;
}

img {
    max-width: 100%;
}

.light-bg {
    background-color: var(--mk-surface-soft);
}

.section {
    padding: clamp(64px, 5vw + 32px, 112px) 0;
}

/* Títulos de sección: antetítulo en forma de etiqueta */
.section-title {
    margin-bottom: 3.5rem;
}

.section-title p {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--mk-gradient-soft);
    color: var(--mk-purple-600);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* BOTONES
----------------------*/

.btn {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 999px;
    transition: transform 0.25s var(--mk-ease), box-shadow 0.25s var(--mk-ease), background 0.25s ease, color 0.2s ease;
}

.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 4px rgba(250, 42, 143, 0.25);
}

.btn-primary {
    border-radius: 999px;
    background-image: var(--mk-gradient);
    background-size: 150% 150%;
    background-position: 0% 50%;
    box-shadow: 0 8px 24px rgba(250, 42, 143, 0.28);
    padding: 0.8rem 1.9rem;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not([disabled]):not(.disabled).active,
.btn-primary:not([disabled]):not(.disabled):active {
    background-image: var(--mk-gradient);
    background-position: 100% 50%;
    box-shadow: 0 12px 30px rgba(250, 42, 143, 0.38);
    transform: translateY(-2px);
}

.btn-light {
    border-radius: 999px;
    color: var(--mk-purple-600);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 0.8rem 1.8rem;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.btn-outline-light {
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
    color: var(--mk-purple-700);
    background: #fff;
}

/* NAVBAR
----------------------*/

.nav-menu {
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.nav-menu.is-scrolling,
.nav-menu.menu-is-open {
    background: linear-gradient(135deg, rgba(74, 13, 143, 0.88) 0%, rgba(250, 42, 143, 0.88) 100%);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 8px 30px rgba(42, 10, 82, 0.18);
}

.nav-menu.is-scrolling .logo {
    width: 48px;
    height: 48px;
}

.logo {
    transition: width 0.3s ease, height 0.3s ease;
}

.logo-text {
    font-family: var(--mk-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: none;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.82);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 0.8rem;
    }

    .navbar-nav > .nav-item > .nav-link.active:after {
        border-bottom: 0;
        height: 3px;
        bottom: 2px;
        border-radius: 3px;
        background: #fff;
        opacity: 0.9;
    }
}

.navbar-toggler {
    border: 0;
    padding: 0.5rem;
    border-radius: var(--mk-radius-sm);
}

/* HERO
----------------------*/

header.bg-gradient {
    position: relative;
    background-image:
        radial-gradient(60% 50% at 15% 10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(50% 60% at 90% 30%, rgba(255, 90, 170, 0.35) 0%, rgba(255, 90, 170, 0) 70%),
        linear-gradient(135deg, #3c0876 0%, #8a1a9e 50%, #fa2a8f 100%);
    padding-top: 140px;
    overflow: hidden;
}

/* Cabeceras sin imagen (artículos) */
header.bg-gradient > .container:last-child {
    padding-bottom: 4.5rem;
}

header h1 {
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.tagline {
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
    font-weight: 400;
    color: rgba(255, 225, 245, 0.92);
    line-height: 1.6;
    text-wrap: balance;
}

.section.bg-gradient {
    background-image:
        radial-gradient(50% 60% at 85% 20%, rgba(255, 90, 170, 0.35) 0%, rgba(255, 90, 170, 0) 70%),
        linear-gradient(135deg, #3c0876 0%, #8a1a9e 50%, #fa2a8f 100%);
}

/* TARJETAS DE MONTAÑAS
----------------------*/

.card-deck .card {
    margin-left: 12px;
    margin-right: 12px;
}

.card.pricing,
.card.pricing.popular {
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-shadow-sm);
    overflow: hidden;
    background: var(--mk-surface);
    transition: transform 0.35s var(--mk-ease), box-shadow 0.35s var(--mk-ease);
}

.card.pricing:hover {
    transform: translateY(-6px);
    box-shadow: var(--mk-shadow-lg);
}

.card.pricing .card-head {
    padding: 2rem 1.5rem 1rem;
}

.card.pricing .card-head .price {
    font-family: var(--mk-font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--mk-purple-600);
}

.card.pricing .card-head > div {
    font-size: 0.85rem;
    color: var(--mk-text-muted);
    margin-top: 0.35rem;
}

.card.pricing .card-head p.text-primary {
    display: inline-block;
    margin: 0.75rem 0 0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--mk-pink-100);
    font-size: 0.85rem;
    font-weight: 600;
}

.card.pricing .card-body {
    padding: 0 1.25rem 1.25rem;
}

.card.pricing .card-body > a:first-child {
    display: block;
    border-radius: var(--mk-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.card.pricing .card-body .img-full {
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--mk-ease);
}

.card.pricing:hover .card-body .img-full {
    transform: scale(1.05);
}

.card .btn-squared {
    border-radius: 999px !important;
}

/* Últimas cumbres catalogadas (Vue) */
.card.mountain {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card.mountain .card-head {
    height: auto;
    min-height: 13rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card.mountain .card-head .price + .price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mk-pink-400);
    margin-top: 0.2rem;
}

.card.mountain .card-head a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.card.mountain .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card.mountain .card-body img {
    height: auto;
    object-fit: cover;
}

.card.mountain .card-body img:hover {
    opacity: 1;
}

.card.mountain .card-body .btn {
    margin-top: auto;
}

.card.mountain .card-body .text-right {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--mk-text-muted);
}

/* CARACTERÍSTICAS
----------------------*/

.card.features {
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-shadow-sm);
    overflow: hidden;
}

.card.features .card-body {
    padding: 1.75rem;
}

.card.features:before {
    width: auto;
    height: 4px;
    right: 0;
    bottom: auto;
    background: var(--mk-gradient);
}

.card.features:hover {
    box-shadow: var(--mk-shadow);
}

.card.features .card-title::first-letter {
    text-transform: uppercase;
}

.card-text {
    font-size: 0.92rem;
}

.box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 20px;
    background: var(--mk-gradient-soft);
    box-shadow: none;
}

.box-icon .ti-3x,
.box-icon .fa-3x {
    font-size: 2rem;
}

.circle-icon {
    font-family: var(--mk-font-display);
    font-weight: 700;
    box-shadow: var(--mk-shadow-sm);
    border: 1px solid var(--mk-border);
}

.ui-steps li:hover .circle-icon {
    background-image: var(--mk-gradient);
    border-color: transparent;
}

.ui-steps li:not(:last-child) {
    border-bottom-color: var(--mk-border);
}

.img-rounded {
    box-shadow: var(--mk-shadow-lg);
}

.img-fluid.rounded,
#la-rioja-catalog .img-fluid {
    border-radius: var(--mk-radius-lg) !important;
}

#la-rioja-catalog .row.mt-4 .img-fluid {
    box-shadow: var(--mk-shadow);
}

.big {
    font-family: var(--mk-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mk-purple-900);
    margin-bottom: 1.5rem;
}

/* PESTAÑAS
----------------------*/

.nav-tabs {
    gap: 6px;
    padding: 6px;
    border-radius: var(--mk-radius);
    background: #efe8f5;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-item .nav-link,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8a7aa0;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--mk-purple-600);
    background: rgba(255, 255, 255, 0.5);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item .nav-link.active {
    background: #fff;
    color: var(--mk-purple-600);
    box-shadow: var(--mk-shadow-sm);
}

.tab-content {
    margin-top: 1.25rem;
    border-radius: var(--mk-radius-lg);
    border: 1px solid var(--mk-border);
    box-shadow: var(--mk-shadow-sm);
}

.tab-content .img-fluid {
    max-width: 100%;
}

@media (min-width: 992px) {
    .tab-content .img-fluid {
        max-width: 45%;
    }
}

/* TESTIMONIOS
----------------------*/

.testimonials-single {
    max-width: 760px;
    padding: 0 3rem;
}

.owl-carousel .owl-item img.client-img {
    width: 104px;
    height: 104px;
    object-fit: cover;
    padding: 4px;
    background: var(--mk-gradient);
    box-shadow: var(--mk-shadow);
}

.testimonials .blockquote {
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--mk-text);
    font-weight: 400;
}

.testimonials .blockquote:before {
    content: "\201C";
    display: block;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    height: 2.2rem;
    color: var(--mk-pink-500);
    opacity: 0.35;
}

.testimonials-single .h4 {
    font-size: 1.15rem;
}

.testimonials-single .h5 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mk-text-muted);
    margin-top: 0.25rem !important;
}

.owl-prev,
.owl-next {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--mk-purple-600) !important;
    box-shadow: var(--mk-shadow-sm);
    border: 1px solid var(--mk-border) !important;
    transition: background 0.25s ease, color 0.25s ease;
    /* El icono, centrado dentro del círculo */
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.owl-prev:hover,
.owl-next:hover {
    background: var(--mk-purple-600) !important;
    color: #fff !important;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    transition: width 0.3s var(--mk-ease), background 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
    width: 32px;
    background: var(--mk-pink-500);
}

/* GALERÍA
----------------------*/

.img-gallery .owl-item {
    border-radius: var(--mk-radius);
    overflow: hidden;
    box-shadow: var(--mk-shadow);
    opacity: 0.55;
    transition: transform 0.45s var(--mk-ease), opacity 0.45s ease;
}

.img-gallery .owl-item.center {
    opacity: 1;
}

/* Capturas de la web: misma proporción para que el carrusel quede uniforme */
#gallery .img-gallery img {
    aspect-ratio: 1 / 1.03;
    object-fit: cover;
    object-position: left top;
}

/* FAQ
----------------------*/

#faq.pt-0 {
    padding-top: 3.5rem !important;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--mk-radius-lg);
    border: 1px solid var(--mk-border);
    background: var(--mk-surface);
    box-shadow: var(--mk-shadow-sm);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #e3c9e6;
    box-shadow: var(--mk-shadow);
}

.faq-item .h4 {
    font-size: 1.1rem;
    line-height: 1.4;
}

.faq-item p {
    margin-bottom: 0 !important;
}

/* LLAMADA A LA ACCIÓN
----------------------*/

.call-to-action img {
    max-width: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

/* El icono de la app no tiene transparencia: se recortan sus esquinas blancas */
.call-to-action img.app-icon {
    border-radius: 24%;
    clip-path: inset(2% round 24%);
}

.call-to-action .btn-light img {
    max-width: none;
    margin-bottom: 0;
    filter: none;
}

.call-to-action .tagline {
    font-size: 1.05rem;
    color: rgba(255, 225, 245, 0.92);
}

.call-to-action .text-primary {
    color: rgba(255, 225, 245, 0.8) !important;
    font-size: 0.9rem;
}

/* CONTACTO Y PIE
----------------------*/

#contact p {
    font-weight: 500;
}

#contact [class^="ti-"] {
    color: var(--mk-pink-400);
}

.social-icons a {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--mk-border);
    color: var(--mk-purple-600);
    box-shadow: var(--mk-shadow-sm);
}

.social-icons a:hover {
    color: #fff;
    background: var(--mk-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(250, 42, 143, 0.3);
}

footer p {
    font-size: 0.85rem;
    color: var(--mk-text-muted);
}

/* AVISO DE COOKIES
----------------------*/

.cc_div {
    --cc-btn-primary-bg: #633991;
    --cc-btn-primary-hover-bg: #4a0d8f;
    --cc-btn-secondary-bg: #f3ecfb;
    --cc-btn-secondary-hover-bg: #e9dcf5;
    --cc-btn-secondary-text: #633991;
    --cc-toggle-bg-on: #633991;
}

.cc_div .c-bn {
    border-radius: 999px;
}

/* ARTÍCULOS
----------------------*/

.breadcrumb-custom a:hover {
    color: var(--mk-pink-500);
}

/* MOVIMIENTO REDUCIDO
----------------------*/

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .card.pricing:hover,
    .card.features:hover,
    .btn:hover {
        transform: none;
    }
}

/* APLICACIONES: POLARIS GPS, NAVIGATOR Y ACADEMY
----------------------*/

/* Portada con una captura superpuesta en la esquina inferior */
.app-showcase {
    position: relative;
    padding-bottom: 12%;
}

.app-showcase-cover {
    display: block;
    width: 88%;
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-shadow);
}

.app-showcase-capture {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56%;
    border: 4px solid #fff;
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow-lg);
}

/* Capturas de la app, cada una dentro de un móvil dibujado con CSS */
.phones {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(12px, 3vw, 32px);
    max-width: 480px;
    margin: 0 auto;
}

.phone {
    position: relative;
    flex: 0 1 46%;
    aspect-ratio: 9 / 19.5;
    padding: clamp(6px, 1.2vw, 10px);
    background: #1b1b1f;
    border-radius: clamp(26px, 5vw, 42px);
    box-shadow: inset 0 0 0 2px #3a3a40, var(--mk-shadow-lg);
}

/* La isla de la cámara */
.phone::before {
    content: '';
    position: absolute;
    top: clamp(12px, 2vw, 18px);
    left: 50%;
    z-index: 1;
    width: 28%;
    height: clamp(8px, 1.4vw, 14px);
    background: #1b1b1f;
    border-radius: 14px;
    transform: translateX(-50%);
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: clamp(20px, 4vw, 34px);
}

/* El segundo móvil, algo más abajo para dar ritmo */
.phone + .phone {
    margin-top: 12%;
}
