/**********CONFIGURACION DE LA BARRA************/
.nav-link.btn.btn-primary {
    color: #ffffff;
}

.nav-link.btn.btn-primary:hover {
    background-color: #008000;
    /* Fondo verde */
    color: #ffffff;
    /* Texto en color blanco */
}

.navbar-brand img {
    max-width: 130px;
    /* Ancho máximo del logo */
    height: 50px;
}

#loginItem .nav-link {
    color: #ffffff !important;
  }
body {
    background-image: url('https://definicion.de/wp-content/uploads/2009/02/ruta-1.jpg');
    /* Reemplaza 'ruta_del_fondo.jpg' por la ruta de tu imagen de fondo */
    background-attachment: fixed;
    /* Fondo fijo mientras se desplaza */
    background-size: cover;
    /* Cubrir todo el área */
    background-repeat: no-repeat;
    /* No repetir el fondo */
    background-position: center;
    /* Centrar el fondo */
}

.navbar-transparent-dark {
    background-color: rgba(0, 0, 0, 0.651) !important;
}

@media (max-width: 1080px) {
    .navbar-toggler-icon {
        filter: invert(100%);
        /* Invertir el color del ícono del menu desplegable para celulares a blanco */
    }

    .navbar-nav .nav-link {
        color: #ffffff !important;
        /* Cambiar el color del texto del menú a blanco */
    }
}

/* Estado activo (botón fijo de la página actual) */
.nav-link.btn.btn-primary.active {
    background-color: #008000; /* Igual que hover */
    color: #ffffff;
}

/******************CONFIGURACION DEL PIE DE PAGINA*************/
/* Flex para sticky footer */
body.d-flex {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex-grow-1 {
    flex: 1 0 auto;
}

/* Botones sociales */
.social-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

    .social-btn:hover {
        transform: scale(1.2);
    }


/******************CONFIGURACION DEL INDEX*************/
.carousel-caption h5,
.carousel-caption p {
    text-shadow: 2px 2px 4px #000000;
    /* Contorno del texto */
}

/* Estilo personalizado para el carrusel */
#carouselExampleCaptions {
    max-width: 1000px;
    /* Máximo ancho del carrusel */
    margin: 0 auto;
    /* Centrar el carrusel */
    margin-top: 80px;
}

.carousel-item img {
    height: 450px;
    /* Altura de imagen definida */
    width: auto;
    /* Ancho automático para mantener la proporción de las fotos */
    object-fit: cover;
    /* Ajustar la imagen cubriendo el contenedor */
}

.card {
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro con opacidad del 50% aprox */
    color: #ffffff;
    /* Texto en color blanco */
    border: none;
    /* Sin borde */
}

.card-img-top {
    border-bottom: 1px solid #ffffff;
    /* Borde inferior blanco */
}

/* Estilo personalizado para el título */
.card-title {
    font-weight: bold;
    /* Titulos en negrita */
}

.card-text {
    color: #ffffff;
    /* Texto en color blanco para las cards */
}


