/* Reset básico */
* { box-sizing: border-box; }
.hidden { display: none; }
textarea { resize: none; }
  
:root {
  --md-sys-color-primary: #4caf50;            /* Verde para los enlaces */
  --md-sys-color-primary-on-hover: #1d5820;   /* Verde más oscuro al pasar el cursor */
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-secondary: #e0e0e0;          /* Gris claro para colores secundarios */
  --md-sys-color-on-secondary: #000000;       /* Texto oscuro sobre el gris claro */
  --md-sys-color-surface: #fef7ff;
  --md-sys-color-on-surface: #1c1b1f;
  --md-sys-color-background: #fef7ff;
  --md-sys-color-background-nav-rail: #efebed;
  --md-sys-color-background-header: #f8f1f6;
  --md-sys-color-background-gronze-green: #31cd24;
  --md-sys-color-outline: #79747e;
  --md-sys-color-error: #b3261e;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-surface-variant: #e7e0ec;
  --md-sys-color-on-surface-variant: #49454f;
  --md-sys-color-navigation: #3c3741;       /* color menu navegacion */
  --md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.14);
  --md-sys-elevation-2: 0 2px 4px rgba(0, 0, 0, 0.14);
  --md-sys-color-subtitle: #858331;

  --gronze-background-body: #fefbff;
  --gronze-background-nav-rail: #f1ecee;    
  --gronze-background-icon-nav-rail: #cac697;
  --gronze-color-icon-nav-rail: #4d4055;    
  --gronze-background-header: #f8f1f6;    
  --gronze-color-title-header-links: #37b41e;
  --gronze-color-title-header-links-on-hover: #1d5820;
  --gronze-color-category-header: #858331;
  --gronze-color-grey-dark: #636363;
  --gronze-color-grey-date: #999999;
  --gronze-color-primary-text: #1c1b1d;
  --gronze-color-title-author: #03b41e;
  --gronze-background-backend-green: #31cd24;
}

html, body { height: 100%; font-family: 'Roboto', Arial, sans-serif; margin: 0; display: flex; flex-direction: column; }

body { min-height: 100vh; display: flex; flex-direction: column; background: var(--gronze-background-body); }

.nav-drawer {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: calc(100% - 88px);
  margin-left: 88px;
  background-color: #ffffff;
  transition: margin-left 0.3s ease;
  position: relative;
}

.wrapper { flex: 1 0 auto; display: flex; flex-direction: column; padding: 1rem 2rem 2rem 2rem; }

