[x-cloak] {
    display: none !important;
}

.lobster-regular {
  font-family: "Lobster", sans-serif;
  font-style: normal;
}

:root {
    --primary-color: #8B5E3C;
    --secondary-color: #F4A261;
    --accent-color: #DAB89B;
    --highlight-color: #F5EBDD;
    --background-color: #FAF6F0;
    --text-color: #6c757d;
    --error-color: #c62828;
}

/* Estilos generales del formulario */
form p,
label {
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

form ul {
    list-style: none;
    margin: 0;
    padding: 8px;
    text-align: left;
}

form ul li {
    padding: 8px;
    font-size: 0.75rem;
    color: var(--text-color);
    border-bottom: 1px solid #dee2e6;
}

/* Ajuste para los errores de formulario en Django */
ul.errorlist {
    background: #ffebee;
    border: 1px solid #e57373;
    border-radius: 6px;
}

ul.errorlist li {
    font-weight: 600;
    padding: 0;
    border-bottom: none;
}

input[type=checkbox] {
    transform: scale(1.5);
    margin: 0 0 0 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s ease-in-out;
    font-size: 0.85rem !important;
}

/* Botones allauth */
.account button,
input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0151a7);
    color: white;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.account button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}

header {
    background-color: #8B5E3C;
    height: 100px;
}

header nav ul li a {
    display: flex;
    align-items: center;
    padding: 0 0.8rem 0 0.8rem;
    height: 3rem;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease-in-out;
}

header nav ul li a:hover {
    background-color: var(--secondary-color);
}

h1, h2, h3, h4, h5 {
    font-family: 'Lobster';
    font-weight: 600;
}

h1, h2, h3 {
    color: var(--primary-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-color);
    font-weight: normal;
}

.dropdown-menu-custom {
    min-width: 180px;
    background-color: #fff;
    border-radius: 0.5rem;
}

.dropdown-menu-custom li a {
    color: #333;
    padding: 0.6rem 1rem;
}

.dropdown-menu-custom li a:hover {
    background-color: #f1f1f1;
}

.hero {
    background-color: var(--accent-color);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff !important;
}

.pet-card {
    background-color: var(--highlight-color);
    border: none;
    height: 100%;
}

.pet-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.pet-detail-img {
    max-height: 550px;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* Estilos comunes a todos los botones personalizados */
.btn-primary,
.btn-secondary,
.btn-light {
    border-color: var(--primary-color) !important;
}

/* Botón primario */
.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Botón secundario */
.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn.show {
    background-color: var(--primary-color) !important;
}

/* Botón claro */
.btn-light {
    background-color: var(--highlight-color);
}

.btn-light:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

@media (max-width: 540px) {
    .nav-mobile-position {
        background-color: rgb(139, 94, 60);
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 2;
    }

    .title-logo-mobile {
        padding: 1.5rem;
        position: relative;
        z-index: 3;
    }

    .card-perfil-mobile {
        width: 100%;
    }
}

.card-perfil {
    min-width: 65%;
}

.img-perfil {
    width: 180px; 
    height: 180px; 
    object-fit: cover;
}

.img-perfil-data {
    width: auto;
    height: 25px;
    object-fit: cover;
    opacity: 0.5;
}

.card-form-perfil {
    min-width: 75%;
}

.rank1 {
    width: 25rem; 
    height: 35rem;
}

.rank1 img {
    height: 75%;
}

.rank2_3 {
    width: 20rem; 
    height: 30rem;
}

.rank2_3 img {
    height: 70%;
}

.card_ranking {
    background-color: var(--highlight-color);
    border: none;
    height: 100%;
    max-width: 600px; 
    border-radius: 1rem;
}

.card_ranking img {
    object-fit: cover; 
    height: 450px;
    width: 100%;
}

.a_ranking {
    text-decoration: none;
    color: var(--primary-color);
}

.active>.page-link, .page-link.active {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);

}

.page-link {
    color: var(--primary-color);
}

.privacidad h2, h4 {
    font-family: 'Poppins', sans-serif;
    color: #333
}