/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    /* Evita el scroll horizontal */
    scroll-behavior: smooth;
    /* Habilita el desplazamiento suave en todo el documento */
}

/*Estilo para el navegador (navbar) */
.navbar {
    background-color: rgba(255, 255, 255, 0);
}

/* Estilos para las secciones de altura completa */
.full-height-section {
    height: 100vh;
    /* Cada sección ocupa toda la altura de la ventana */
    background-color: #343a40;
    /* Color de fondo oscuro por defecto */
    color: white;
    /* Color de texto por defecto */
    background-size: cover;
    background-position: center;
    position: relative;
    /* Necesario para posicionar el botón de desplazamiento */
}

/* Estilos específicos para cada sección si quieres fondos distintos */
.section-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo.jpg');
    /* Fondo de ejemplo */
    background-attachment: fixed;
}

.section-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo_3.png');
    /* Fondo de ejemplo */
    background-attachment: fixed;
}

/* Estilo para el nombre de la aplicación junto al logo */
.app-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

/* Estilo para el logo */
.logo-custom {
    border-radius: 50%;
    /* Si quieres que el logo sea circular */
}

.logo-custom-large {
    width: 150px;
    height: 120px;
}

/* Estilos para los botones principales */
.btn-primary {
    background-color: #219412;
    border-color: #219412;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #217816;
    border-color: #217816;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-outline-light {
    border-color: white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: #343a40;
}

/* Estilos para los íconos de redes sociales */
.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: #219412 !important;
    /* Asegura el color al pasar el mouse */
}

/* Estilos para las cards de consejos */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: bold;
    color: #219412;
}

/* Estilo para el botón de desplazamiento hacia abajo */
.scroll-down-button {
    position: absolute;
    bottom: 20px;
    /* Ajusta la distancia desde abajo */
    right: 20px;
    /* Ajusta la distancia desde la derecha */
    width: 60px;
    /* Tamaño del botón */
    height: 60px;
    border-radius: 50%;
    /* Lo hace circular */
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    /* Indica que es clickeable */
    z-index: 100;
    /* Asegura que esté por encima de otros elementos */
}

.scroll-down-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: #2ad913;
}

.scroll-down-button i {
    color: #2ad913;
    font-size: 24px;
}

/* Estilos para la información de contacto y enlaces legales */
.contact-info p,
.legal-links a {
    font-size: 1.1rem;
    color: white;
}

.legal-links a:hover {
    text-decoration: underline;
    color: #219412;
}

@media (max-width: 480px) {
    .section-1 {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo_4.jpg');
        height: 100vh;
        background-size: 100% 100%;
    }

    .section-2 {
        height: 120vh;
    }

    .section-3 {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo_5.jpg');
        background-size: 100% 100%;
    }
}

/* REGISTRO.HTML */
/* Estilos específicos para la página de registro */
.body-registro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('../img/fondo_6.jpg');
    background-size: 100% 100%;
    background-attachment: fixed;
}

.register-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    color: white;
    position: relative;
    /* Necesario para posicionar el spinner */
}

.register-container h2 {
    margin-bottom: 30px;
    font-weight: bold;
}

.btn-register {
    background-color: #219412;
    border-color: #219412;
    color: white;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: #217816;
    border-color: #217816;
    color: white;
}

.login-link {
    margin-top: 20px;
    text-align: center;
}

.login-link a {
    color: #219412;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Estilos para el spinner y el texto de carga */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* Fondo semitransparente */
    display: flex;
    flex-direction: column;
    /* Para apilar el spinner y el texto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Asegura que esté por encima del contenido */
    border-radius: 10px;
    /* Para que coincida con el contenedor */
}

/* Estilo del formulario de registro */
#registerForm input {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

#registerForm input::placeholder {
    color: #828181;
}

#registerForm input:focus {
    border-color: #219412;
    border-width: 2px;
    border-style: solid;
    box-shadow: none;
}

@media (max-width: 480px) {
    .body-registro {
        background-image: url('../img/fondo_7.png');
    }
}

/* LOGIN.HTML */
/* Estilos específicos para la página de login*/
.body-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('../img/fondo_6.jpg');
    background-size: 100% 100%;
    background-attachment: fixed;
}

.login-container {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    position: relative;
    /* Necesario para posicionar el spinner */
}

.login-container h2 {
    margin-bottom: 30px;
    color: white;
    font-weight: bold;
}

.btn-login {
    background-color: #219412;
    border-color: #219412;
    color: white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #217816;
    border-color: #217816;
    color: white;
}

.register-link {
    margin-top: 20px;
    text-align: center;
}

.register-link a {
    color: #219412;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Estilos para el spinner y el texto de carga (copiados de register.html) */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* Fondo semitransparente */
    display: flex;
    flex-direction: column;
    /* Para apilar el spinner y el texto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Asegura que esté por encima del contenido */
    border-radius: 10px;
    /* Para que coincida con el contenedor */
}

/* Estilo del formulario de login */
#loginForm input {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

#loginForm input::placeholder {
    color: #828181;
}

#loginForm input:focus {
    border-color: #219412;
    border-width: 2px;
    border-style: solid;
    box-shadow: none;
}