body.index {
    background: url('https://assets.weforum.org/article/image/Y_gEbktKbfcoPuCKdj4xXjJ1AX75XgEpkA-YAxE2aEc.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/******************CONFIGURACION DE BUSCAR*************/
/* Fondo semitransparente usado en formularios como buscar.html y demás form */

  .formulario-transparente {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  }

body.buscar {
    background: url('https://definicion.de/wp-content/uploads/2009/02/ruta-1.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

body.donar,
body.buscar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    body.donar .container,
    body.buscar .container {
        flex: 1 0 auto; /* El contenido ocupa el espacio disponible */
    }

footer {
    margin-top: auto;
}

/******************CONFIGURACION DE CREAR*************/

body.crear {
    background: url('https://www.todoriesgo.com.ar/wp-content/uploads/2024/11/rutas-argentinas-patagonia-argentina.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/* ---------------- ESTILOS EXCLUSIVOS PARA detalle.html ---------------- */

body.detalle-viaje {
    background-color: #121212 !important;
    color: white;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-image: none !important; /* Desactiva el fondo de imagen global */
  }
  
  body.detalle-viaje label,
  body.detalle-viaje h2,
  body.detalle-viaje h3,
  body.detalle-viaje p {
    color: white;
  }
  
  body.detalle-viaje .form-control,
  body.detalle-viaje textarea.form-control {
    background-color: #222;
    color: white;
    border: 1px solid #555;
    border-radius: 5px;
  }
  
  body.detalle-viaje .form-control:focus,
  body.detalle-viaje textarea.form-control:focus {
    background-color: #333;
    color: white;
    border-color: #0f0;
    outline: none;
  }
  
  body.detalle-viaje .btn {
    color: white;
    border-radius: 5px;
  }
  
  body.detalle-viaje .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
  }
  
  body.detalle-viaje .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
  
  body.detalle-viaje .rating {
    direction: rtl;
    font-size: 2rem;
    unicode-bidi: bidi-override;
    display: inline-flex;
    gap: 5px;
  }
  
  body.detalle-viaje .rating input {
    display: none;
  }
  
  body.detalle-viaje .rating label {
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  body.detalle-viaje .rating input:checked ~ label,
  body.detalle-viaje .rating label:hover,
  body.detalle-viaje .rating label:hover ~ label {
    color: gold;
  }

  body.detalle-viaje .btn-regresar {
        position: fixed;
        top: 80px; /* debajo de la navbar */
        right: 20px;
        background-color: #FFD700; /* Amarillo dorado */
        border: none;
        color: #fff !important; /* Texto blanco */
        font-weight: bold;
        z-index: 1050;
    }

 body.detalle-viaje .btn-regresar:hover {
            background-color: #e6c200; /* Amarillo un poco más oscuro al pasar */
            color: #fff !important;
        }

  /* Estilos específicos para la página Donar */

body.donar {
    background: url('https://pbs.twimg.com/media/Gdk6HUyXEAAoufn?format=jpg&name=4096x4096') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

body.donar {
    padding: 20px;
    font-family: Arial, sans-serif;
  }
  
  body.donar label,
  body.donar h2,
  body.donar h3,
  body.donar p {
    color: white;
  }
  
  body.donar .form-control,
  body.donar textarea.form-control {
    background-color: #222;
    color: white;
    border: 1px solid #555;
    border-radius: 5px;
  }
  
  body.donar .form-control:focus,
  body.donar textarea.form-control:focus {
    background-color: #333;
    color: white;
    border-color: #0f0;
    outline: none;
  }
  
body.donar .card .btn {
  color: white;
  border-radius: 5px;
}

body.donar .card .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

body.donar .card .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Sticky footer para todas las páginas */
body.donar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0; /* Quitamos padding que empuja footer */
    margin: 0;
}

/* Contenedor principal que crece */
.main-content {
    flex: 1 0 auto;
    padding: 20px; /* si querés espacio interno */
}


  /* Diseños Login y registro */
  .form-card-dark {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2rem;
    border-radius: 15px;
  }
  
  .form-card-dark .form-label {
    color: white;
  }
  
  .form-card-dark .form-control {
    background-color: white;
    color: black;
    border-radius: 8px;
  }
  
  .nav-tabs .nav-link {
    background-color: transparent;
    border: 1px solid #ffffff55;
    color: white;
  }
  
  .nav-tabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd #0d6efd #fff;
  }


  /*Diseño para perfil.html*/

body.perfil {
    background: url('https://s3.amazonaws.com/arc-wordpress-client-uploads/infobae-wp/wp-content/uploads/2017/11/22164322/Ruta-Norte-argentino-1920.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}
  
  .form-control[readonly] {
    background-color: #444;
    color: white;
    border: none;
  }
  
  .form-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
  }
  
  label,
  h2,
  h3,
  p {
    color: white;
  }
  
  textarea.form-control {
    background-color: #222;
    color: white;
    border: 1px solid #555;
  }
  
  textarea.form-control:focus {
    background-color: #333;
    color: white;
    border-color: #0f0;
    outline: none;
  }
  
  .btn {
    color: white;
  }


/*Diseño para misviajes.html*/

body.misviajes {
    background-image: url('https://www.thegef.org/sites/default/files/styles/banner_image/public/2022-03/forests-1440x655.jpg?h=4e9a1ef8&itok=iluV2kRB');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.flex-grow-1 {
    flex-grow: 1; /* Esto empuja el footer hacia abajo si el contenido no llena la pantalla */
}

.form-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .form-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .form-card h4 {
        color: #ffffff;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 5px;
    }

.list-group-item {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

    .list-group-item:hover {
        background-color: rgba(255,255,255,0.2);
        transform: translateY(-2px);
    }

    .list-group-item strong {
        font-size: 1.05em;
        color: #ffd700;
    }

    .list-group-item div:last-child {
        display: flex;
        gap: 10px;
    }

.btn-primary.btn-sm {
    background-color: #ffc107;
    color: #000;
    border: none;
}

    .btn-primary.btn-sm:hover {
        background-color: #e0a800;
        color: #fff;
    }

.btn-success.btn-sm {
    background-color: #28a745;
    color: #fff;
    border: none;
}

    .btn-success.btn-sm:hover {
        background-color: #218838;
    }

/* Footer */
footer.bg-dark {
    background-color: rgba(0, 0, 0, 0.85) !important;
    color: #ffffff;
}

footer a.social-btn {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    transition: transform 0.2s;
}

    footer a.social-btn:hover {
        transform: scale(1.2);
    }

/* Responsivo para tarjetas en móviles */
@media (max-width: 768px) {
    .form-card {
        padding: 15px;
    }

    .list-group-item div:last-child {
        flex-direction: column;
        gap: 5px;
    }
}