.footer {
  width: 100%;
  background-color: #ffffff;
  padding: 20px; /* no uses padding negativo */
  flex-shrink: 0;
}

  /* Estilo para los enlaces */
  a { color: var(--gronze-color-title-header-links); text-decoration: none; transition: color 0.3s ease, text-decoration 0.3s ease; }
  a:hover { text-decoration: underline; color: var(--gronze-color-title-header-links-on-hover); }
  
  
  /* NAV RAIL */
  .nav-rail {
    width: 80px;
    background: var(--gronze-background-nav-rail);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    position: fixed;
    height: 100vh;
    z-index: 100;
  }
  
  .nav-rail ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* icon search */
  .icon-search {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gronze-color-icon-nav-rail); 
    background: var(--gronze-background-icon-nav-rail);     
    width: 80%;
    padding: 0.7rem;
    border-radius: 20px;
    text-decoration: none;
  }

  .icon-search span,
  .icon-search a { text-decoration: none;}

  /* menu gronze */
  #block-tailwindcss-main-menu { width: 100%; }

  .menu-gronze {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .menu-gronze > li {
    position: relative;
    margin-bottom: 1rem;
  }

  .menu-gronze > li > a {
    text-decoration: none;
    color: var(--gronze-color-icon-nav-rail);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    transition: background 0.3s;
    width: 100%;
  }

  .menu-gronze > li > .nav-link > i::before,
  .menu-gronze > li > .nav-link > span.icon-label { color: var(--gronze-color-icon-nav-rail); }

  .menu-gronze > li > a:hover {
    /* background-color: #e0e0e0; */
  }

  .icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .label {
    font-size: 0.75rem;
  }

  /* Submenú sin clases */
  .menu-gronze > li.nav-item > span.nav-link { 
    height: auto;
    position: initial;
    border-radius: 50px;
    transition: all 0.3s ease-out 0s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    transition: background 0.3s;
  }

  .menu-gronze li.nav-item span.nav-link span.icon-label {
    width: auto;
    height: auto;
    position: initial;
    border-radius: 50px;
    transition: all 0.3s ease-out 0s;
  }

  .navbar-nav .nav-item span { }

  .menu-gronze > li > ul {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 80px; /* igual al ancho de .nav-rail */
    height: 100vh; /* altura completa */
    background-color: #f1ecee;
    padding: 6.0rem 0;
    min-width: 180px;
    border-left: 2px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;

    /* Animación */
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-gronze > li:hover ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .menu-gronze > li > ul li,
  .menu-gronze > li > ul li a,
  .menu-gronze li.nav-item ul li a.nav-link { align-items: start; text-align: left; }

  .menu-gronze > li > ul li a {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    text-align: left;
    padding: 0.5rem 1rem;
    color: #555;
  }

  .menu-gronze > li > ul li a:hover {
    background-color: #f0f0f0;
  }

  .nav-rail li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
  }

  .icon-circle,
  .menu-gronze i {
    border-radius: 20px;
    width: 80%;
    height: 40px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    color: var(--gronze-color-icon-nav-rail);
  }

  .icon-circle .material-icons { color: var(--gronze-color-icon-nav-rail); }

  .is-active .icon-circle,
  .icon-circle:hover,
  .menu-gronze .nav-link i:hover { background: var(--gronze-background-icon-nav-rail); }

  .nav-label,
  .icon-label {
    font-size: 12px;
    color: var(--gronze-color-icon-nav-rail);
    text-align: center;
    margin-top: 2px;
    font-family: 'Roboto', sans-serif;
  }

  .navbar-nav .nav-item span { opacity: 1; visibility: visible; }
  li.nav-item a.nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; }
  li.nav-item a.nav-link .icon-label { display: contents;}

  /* menu user */
  #block-tailwindcss-account-menu { width: 100%; }
  #block-tailwindcss-account-menu ul li a { border: none; font-size: 1.8rem; margin: 0; text-decoration: none; }
  #block-tailwindcss-account-menu ul li a i { padding: 5px 0; width: 100%; border-radius: 20px; }
  #block-tailwindcss-account-menu ul li a i:hover { background: var(--gronze-background-icon-nav-rail); }
  #block-tailwindcss-account-menu ul li a span.icon-label { width: auto; height: auto; position: initial; display: block; margin-top: 10px; }
  #block-tailwindcss-account-menu ul li a span.icon-label::before { width: auto; height: auto; position: initial; display: block; }
  #block-tailwindcss-account-menu ul li a span.icon-label::after { width: auto; height: auto; position: initial; display: block; }

  /* NAV DRAWER */
  .nav-drawer {
    margin-left: 88px;
    display: flex;
    height: 100vh;
    width: calc(100% - 88px);
    flex-direction: row;
    background-color: var(--gronze-background-body);
    transition: margin-left 0.3s ease;
    position: relative;
  }
  
  /* NAV SECUNDARIA */
  .nav-sec {
  background-color: #e0e0e0;
  padding: 1rem;
  white-space: nowrap;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  transform: translateX(-120%);
  opacity: 0;
  /* transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; */
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
  z-index: 900;
  pointer-events: none;
  
  }
  
  .nav-sec.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-sec a {
    color: #333;
    text-decoration: none;
    display: block;
  }
  
  /* MOBILE NAV (barra superior visible solo en móvil) */
  .mobile-nav {
    display: none;
    width: 100%;
    background-color: #1e1e2f;
    padding: 0.5rem 1rem;
    z-index: 1001;
    flex-shrink: 0;          /* ✅ Evita que crezca o estire */
    height: auto;            /* ✅ Altura según su contenido */
    box-sizing: border-box;
  }
  
  .mobile-nav .menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  /* CONTENIDO PRINCIPAL */
  /*
  .wrapper {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
  }
  */
  /* Por defecto oculta y fuera de pantalla */
	.mobile-nav-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
    background-color: #2e2e3e;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 240px;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1002;
    pointer-events: none;
    
  }
  
  /* Cuando está abierta */
  .mobile-nav-main.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  
	.close-mobile-main {
		background: none;
		border: none;
		color: white;
		font-size: 2rem;
		align-self: flex-end;
		cursor: pointer;
		margin-bottom: 1rem;
		transition: transform 0.2s ease;
	}
	
	.close-mobile-main:hover {
		transform: scale(1.1);
	}
	
	.mobile-nav-main a {
		color: white;
		font-size: 1.4rem;
		text-decoration: none;
		cursor: pointer;
	}
  
  .mobile-nav-main a:hover {
    transform: scale(1.1);
  }

  /* Banner principal */
  .main-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--md-sys-color-secondary); /* Cambia el fondo al gris claro */
    color: var(--md-sys-color-on-secondary); /* Cambia el texto al color oscuro */
    padding: 0rem; /* Reduce el padding para que sea más bajo */
    border-radius: 12px;
    box-shadow: var(--md-sys-elevation-1);
    margin-bottom: 2rem;
    max-width: 1200px; /* Limita el ancho máximo del contenedor */
    margin-left: auto; /* Centra horizontalmente */
    margin-right: auto; /* Centra horizontalmente */
}

  .banner-content {
    display: flex;
    width: 100%;
    gap: 2rem;
  }

  .text-content, .video-content {
    flex: 1; /* Cada contenedor ocupa la mitad del ancho */
  }

  .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40px;
  }
  .main-title {
    font-size: 3.7rem; /* Cambia el tamaño según lo que necesites */
    margin-left: -2px;
  }

