html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* IDENTIDAD VISUAL MR. TOBIAS */

:root {
    --tobias-brown: #6B4935;
    --tobias-dark: #493326;
    --tobias-orange: #D99A62;
    --tobias-cream: #F7F1E8;
    --tobias-light: #FFFDF9;
    --tobias-gray: #806D5D;
}

body {
    background-color: var(--tobias-cream);
    color: var(--tobias-dark);
    font-family: 'Segoe UI', sans-serif;
}

.tobias-navbar {
    background-color: var(--tobias-light);
    padding: 16px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.tobias-brand {
    color: var(--tobias-brown);
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
}

    .tobias-brand:hover {
        color: var(--tobias-orange);
    }

.tobias-navbar .nav-link {
    color: var(--tobias-dark);
    font-weight: 600;
    margin: 0 8px;
}

    .tobias-navbar .nav-link:hover {
        color: var(--tobias-orange);
    }

.tobias-container {
    padding-top: 35px;
    padding-bottom: 50px;
    min-height: 75vh;
}

.tobias-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--tobias-dark);
}

.tobias-subtitle {
    color: var(--tobias-gray);
}

.tobias-card {
    background: white;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    transition: transform .2s ease;
    height: 100%;
}

    .tobias-card:hover {
        transform: translateY(-5px);
    }

    .tobias-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.tobias-card-body {
    padding: 20px;
}

.tobias-btn {
    background-color: var(--tobias-brown);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

    .tobias-btn:hover {
        background-color: var(--tobias-dark);
        color: white;
    }

.tobias-btn-secondary {
    background: #EADCCB;
    color: var(--tobias-dark);
    border-radius: 10px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
}

.tobias-form {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

    .tobias-form .form-control,
    .tobias-form .form-select {
        border-radius: 10px;
        padding: 11px;
    }

.tobias-footer {
    background: var(--tobias-dark);
    color: white;
    padding: 25px;
    text-align: center;
}

.tobias-pet-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
}


/* CONTENEDOR DE INICIO DE SESIÓN */

.login-container {
    width: 100%;
    max-width: 440px;
    margin: 1rem auto;
    padding: 1.75rem;
    border: 1px solid var(--color-borde, #dee2e6);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

    .login-container h1 {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
    }

    .login-container p {
        color: #586579;
        margin-bottom: 1.5rem;
    }

    .login-container .form-control {
        padding: 0.7rem;
        border-radius: 0.5rem;
    }

    .login-container .btn {
        padding: 0.7rem;
        border-radius: 0.5rem;
        font-weight: 600;
    }

    .login-container a {
        text-decoration: none;
    }

        .login-container a:hover {
            text-decoration: underline;
        }



/* PANTALLA DE BIENVENIDA */

.welcome-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.welcome-content {
    width: 100%;
    max-width: 650px;
    text-align: center;
    padding: 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.welcome-icon {
    font-size: 55px;
    margin-bottom: 10px;
}

.welcome-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
}

.welcome-subtitle {
    color: #687386;
    font-size: 1rem;
    margin-bottom: 25px;
}

.welcome-image img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
}

.welcome-content h3 {
    font-weight: 600;
    color: #333333;
}

.welcome-description {
    color: #687386;
    margin: 12px 0 25px;
}

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-register,
.btn-login {
    min-width: 180px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-register {
    background: #e89b58;
    color: white;
}

    .btn-register:hover {
        background: #d7833c;
        color: white;
    }

.btn-login {
    background: #ffffff;
    color: #e89b58;
    border: 2px solid #e89b58;
}

    .btn-login:hover {
        background: #e89b58;
        color: white;
    }

.welcome-footer {
    margin-top: 25px;
    margin-bottom: 0;
    color: #89909b;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .welcome-content {
        padding: 25px 18px;
    }

        .welcome-content h1 {
            font-size: 1.6rem;
        }

    .welcome-buttons {
        flex-direction: column;
    }

    .btn-register,
    .btn-login {
        width: 100%;
    }
}


/* PORTADA PRINCIPAL MR. TOBIAS */

.home-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;
    padding: 45px;
    background: var(--tobias-light);
    border-radius: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    margin-bottom: 55px;
}

.home-hero-content {
    padding: 15px;
}

.home-tag {
    display: inline-block;
    background: #F1E3D3;
    color: var(--tobias-brown);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

.home-hero h1 {
    color: var(--tobias-dark);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.home-hero p {
    color: var(--tobias-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.home-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 18px;
}

.home-intro {
    text-align: center;
    margin-bottom: 30px;
}

    .home-intro .tobias-heading {
        font-size: 1.9rem;
    }

.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 55px;
}

.home-category {
    background: white;
    padding: 28px 24px;
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(0,0,0,.05);
    transition: transform .2s ease;
}

    .home-category:hover {
        transform: translateY(-4px);
    }

.home-category-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.home-category h3 {
    color: var(--tobias-dark);
    font-weight: 750;
}

.home-category p {
    color: var(--tobias-gray);
    line-height: 1.6;
    min-height: 75px;
}

.home-category a {
    color: var(--tobias-brown);
    font-weight: 700;
    text-decoration: none;
}

    .home-category a:hover {
        color: var(--tobias-orange);
    }

.home-message {
    background: #EADCCB;
    text-align: center;
    padding: 35px 20px;
    border-radius: 18px;
    margin-bottom: 25px;
}

    .home-message h2 {
        color: var(--tobias-dark);
        font-weight: 750;
    }

    .home-message p {
        color: var(--tobias-gray);
        margin: 10px 0 0;
    }

@media (max-width: 768px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: 25px;
    }

        .home-hero h1 {
            font-size: 2rem;
        }

    .home-hero-image img {
        height: 250px;
    }

    .home-categories {
        grid-template-columns: 1fr;
    }

    .home-category p {
        min-height: auto;
    }
}


/* MEJORAS GENERALES */

.tobias-heading {
    font-size: 30px;
    margin-bottom: 10px;
}

.tobias-subtitle {
    font-size: 15px;
    line-height: 1.6;
}

.tobias-card {
    border: 1px solid #eee5dc;
}

    .tobias-card img {
        transition: transform 0.3s ease;
    }

    .tobias-card:hover img {
        transform: scale(1.02);
    }

.tobias-card-body h4 {
    color: var(--tobias-dark);
    font-weight: 700;
}

.tobias-card-body p {
    color: var(--tobias-gray);
    line-height: 1.5;
}

.tobias-card .btn {
    border-radius: 9px;
    font-weight: 600;
    padding: 9px 12px;
}

.tobias-card .btn-outline-danger {
    border-color: #c96d6d;
    color: #b84f4f;
}

    .tobias-card .btn-outline-danger:hover {
        background-color: #b84f4f;
        color: white;
    }

.alert {
    border-radius: 10px;
    margin-bottom: 22px;
}

.tobias-form {
    max-width: 750px;
    margin: 0 auto;
}

    .tobias-form h1,
    .tobias-form h2 {
        color: var(--tobias-dark);
    }

    .tobias-form .form-control:focus,
    .tobias-form .form-select:focus {
        border-color: var(--tobias-orange);
        box-shadow: 0 0 0 0.2rem rgba(217, 154, 98, 0.2);
    }

@media (max-width: 576px) {
    .tobias-heading {
        font-size: 25px;
    }

    .tobias-container {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .tobias-card-body {
        padding: 15px;
    }

    .tobias-btn {
        width: 100%;
        text-align: center;
    }
}