@media (max-width: 480px) {
    .body-login {
        background-image: url('../img/fondo_7.png');
    }
}

/* INICIO.PHP */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
}

/* Estilos del Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #2c3e50;
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    /* Z-index un poco menor para que el navbar esté encima */
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #243444;
    border-bottom: 1px solid #3d556e;
    display: flex;
    align-items: center;
}

#sidebar .sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-weight: bold;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #3d556e;
}

#sidebar ul li a {
    padding: 15px;
    font-size: 1.1em;
    display: block;
    color: #d1d8df;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #1c7610;
    text-decoration: none;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #219412;
}

/* Estilos del contenido principal */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    padding-left: 250px;
}

/* Ajustamos el z-index de la navbar para que siempre esté por encima del sidebar */
#content>nav {
    z-index: 1000;
}


.welcome-container {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.user-info-display {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: bold;
    color: #343a40;
}

.user-info-display span,
.user {
    color: #219412;
}

/* Comportamiento del sidebar cuando está oculto (en todos los tamaños) */
#wrapper.wrapper.toggled #sidebar {
    margin-left: -250px;
}

.wrapper.toggled #content {
    padding-left: 0;
}

/* Oculta la barra lateral en móviles por defecto */
@media (max-width: 768px) {
    #sidebar {
        /* Cambiamos el ancho fijo por el ancho de la pantalla */
        min-width: 100vw;
        max-width: 100vw;
        margin-left: -100vw;
        /* El sidebar se esconde completamente */
    }

    #content {
        padding-left: 0;
    }

    #wrapper.wrapper.toggled #sidebar {
        margin-left: 0px;
    }
}

/* PERFIL.PHP */
.body-perfil {
    background-color: #f0f2f5;
    overflow-x: hidden;
}

.profile-header {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: bold;
}

.profile-header p {
    font-size: 1.2rem;
    color: #6c757d;
}

.pet-card {
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;
    width: 280px;
    position: relative;
}

.pet-card:hover {
    transform: translateY(-5px);
}

.pet-status-badge {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 1;
    /* Asegura que el badge esté encima de la imagen */
}

.pet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.spinner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    z-index: 1050;
}

.wrapper.toggled #sidebar {
    margin-left: -250px;
}

.wrapper.toggled #content {
    padding-left: 0;
}

#mascotas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ver-mas-btn {
    color: #219412;
    border-color: #219412;
    transition: all 0.3s ease;
}

.ver-mas-btn:hover {
    background-color: #219412;
    color: white;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lost-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.9em;
}

.lost-link {
    text-decoration: none;
    color: inherit;
}

.btn-clic {
    background-color: #219412;
    color: white;
    transition: all 0.3s ease;
}

.btn-clic:hover {
    background-color: #217816;
    color: white;
}

/* VER_MAS */
/* Estilos específicos para esta página */
.mascota-perfil {
    text-align: center;
    margin-top: 40px;
}

.mascota-perfil img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* Imagen redonda */
    object-fit: cover;
    border: 5px solid #219412;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mascota-perfil h1 {
    margin-top: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40;
}

.datos-container {
    max-width: 700px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.datos-container h4 {
    margin-top: 20px;
    border-bottom: 2px solid #219412;
    padding-bottom: 5px;
    color: #219412;
}

.btn-editar,
.btn-eliminar {
    background-color: #219412;
    color: white;
    transition: all 0.3s ease;
}

.btn-editar:hover {
    background-color: #217816;
    color: white;
}

.btn-eliminar:hover {
    background-color: #217816;
    color: white;
}

/* VER_MAS_MACOTA.PHP */
.titulo-MascotaPerdida {
    color: #219412;
}

.rounded-image {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #219412;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* LOGIN ADMINISTRADOR */
.body-loginAdmin {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url("../img/fondo_6.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.form-signin {
    border-radius: 8px;
    padding: 5px;
}

#adminLoginForm input {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
}

#adminLoginForm input::placeholder {
    color: #828181;
}

#adminLoginForm input:focus {
    border-color: #219412;
    border-width: 2px;
    border-style: solid;
    box-shadow: none;
}

@media (max-width: 480px) {
    .body-loginAdmin {
        background-image: url('../img/fondo_7.png');
    }
}

/* MIMASCOTA.PHP */

.body-miMascota {
    background-image: url('../img/fondo_6.jpg');
    background-size: 100% 100%;
    background-attachment: fixed;
}

.profile-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #219412;
    margin-bottom: 20px;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    margin: 5px;
}

.contact-info .btn {
    min-width: 150px;
}

.card-miMascota{
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid grey;
}

.alerta-miMascota{
    background-color: rgba(220, 20, 60, 0.7);
    color: white;
}

@media (max-width: 480px) {
    .body-miMascota {
        background-image: url('../img/fondo_7.png');
    }
}

.body_quienesSomos{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo_3.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.quienes_somos{
    text-align: justify; /*Alineación del texto*/
    text-indent: 40px; /*Sangría del texto*/
}

@media (max-width: 480px){
   .body_quienesSomos{
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo_4.jpg');
        background-size: 100% 100%;
   }
}