.logo {
  position: relative;
  /* top: -60px;
  left: -7px; */
  width: 159px; /* Ajusta el ancho */
  height: auto;
  z-index: 10;
}
  /* Ajustes para el contenedor del video */
 .video-content {
    display: flex;
    align-items: center;
    justify-content: end;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0; /* Elimina el padding para que el video ocupe todo el espacio */

}

  .video-content video {
    width: 80%; /* Reduce el ancho del video al 80% del contenedor */
    max-width: 600px; /* Establece un ancho máximo más pequeño */
    height: 100%; /* El video ocupará todo el alto del contenedor */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

  /* Ajustes para el botón del video */
  .video-button {
    position: absolute;
    bottom: 1rem;
    right: calc(1rem + 10px); /* Mueve el botón 5px hacia la izquierda */
    background-color: #b39ddb; /* Color de fondo similar al de la imagen */
    color: #4a148c; /* Color del icono */
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;  
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .video-button:hover {
    transform: scale(1.1);
    background-color: #9575cd; /* Color más claro al pasar el cursor */
  }

  .video-button .material-icons {
    font-size: 24px;
  }
  .video-button .material-icons:hover {
    color: #fff; 
  }
  /* Responsivo: Ajustar diseño en pantallas pequeñas */
  @media (max-width: 768px) {
    .banner-content {
      flex-direction: column;
      gap: 1rem;
    }

    .text-content, .video-content {
      flex: none;
      width: 100%;
    }

    .main-banner {
      flex-direction: column; /* Cambia a columna en pantallas pequeñas */
      padding: 1rem; /* Ajusta el padding */
      text-align: center; /* Centra el contenido */
    } 

    .banner-content {
      flex-direction: column; /* Asegura que el contenido esté en columna */
      gap: 1rem; /* Espaciado entre elementos */
    }

    .text-content {
      margin-left: 0; /* Elimina el margen izquierdo */
      text-align: center; /* Centra el texto */
    }

    .main-title {
      font-size: 2.5rem; /* Reduce el tamaño del título */
      margin-left: 0; /* Elimina el margen izquierdo */
    }

    .video-content {  
      justify-content: center; /* Centra el video */
      padding: 0; /* Elimina el padding */
    }

    .video-content video {
      width: 100%; /* El video ocupa todo el ancho disponible */
      max-width: 100%; /* Elimina el ancho máximo */
      height: auto; /* Ajusta la altura automáticamente */
    }

    .logo {
       width: 150px; /* Reduce el tamaño del logo */
       top: 0; /* Ajusta la posición */
       left: 0;
       margin: 0 auto; /* Centra horizontalmente */
       position: relative ; /* Asegura que las propiedades top y left funcionen */
       display: block; /* Asegura que el elemento sea tratado como un bloque */
    }

    .search-bar {
      width: 70%; /* Reduce aún más el ancho de la barra de búsqueda */
      font-size: 0.8rem; /* Reduce el tamaño de la fuente */
      padding: 0.4rem; /* Ajusta el padding para que sea más compacto */
    }

    .search-container {
      padding: 0.4rem; /* Reduce el padding del contenedor */
    }

    .group-1 .camino-card,
    .group-2 .camino-card {
      width: 220px !important; /* Ajusta el ancho para que coincidan */
    }
  }

  @media (min-width: 1024px) and (max-width: 1366px) {
    .main-banner {
      flex-direction: row; /* Mantén el diseño en fila */
      padding: 1.5rem; /* Ajusta el padding */
      text-align: left; /* Alinea el contenido a la izquierda */
    }
  
    .banner-content {
      flex-direction: row; /* Asegura que el contenido esté en fila */
      gap: 1.5rem; /* Espaciado entre elementos */
    }
  
    .text-content {
      margin-left: 20px; /* Reduce el margen izquierdo */
      text-align: left; /* Alinea el texto a la izquierda */
    }
  
    .main-title {
      font-size: 3rem; /* Ajusta el tamaño del título */
      margin-left: 0; /* Elimina el margen izquierdo */
    }
  
    .video-content {
      justify-content: center; /* Centra el video */
      padding: 0; /* Elimina el padding */
    }
  
    .video-content video {
      width: 90%; /* Ajusta el ancho del video */ 
      max-width: 500px; /* Establece un ancho máximo */
      height: auto; /* Ajusta la altura automáticamente */
    }
  
    .logo {
      width: 200px; /* Ajusta el tamaño del logo */
      top: 0; /* Ajusta la posición */
      left: 0;
    }

    .video-button {
      bottom:35px; /* Sube el botón ajustando la posición */
      right: 40px;
    } 
    .group-1 .camino-card { 
      width: 270px !important; 
    }
    .group-2 .camino-card {
      width: 200px !important;
    }
     .group-3 .camino-card {
      width: 128px !important; 
    }
  }

  /* Ajustes para el footer en versión tablet */
  @media (min-width: 1024px) and (max-width: 1366px) {
    .footer {
      padding: 1.5rem 0.5rem;
      font-size: 1rem;
      min-height: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0 !important;
    }

    .footer-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem !important; /* Fuerza poco espacio entre secciones */
      margin-bottom: 0 !important;
      width: 100%;
    }
    .footer-section {
      margin-bottom: 0 !important;
      padding: 0.3rem 0 !important; /* Opcional: menos padding vertical */
    }

    .footer-section {
      flex: none;
      width: 100%;
      min-width: unset;
      text-align: center !important;
      margin-bottom: 0 !important;
      padding: 0.5rem 0 0.2rem 0;
    }

    .footer-section h3 {
      margin-bottom: 0.2rem;
      font-size: 1.1rem;
    }

    .footer-section a {
      margin-bottom: 0.2rem;
      font-size: 1rem;
    }

    .footer-bottom {
      padding-top: 0.5rem;
      font-size: 0.9rem;
      text-align: center;
    }

    .app-buttons img {
      width: 110px;
      margin: 0 0.2rem;
        }
  }

  /* Sección de Caminos */
  .caminos {
    margin-bottom: 2rem;
  }

  .caminos h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
  }

  /* Contenedor principal de los caminos */
  .caminos-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espaciado entre grupos */
    margin: 20px 0;
  }

  /* Estilo para cada grupo de caminos */
  .camino-group {
    display: flex;
    justify-content: center; /* Centra los caminos horizontalmente */
    gap: 15px; /* Espaciado entre tarjetas */
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten si no caben */
  }
  .camino-group a {
    display: flex;
    justify-content: center; /* Centra los caminos horizontalmente */
    gap: 15px; /* Espaciado entre tarjetas */
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten si no caben */
  }

  /* Estilo para cada tarjeta de camino */
  .camino-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px; /* Aumenta el padding */
    width: 200px; /* Aumenta el ancho */
    height: auto; /* Aumenta la altura */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .group-1 .camino-card {
    width: 300px; 
  }
  .group-2 .camino-card {
  width: 220px; 
  }
  .group-3 .camino-card {
  width: 142px; 
  }
  .camino-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .camino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  /* Estilo para el search bar */
  .search-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra horizontalmente */
    gap: 0.5rem;
    background-color: #fef7ff; /* Fondo claro */
    padding: 0.7rem;
    border-radius: 12px;
    margin: 0 auto; /* Asegura que el contenedor esté centrado */
  }

  .search-bar {
    flex: none; /* Evita que la barra se expanda automáticamente */
    width: 500px; /* Ajusta el ancho de la barra */
    padding: 0.5rem;
    border: none;
    border-radius: 12px;
    background-color: #f9f4fb; /* Fondo claro para la barra */
    color: #1c1b1f; /* Texto oscuro */
    font-size: 1rem;  
  }

  .search-bar::placeholder {
    color: #aaa; /* Color del texto del placeholder */
  }

  .search-button {
    padding: 0.5rem 1rem;
    background-color: #4caf50; /* Verde brillante */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .search-button:hover {
    background-color: #388e3c; /* Verde más oscuro al pasar el cursor */
  }

  /* Sección de Noticias */
  .noticias {
    margin-bottom: 2rem;
  }

  .noticias h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
   
  }

  .noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .noticia-card {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    padding: 1rem;
    border-radius: 12px;
    font-size: 2rem;
    box-shadow: var(--md-sys-elevation-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-align: center;
  }
  
  .noticia-card:hover {
    transform: scale(1.05);
    box-shadow: var(--md-sys-elevation-2);
  }

  .noticia-card img.noticia-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .noticia-card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
  }

  /* Pie de página */
  .footer { } 

  .footer-content {
    display: flex;
    flex-wrap: nowrap; /* Evita que las secciones se envuelvan a la siguiente línea */
    justify-content: space-between;
    gap: 5rem; /* Espaciado entre las secciones (antes -10rem) */
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1; /* Asegura que todas las secciones ocupen el mismo espacio */
    min-width: 180px; 
    text-align: unset;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--md-sys-color-on-secondary);
}

