/*=============== FUENTES LOCALES ===============*/
/* Optimización de fuentes */
@font-face {
    font-family: 'FuenteTitulos';
    src: url('/fonts/titulos/SharpSlab-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FuenteTexto';
    src: url('/fonts/cuerpo/Cera Pro Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Variables CSS */
:root {
    --header-height: 3rem;
    --clr: #222327;
    --first-color: #ff5900;
    --title-color: #222327;
    --text-color: #555;
    --body-color: #f9f9f9;
    --container-color: #fff;
    --body-font: 'FuenteTexto';
    --title-font: 'FuenteTitulos';
    --h1-font-size: 1.5rem;
    --normal-font-size: .938rem;
    --tiny-font-size: .625rem;
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*=============== ESTILOS ===============*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
}

p, span, div, li {
    font-family: var(--body-font);
}

* {
    font-family: var(--body-font) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font) !important;
}


/* Responsive typography */
@media screen and (min-width: 968px) {
    :root {
        --h1-font-size: 2.625rem;
        --normal-font-size: 1rem;
    }
}

.subtitulo {
    font-family: var(--title-font) !important; /* Usa la fuente de títulos */
    font-size: 1rem; /* Ajusta el tamaño como necesites. '1rem' suele ser un buen punto de partida. */
    font-weight: 400; /* '400' es el peso normal, '600' es semibold. Ajústalo a tu gusto. */
    color: var(--mud-palette-text-primary);
    text-transform: uppercase;


}


/* Estilo para los detalles (fecha, hora, etc.) */
.activity-details {
    font-family: var(--body-font) !important; /* Usa la fuente de cuerpo de texto */
    font-size: 0.95rem; /* Tamaño estándar para texto secundario */
    color: #6c757d; /* Un color gris suave para diferenciarlo del título */
}

/* Estilo para el TÍTULO de la actividad */
.activity-title {
    /* 1. CORRECCIÓN: Cambiado --bod-font a --body-font (o --title-font si es para títulos) */
    font-family: var(--body-font) !important;
    font-size: 1.3rem; /* Usaremos 'rem' en lugar de 'em' para consistencia */
    font-weight: 700;
    line-height: 1.4;
    /* 2. CLAVE: Aseguramos que el contenedor en sí es el que se desborda */
    display: block; /* Hace que el elemento se comporte como un bloque */
    width: 100%; /* Ocupa el 100% del espacio de su contenedor padre (el MudItem) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo para el SUBTÍTULO (fecha, hora y "Estrellas") (Más pequeño y menos negrita) */
.activity-subtitle {
    font-family: var(--body-font) !important; /* Fuente para cuerpo de texto */
    font-size: 0.9rem; /* Tamaño más pequeño */
    font-weight: 400; /* Peso normal (no negrita) */
}

.month-header-text {
    color: white !important; /* Asegura que el texto sea blanco */
    font-weight: 1300; /* Le da un grosor seminegrita */
    font-family: var(--title-font) !important; /* Opcional: para usar la fuente de títulos */
}

/*=============== BASE ===============*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/

.section {
    padding: 4.5rem 0 2rem;
    color: var(--title-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section__height {
    height: 100vh;
}
/*=============== LAYOUT ===============*/
.container {
    max-width: 928px;
    margin-left: 1rem;
    margin-right: 1rem;
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--container-color);
    z-index: var(--z-fixed);
    transition: .4s;
}

/*=============== NAV ===============*/

.nav {
    /* height: var(--header-height);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
}

.nav__img {
    width: 32px;
    border-radius: 50%;
}

.nav__logo {
    color: var(--title-color);
    font-weight: 600;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: var(--container-color);
        box-shadow: 0 -1px 12px hsla(var(--hue),var(--sat),15%,0.15);
        width: 100%;
        height: 4rem;
        padding: 0 1rem;
        display: grid;
        align-content: center;
        border-radius: 1.25rem 1.25rem 0 0;
        transition: .4s;
        z-index: 1000; /* Asegura que el menú esté por encima del mapa */
    }
}

.nav__list,
.nav__link {
    display: flex;
}

.nav__link {
    flex-direction: column;
    align-items: center;
    row-gap: .25rem;
    color: var(--title-color);
    font-weight: 600;
}

.nav__list {
    justify-content: space-around;
}

.nav__name {
    font-size: var(--tiny-font-size);
    display: none;
}

.nav__icon {
    font-size: 2.2rem;
}
/*Active link*/
.active-link {
    position: relative;
    color: var(--first-color);
    transition: .3s;
}

    .active-link::before {
        content: '';
        position: absolute;
        bottom: -.9rem;
        width: 10px;
        height: 10px;
        background-color: var(--first-color);
        border-radius: 50%;
    }
/* Minimalist design, active link */


/* Change background header */
.scroll-header {
    box-shadow: 0 1px 12px hsla(var(--hue), var(--sat),15%,0.15);
}


.mud-link {
    color: inherit !important; /* Usa el color del texto padre */
    text-decoration: none !important; /* Elimina el subrayado */
}

    .mud-link:hover {
        color: inherit !important; /* Evita que el color cambie al pasar el mouse */
    }
/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
/*
@media screen and (max-width: 320px) {
  .nav__name{
    display: none;
  }
}
*/

@media screen and (max-width: 767px) {

    .nav__nave {
        display: none;
    }
}
/* For medium devices */
@media screen and (min-width: 576px) {

    .nav__list {
        justify-content: center;
        column-gap: 3rem;
    }
}

@media screen and (min-width: 767px) {

    body {
        margin: 0;
    }

    .section {
        padding: 7rem 0 2rem;
    }

    .nav {
        height: calc(var(--header-height)+1.5rem);
    }

    .nav__img {
        display: none;
    }

    .nav__icon {
        display: none;
    }

    .nav__name {
        font-size: var(--normal-font-size);
        display: block;
    }

    .nav__link:hover {
        color: var(--first-color);
    }


    .active-link::before {
        bottom: -.75rem;
    }
}

@media screen and (min-width:1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

.border-hidden {
    border: none;
    box-shadow: none;
}



.mud-dialog {
    max-width: 90%;
    width: auto;
}


.grayscale {
    filter: grayscale(100%);
}

#map {
    position: relative;
    width: 100%;
    z-index: 1; /* Asegúrate de que el mapa esté por debajo de la barra de menú */
}

@media screen and (min-width:768px) {
    #map {
        height: calc(100vh - 14vh); /* Ajusta según la altura de tu barra de menú */
        margin-right: auto;
    }
}