.footer-section a {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a,
.footer-bottom a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
  color: var(--md-sys-color-primary-on-hover);
}

.app-buttons img { width: 120px; margin-right: 0.5rem; }

.footer-bottom { border: none; display: flex; flex-direction: row; justify-content: space-between; width: 100%; max-width: 1200px; text-align: center; padding-top: 1rem; }

.footer-bottom a { color: var(--md-sys-color-on-secondary); font-weight: bold;}


  /* RESPONSIVE */
  @media (max-width: 768px) {
    /* Mostrar botón */
    .mobile-nav {
      display: block;
      position: sticky;
      top: 0;
    }
  
    /* Ocultar barra lateral por defecto */
    .nav-rail {
      transform: translateX(-100%);
    }
  
    /* Mostrar nav-rail si está activa */
    .nav-rail.show {
      transform: translateX(0); 
    }

    /* Ajustar nav-drawer */
    .nav-drawer {
      margin-left: 0;
      width: 100%;
      flex-direction: column;
    }
  
    /* Asegura espacio debajo del nav móvil */
    .wrapper {
      padding-top: 1rem;
      flex: 1;
      overflow-y: auto;
    }
  
    /* Acomoda nav-sec en móviles si se quiere usar también */
    .nav-sec {
      margin-top: 45px;
      left: 0; 
    }

    /* HEADER (Mobile Nav) */
    .mobile-nav {
      display: flex; /* Asegura que sea visible */
      position: sticky; /* Se mantiene visible al hacer scroll */
      top: 0;
      z-index: 1001; /* Asegura que esté por encima de otros elementos */
      width: 100%;
      background-color: #1e1e2f; /* Fondo oscuro */
      padding: 0.5rem 1rem;
      align-items: center;
      justify-content: space-between;
      
    }

    .mobile-nav .menu-toggle {
      font-size: 1.5rem;
      color: rgb(255, 255, 255);
      cursor: pointer;
    }
    
    .search-bar {
      width: 70%; /* Reduce aún más el ancho de la barra de búsqueda */
      font-size: 0.8rem; /* Reduce el tamaño de la fuente */
      padding: 0.4rem; /* Ajusta el padding para que sea más compacto */
    }

    .search-container {
      padding: 0.4rem; /* Reduce el padding del contenedor */
    }

    /* FOOTER */
    .footer {
      padding: 1rem; /* Reduce el padding */
      font-size: 0.8rem; /* Reduce el tamaño de fuente */
      line-height: 1.4; /* Ajusta el espaciado entre líneas */
      text-align: center; /* Centra el texto */
    }

    .footer-content {
      flex-direction: column; /* Cambia a columna */
      gap: 1rem; /* Espaciado entre secciones */
    }

    .footer-section {
      min-width: auto; /* Elimina el ancho mínimo */
      text-align: center !important;  /* Centra el texto */
      
    }

    .footer-bottom {
      padding-top: 0.5rem; /* Reduce el padding superior */
      font-size: 0.8rem; /* Reduce el tamaño de fuente */
    }
    .footer-bottom a {
      font-size: 0.8rem; 
    }
  }

  /* Solo en móviles/tablets */
@media (min-width: 769px) {
  .mobile-nav-main {
    display: none !important;
  }
}

/* TABLET: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Footer */
  .footer {
    padding: 1.2rem 0.5rem;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  } 
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .footer-section {
    min-width: unset;
    width: 100%;
    text-align: center !important;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
  }
  .footer-section h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .footer-section a {
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
  }
  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 0.5rem;
  }
  .app-buttons img {
    width: 100px;
    margin: 0 0.1rem;
  }

  /* Caminos */
  .caminos-grid {
    gap: 16px;
  }
  .camino-group {
    gap: 10px;
  }
  .group-1 .camino-card { width: 220px !important; }
  .group-2 .camino-card { width: 170px !important; }
  .group-3 .camino-card { width: 110px !important; }
  .camino-card {
    padding: 10px;
    font-size: 0.98rem;
  }

  /* Noticias */
  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .noticia-card {
    font-size: 0.98rem;
    padding: 0.7rem;
  }
}

@media (max-width: 480px) and (max-height: 1040px) {
  /* Banner principal */
  .main-banner {
    flex-direction: column;
    padding: 0.7rem 0.2rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  .banner-content {
    flex-direction: column;
    gap: 0.7rem;
  }
  .text-content {
    margin-left: 0;
    text-align: center;
  }
  .main-title {
    font-size: 1.5rem;
    margin-left: 0;
  }
  .logo {
    width: 110px;
    top: 0;
    left: 0;
    margin: 0 auto;
    display: block;
    position: relative;
  }
  .video-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px; /* Ajusta según el tamaño deseado */
    width: 100%;
    padding: 0;
    background: none;
  }
  .video-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 120px; /* Asegura que el video tenga altura visible */
    background: #eee;
  }
  .video-button {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Buscador */
  .search-container {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.2rem;
    width: 100%;
  }
  .search-bar {
    width: 95vw;
    font-size: 0.9rem;
    padding: 0.3rem;
  }
  .search-button {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.3rem 0;
  }

  /* Caminos */
  .caminos h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;    
  }
  .caminos-grid {
    gap: 8px;
    margin: 10px 0;
  }
  .camino-group {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .camino-card {
    width: 95vw !important;
    max-width: 340px;
    padding: 7px;
    font-size: 0.9rem;
  }

  /* Noticias */
  .noticias h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .noticias-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .noticia-card {
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  /* Footer */
  .footer {
    padding: 0.5rem 0.1rem;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }
  .footer-section {
    min-width: unset;
    width: 100%;
    text-align: center !important;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0;
  }
  .footer-section h3 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
  }
  .footer-section a {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
  }
  .footer-bottom {
    font-size: 0.7rem;
    padding-top: 0.2rem;
  }
  .app-buttons img {
    width: 70px;
    margin: 0 0.05rem;
  }
}
@media (max-width: 820px) and (max-height: 1180px) {
  /* Banner principal */
  .main-banner {
    flex-direction: column;
    padding: 1.2rem 0.5rem;
    text-align: center;
    margin-bottom: 1.2rem;
  }
  .banner-content {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }
  .text-content {
    margin-left: 0;
    text-align: center;
  }
  .main-title {
    font-size: 2.2rem;
    margin-left: 0;
  }
  .logo {
    width: 140px;
    top: 0;
    left: 0;
    margin: 0 auto;
    display: block;
    position: relative;
  }
  .video-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    width: 100%;
    padding: 0;
    background: none;
  }
  .video-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 180px;
    background: #eee;
  }
  .video-button {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  /* Buscador */
  .search-container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.3rem;
    width: 100%;
  }
  .search-bar {
    width: 90%;
    font-size: 1rem;
    padding: 0.5rem;
  }
  .search-button {
    width: 90%;
    font-size: 1rem;
    padding: 0.5rem;
  }

  /* Caminos */
  .caminos h2 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
  }
  .caminos-grid {
    gap: 14px;
    margin: 14px 0;
  }
  .camino-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .camino-card {
    width: 260px !important;
    max-width: 90vw;
    padding: 12px;
    font-size: 1rem;
}
  .group-1 .camino-card { width: 200px !important; }
  .group-2 .camino-card { width: 148px !important; }
  .group-3 .camino-card { width: 200px !important; }
    
  /* Noticias */
  .noticias h2 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
  }
  .noticias-grid {
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .noticia-card {
    font-size: 1rem;
    padding: 0.7rem;
  }

  /* Footer */
  .footer {
    padding: 1rem 0.2rem;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
  }
  .footer-section {
    min-width: unset;
    width: 100%;
    text-align: center !important;
    margin-bottom: 0.3rem;
    padding: 0.3rem 0;
  }
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
  }
  .footer-section a {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
  }
  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 0.3rem;
  }
  .app-buttons img {
    width: 90px;
    margin: 0 0.08rem;
  }
}