@media screen and (max-width:767px) {
    #map {
        height: calc(100vh - 27vh); /* Ajusta según la altura de tu barra de menú */
        width: 100%;
    }
}


/* Posiciona el botón flotante a la izquierda de la pantalla */
/* Icono flotante (menumapa) */
#floating-icon-map {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}



#floating-icon-map {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


/* Personalización de los botones de zoom en Leaflet */
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: none;
    border-radius: 20%;
}

.leaflet-control-container {
    border-radius: 50%;
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    width: 90px;
    height: 90px;
    background-color: white;
    border-radius: 10%;
    color: orange;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20%;
}


.leaflet-control-zoom {
    margin-top: 100px;
}

a.leaflet-disabled {
    cursor: default;
    background-color: #c4c4c4 !important;
    color: #bbb !important;
}


/* Variables CSS */
:root {
    --header-height: 3rem;
    --clr: #222327;
    --first-color: #ff5900;
    --title-color: #222327;
    --text-color: #555;
    --body-color: #f9f9f9;
    --container-color: #fff;
    --body-font: 'FuenteTexto';
    --title-font: 'FuenteTitulos';
    --h1-font-size: 1.5rem;
    --normal-font-size: .938rem;
    --tiny-font-size: .625rem;
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Estilos para aplicar el filtro de escala de grises a los logos */
.icon-svg {
    filter: grayscale(100%);
}

/* =================== ESTILOS DE TARJETA TRANSFORMABLE =================== */

/* Estado 1: Tarjeta SIN SELECCIONAR */
.activity-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid transparent !important; /* Borde transparente para evitar saltos */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Tarjeta SELECCIONADA: hereda todo de .activity-card y solo añade una cosa */
.activity-card-selected {
    overflow: hidden !important; /* ¡Esta es la única regla que necesita! */
}


/* Contenedor NARANJA de la flecha en la tarjeta seleccionada */
.selected-arrow-container {
    background-color: #ff5900;
    display: flex;
    align-items: center; /* Centra la flecha verticalmente */
    justify-content: center; /* Centra la flecha horizontalmente */
    align-self: stretch; /* ¡Esta es la clave! Se estira para ocupar toda la altura. */
}

    /* Cambia el color del icono de la flecha a blanco */
    .selected-arrow-container .mud-icon-root {
        color: white !important;
    }

/* =================== ANIMACIÓN DE TRANSICIÓN =================== */

/* 1. Define la animación de "deslizar desde la derecha" */
@keyframes slideInFromRight {
    /* Estado inicial: El elemento está fuera de la pantalla a la derecha y es invisible */
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    /* Estado final: El elemento está en su posición normal y es visible */
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 2. Clase de ayuda para aplicar la animación a cualquier elemento */
.animate-slide-in {
    animation-name: slideInFromRight;
    animation-duration: 0.4s; /* Puedes ajustar este tiempo (ej: 1s para más lento) */
    animation-timing-function: ease-out; /* Hace que la animación desacelere al final */
}

.lottie-logo-overlay {
    /* --- Posicionamiento --- */
    position: absolute;
    top: 0; /* Lo subimos al borde superior del contenedor */
    z-index: 10;
    /* --- El resto del estilo se queda igual --- */
    width: 90px;
    height: 90px;
    background-color: #ff5900;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 12px;
    box-sizing: border-box;
        color: white; /* o #FFFFFF */

}


    .lottie-logo-overlay svg {
        fill: white !important;

        width: 100%;
        height: 100%;
    }

#animation-detail {
    /* Empuja la animación hacia abajo para dejar espacio para el logo */
    margin-top: 110px;
}

/* Contenedor para botones de ancho completo */
.boton-contenedor {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacio entre botones si pones más de uno */
    margin: 20px auto 0 auto; /* Margen superior y centrado horizontal */
    max-width: 400px; /* Ancho máximo para que no sea excesivamente largo en pantallas grandes */
}

/* Estilo para botón personalizado naranja (que ya tenías) */
.btn-naranja {
    background-color: #ff5900 !important;
    color: white !important;
    border-radius: 20px;
    font-weight: bold;
    text-transform: none;
}

    .btn-naranja:hover {
        background-color: #e65400 !important;
    }