/* Nuevos estilos añadidos */
md3-localidades-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  margin-top: 10px;
}
.md3-search-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0 0 0;
  gap: 12px;
}
.md3-search-input {
  width: 340px;
  height: 40px;
  border-radius: 16px;
  border: none;
  background: #f6f2f7;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}
.md3-tabs-row {
  display: flex;
  justify-content: center;
  margin: 36px 0 0 0;
  gap: 16px; /* Aumenta el espacio entre botones */
  background: #e0e0e0;
  border-radius: 24px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 8px;
}

.md3-tabs-row md-filled-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px; 
  padding: 0 28px;
  font-size: 1.13rem;
  font-weight: 500;
  background: #e0e0e0 !important;
  color: #222 !important;
  border-radius: 16px;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.2s;
}

.md3-tabs-row md-filled-button[selected] {
  background: #38e13e !important;
  color: #fff !important;
  font-weight: 700;
}

.tab-content {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 64px 0 rgba(56, 225, 62, 0.18), 0 4px 32px 0 #38e13e22;
  padding: 48px 38px;
  display: none;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}
.tab-content h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #38e13e;
  text-align: center;
}
.tab-content p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* --- Vía de la Plata Section Styles --- */
.via-de-la-plata-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 48px 0 rgb(254, 254, 254), 0 2px 16px 0 #00000022;
  padding: 38px 32px 32px 32px;
  max-width: 1200px;
  margin: 36px auto 0 auto;
}

.md3-localidades-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

md-assist-chip {
  --md-assist-chip-container-color: #f3f3f3;
  --md-assist-chip-label-text-color: #333;
  font-size: 1rem;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.2s;
} 
md-assist-chip:hover {
  --md-assist-chip-container-color: #00be00;
}

.md3-search-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.md3-search-input {
  padding: 10px 16px;
  border: 1.5px solid #bdbdbd;
  border-radius: 22px;
  font-size: 1rem;
  width: 220px;
  outline: none;
  transition: border 0.2s;
  background: #fafafa;
}
.md3-search-input:focus {
  border-color: #38e13e;
  background: #fff;
}

.md3-tabs-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

md-filled-button[selected] {
  --md-filled-button-container-color: #38e13e;
  --md-filled-button-label-text-color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(56,225,62,0.10);
}
md-filled-button {
  --md-filled-button-container-color: #f3f3f3;
  --md-filled-button-label-text-color: #222;
  border-radius: 18px;
  min-width: 120px;
  font-size: 1rem;
  transition: background 0.2s;
}
md-filled-button:not([selected]):hover {
  --md-filled-button-container-color: #e0ffe0;
}

.tab-content {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
  margin-bottom: 0;
  min-height: 120px;
  animation: fadeInTab 0.3s;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}
.tab-content h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #38e13e;
}
.tab-content p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 700px) {
  .via-de-la-plata-section {
    padding: 16px 4vw;
    max-width: 98vw;
  }
  .md3-search-input {
    width: 100%;
    min-width: 0;
  }
  .md3-localidades-row {
    gap: 8px;
  }
  .md3-tabs-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tab-content {
    padding: 16px 6px;
  }
}

.etapas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .etapas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .etapas-grid {
    grid-template-columns: 1fr;
  }
}

.md3-localidades-row md-filled-button:hover,
.md3-localidades-row md-filled-button:focus {
  --md-filled-button-container-color: #e0ffe0;
  box-shadow: 0 2px 8px #38e13e22;
  font-weight: 500;
  background: #e4e4e4;
}

.vdplata-hero {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 18px;
}
.vdplata-hero-img {
  max-width: 420px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.vdplata-info-card {
  background: #f7f4f9;
  border-radius: 16px;
  max-width: 800px;
  margin: 28px auto 32px auto;
  padding: 18px 18px 8px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.vdplata-info-card details {
  background: #f3f0f7;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 10px 16px;
  font-size: 1.05rem;
  transition: background 0.2s;
  border: none;
}
.vdplata-info-card details[open] {
  background: #ede7f6;
}
.vdplata-info-card summary {
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  outline: none;
  margin-bottom: 6px;
}
.vdplata-info-card p {
  margin: 8px 0 0 0;
  color: #222;
  font-size: 1rem;
}
.related-content {
  max-width: 700px;
  margin: 48px auto 0 auto;
  background: none;
  text-align: center;
}
.related-content h2 {
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 28px;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.related-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 12px;
  font-size: 1.08rem;
  transition: background 0.2s;
}
.related-list li a {
  color: #21b21a;
  text-decoration: none;
  flex: 1;
  text-align: left;
  font-weight: 400;
  transition: color 0.2s;
}
.related-list li a:hover {
  color: var(--gronze-color-title-header-lin);
  text-decoration: underline;
}
.related-type {
  color: #a18c4b;
  font-size: 1rem;
  margin-left: 18px;
  min-width: 70px;
  text-align: right;
}
.related-more-btn {
  margin-top: 18px;
  padding: 10px 38px;
  border: 1.5px solid #21b21a;
  border-radius: 22px;
  background: #fff;
  color: #21b21a;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.related-more-btn:hover {
  background: #21b21a;
  color: #fff;
}


@media (max-width: 700px) {
  .md3-localidades-row {
    gap: 8px 8px;
    padding: 0 2vw;
  }
  .md3-localidades-row md-filled-button {
    font-size: 0.98rem;
    padding: 8px 10px;
    min-width: 90px;
  }
}

.related-more-btn {
  margin: 18px auto 0 auto;
  padding: 10px 38px;
  border: 1.5px solid #21b21a;
  border-radius: 22px;
  background: #fff;
  color: #21b21a;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-items: center;
  display: block;  
  justify-content: center; 
}
.etapas-group {
  margin-bottom: 32px;
}

.etapas-group h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #000000;
  font-weight: 600;
}

.etapas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 900px) {
  .etapas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .etapas-grid {
    grid-template-columns: 1fr;
  }
}

.etapa-card {
  background: #ffffff;
  border-radius: 18px;
  border: none;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13), 0 2px 16px 0 #00000022;
  padding: 22px 28px 18px 28px;
  min-width: 210px;
  max-width: 260px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border 0.2s;
}

.etapa-card:hover {
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.22), 0 4px 24px 0 #00000033;
}

.etapa-title {
  font-size: 0.98rem;
  color: #000000;
  font-weight: 500;
  margin-bottom: 2px;
}

.etapa-nombre {
  font-size: 1.08rem;
  color: #21b21a;
  font-weight: 600;
  margin-bottom: 10px;
}

.etapa-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto; 
  width: 100%;
  justify-content: space-between;
}

.etapa-km {
  font-size: 1rem;
  color: #000000;
  font-weight: 500;
}

.etapa-dificultad {
  align-self: flex-end; 
}

.etapa-dificultad .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 2px;
  background: #ccc;
}

.etapa-dificultad .dot.red {
  background: #e13e3e;
}

.etapa-dificultad .dot.grey {
  background: #bbb;
}

.md3-localidades-row md-filled-button,
.md3-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0 28px;
  height: 44px;
  font-size: 1.08rem;
  font-weight: 500;
  border-radius: 22px;
  background: #ffffff;
  color: rgb(0, 0, 0);
  cursor: pointer;
  box-shadow: 0 2px 8px #00000011;
  transition: 
    background 0.18s, 
    color 0.18s, 
    border-color 0.18s, 
    box-shadow 0.18s;
  outline: none;
  margin: 4px 2px;
  text-align: center;
}



.fork-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  font-family: sans-serif;
  position: relative;
}

.branch-title {
  position: absolute;
  background: white;
  padding: 16px 32px;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid #cce4f6;
  border-radius: 10px;
  margin-bottom: 60px;
}

.fork-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 32px;
}

.fork-column {
  flex: 1;
  position: relative;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.fork-box {
  background: #d2efff;
  padding: 15px 40px;
  font-size: 20px;
  border-radius: 10px;
  margin-top: -31px;
  z-index: 2; 
  display: initial;
  opacity: 1;
  position: relative; 
}

.fork-column-2 { border-top: 3px solid #cce4f6; border-left: 3px solid #cce4f6; border-radius: 20px;}
.fork-column-3 { border-top: 3px solid #cce4f6; border-right: 3px solid #cce4f6; border-radius: 20px; }



.line-left-top,
.line-right-top {
  width: 150px;
  height: 60px;
  position: absolute;
  top: -90px;
  border: 3px solid #cce4f6;
  background: transparent;
  border-bottom: none;
  z-index: 1;
}


.fork-two-columns { width: 50%; text-align: center;}



.fork-content-two-branch {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.fork-two-columns {
  flex: 1;
  min-width: 300px;
  display: initial;
  flex-direction: column;
  gap: 16px;
}


.etapas-fork {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.etapa-card-fork {
  background: #ffffff;
  border-radius: 18px;
  border: none;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13), 0 2px 16px 0 #00000022;
  padding: 18px 24px 14px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border 0.2s;
  text-align: left;
}

.etapa-card-fork:hover {
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.22), 0 4px 24px 0 #00000033;
}

.etapa-title {
  font-size: 0.98rem;
  color: #000000;
  font-weight: 500;
  margin-bottom: 2px;
}

.etapa-nombre {
  font-size: 1.08rem;
  color: #21b21a;
  font-weight: 600;
  margin-bottom: 10px;
}

.etapa-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  justify-content: space-between;
}

.etapa-km {
  font-size: 1rem;
  color: #222;
  font-weight: 500;
}

.etapa-dificultad {
  display: flex;
  align-items: center;
}

.etapa-dificultad .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 2px;
  background: #ccc;
}

.etapa-dificultad .dot.red {
  background: #e13e3e;
}

.etapa-dificultad .dot.grey {
  background: #bbb;
}

/* Responsive */
@media (max-width: 800px) {
  .fork-content-two-branch {
    flex-direction: column;
  }
}

.info-cam-fra {
  display: inline-block;
  padding: 30px 10px !important;
  border: 3px solid #0036c0; 
  border-radius: 12px;
  color: #000000;
  font-family:  sans-serif;
  font-size: 16px;
  text-align: center;
  background-color: #ffffff; 
  margin-top: 30px;
  margin-bottom: 30px;
}


.fork-content-two-branch-2 {
  display: flex;
  gap: 30px; 
}

.etapa-card-fork-box {
  margin: 30px auto 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 16px 18px;
  width: 100%;
  max-width: 180px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
  text-align: center;
}


.etapa-card-fork-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.etapa-title {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 500;
  margin-bottom: 2px;
}

.etapa-nombre {
  font-size: 1rem;
  color: #21b21a;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.etapa-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.9rem;
}

.etapa-km {
  color: #444;
  font-style: italic;
}

.etapa-dificultad .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 2px;
  background: #ccc;
}

.etapa-dificultad .dot.red {
  background: #e13e3e;
}

.etapa-dificultad .dot.grey {
  background: #bbb;
}
.fork-column-2-sub { border-top: 3px solid #cce4f6; border-left: 3px solid #cce4f6; border-radius: 20px; align-items: center;  }
.fork-column-3-sub { border-top: 3px solid #cce4f6; border-right: 3px solid #cce4f6; border-radius: 20px; align-items: center;}


