﻿:root {
    --municipal-green: #034199;
    --municipal-blue: #226d8f;
    --municipal-coral: #d86f45;
    --municipal-orange: #FF6A00;
    --municipal-ink: #24323a;
    --municipal-muted: #66757f;
    --municipal-bg: #f7faf9;
}

/* Los campos solo se marcan como inválidos después de la validación JS. */
.user-panel .form-control,
.user-panel .form-select,
form[method="get"] .form-control,
form[method="get"] .form-select { border-color: #b8c2cc; }
.user-panel .form-control:focus,
.user-panel .form-select:focus,
form[method="get"] .form-control:focus,
form[method="get"] .form-select:focus { border-color: #2b6edc; box-shadow: 0 0 0 .2rem rgba(43,110,220,.15); }
.user-panel .form-control.is-invalid,
.user-panel .form-select.is-invalid,
.user-panel.was-validated .form-control:invalid,
.user-panel.was-validated .form-select:invalid { border-color: #dc3545; }

html {
    scroll-behavior: smooth;
}

body {
    color: var(--municipal-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--municipal-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--municipal-orange);
    text-decoration: none;
}

h3 {
    font-size: 1.5em;
}

.skip-link {
    background: var(--municipal-ink);
    color: #fff;
    left: 1rem;
    padding: .75rem 1rem;
    position: absolute;
    top: -4rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 1rem;
}

.topbar {
    background: var(--municipal-green);
    color: #fff;
    font-size: .92rem;
    padding: .45rem 0;
}

.topbar a {
    color: inherit;
}

.topbar a:hover,
.topbar a:focus {
    color: #fff;
    text-decoration: underline;
}

.main-nav {
    background: #fff;
    border-bottom: 1px solid #e4ece8;
    box-shadow: 0 8px 22px rgba(34, 46, 54, .06);
}

.brand-logo {
    height: 66px;
    margin-right: .65rem;
    width: auto;
}

.navbar-brand {
    align-items: center;
    color: var(--municipal-ink);
    display: flex;
    font-weight: 700;
    max-width: 330px;
    white-space: normal;
}

.navbar-brand span {
    display: none;
}

.navbar-light .navbar-nav .nav-link {
    border-radius: 6px;
    color: var(--municipal-ink);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    margin: .15rem;
    padding: .55rem .7rem;
    text-transform: none;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    background: transparent;
    color: var(--municipal-orange);
}

.main-nav .nav-item a::before {
    pointer-events: none;
}

.nav-item-submenu {
    position: relative;
}

.submenu-servicios {
    background: #fff;
    border: 1px solid #dfe9e4;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(33, 49, 60, .14);
    display: none;
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 230px;
    padding: .45rem;
    position: absolute;
    top: 100%;
    z-index: 1000;
}

.submenu-usuario {
    left: auto;
    right: 0;
}

.nav-item-submenu:hover .submenu-servicios,
.nav-item-submenu:focus-within .submenu-servicios {
    display: block;
}

.submenu-servicios a {
    border-radius: 6px;
    color: var(--municipal-ink);
    display: block;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    padding: .65rem .8rem;
    text-transform: none;
}

.submenu-servicios a:hover,
.submenu-servicios a:focus,
.submenu-servicios a.active {
    background: transparent;
    color: var(--municipal-orange);
    text-decoration: none;
}

.home-hero {
    align-items: center;
    display: flex;
    min-height: clamp(500px, 66vh, 720px);
    overflow: hidden;
    position: relative;
}

.hero-media {
    background: url("../img/slider/slide1-parallax.jfif") center 42% / cover no-repeat;
    inset: 0;
    position: absolute;
    transform: scale(1.01);
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(3, 65, 153, .88) 0%, rgba(3, 65, 153, .68) 42%, rgba(3, 65, 153, .16) 78%);
    inset: 0;
    position: absolute;
}

.hero-content {
    padding-bottom: 4rem;
    padding-top: 4rem;
    position: relative;
    z-index: 1;
}

.hero-copy {
    color: #fff;
    max-width: 680px;
}

.hero-kicker {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: .9rem;
    text-transform: none;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(2.35rem, 4.7vw, 4.7rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.1rem;
}

.hero-copy p {
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.btn-municipal,
.btn-outline-municipal,
.btn-outline-hero {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    min-width: 160px;
    padding: .72rem 1.1rem;
    text-align: center;
    vertical-align: middle;
}

.btn-outline-hero {
    background: rgba(255, 255, 255, .94);
    border: 2px solid #fff;
    border-radius: 25px;
    color: var(--municipal-blue);
}

.btn-outline-hero:hover,
.btn-outline-hero:focus {
    background: #fff;
    color: var(--municipal-orange);
}

.page-hero {
    background: linear-gradient(90deg, rgba(3,65,153,.95), rgba(34,109,143,.9)), url("../img/jumbotron.jfif") center/cover;
    color: #fff;
    padding: 3rem 0;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.45rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.page-hero p {
    font-size: 1.12rem;
    margin: 0;
    max-width: 760px;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 1rem;
    padding: 0;
}

.breadcrumb a,
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
}

.section {
    padding: 4rem 0;
}

.section-soft {
    background: var(--municipal-bg);
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-title p {
    color: var(--municipal-muted);
    max-width: 720px;
}

.section-kicker {
    color: var(--municipal-orange);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: .35rem;
}

.home-adoption {
    background: linear-gradient(rgba(23, 30, 34, .78), rgba(23, 30, 34, .82)), url("../img/adoption/adoption-home.jfif") center / cover no-repeat;
    color: #fff;
    position: relative;
}

.adoption-heading {
    margin: 0 auto 2.2rem;
    max-width: 820px;
    text-align: center;
}

.adoption-heading h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: .7rem;

}

.adoption-heading p:last-child {
    color: rgba(255, 255, 255, .9);
    margin: 0 auto;
    max-width: 700px;
}

.adoption-slider {
    padding: 0 3.2rem 2rem;
    position: relative;
}

.adoption-track {
    min-height: 310px;
    position: relative;
}

.adoption-slide {
    display: none;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adoption-slide.active {
    display: grid;
}

.adoption-card-featured {
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
    color: var(--municipal-ink);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 298px;
    padding: 1.35rem;
}

.adoption-card-featured img {
    aspect-ratio: 1 / 1;
    border-bottom: 4px solid var(--municipal-green);
    border-radius: 4px;
    height: 160px;
    object-fit: cover;
    width: 160px;
}

.adoption-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adoption-info h3 {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: .8rem;
}

.adoption-info dl {
    margin-bottom: 1rem;
}

.adoption-info dl div {
    border-bottom: 1px dashed #cfd9de;
    display: flex;
    gap: .35rem;
    padding: .28rem 0;
}

.adoption-info dt {
    font-weight: 800;
}

.adoption-info dd {
    margin: 0;
}

.adoption-badges {
    background: #f7fafc;
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: auto 0 1rem;
    padding: .9rem .75rem;
    text-align: center;
}

.adoption-badges li {
    align-items: center;
    color: var(--municipal-ink);
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    justify-content: flex-start;
    line-height: 1.25;
    min-height: 54px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.adoption-badges i {
    color: var(--municipal-green);
    display: inline-flex;
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: .35rem;
    min-height: 20px;
}

.adoption-card-featured .btn-municipal {
    align-self: flex-start;
}

.adoption-intro {
    align-items: center;
    display: grid;
    gap: 2.4rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
    margin-bottom: 2.4rem;
}

.adoption-intro-copy h2 {
    color: var(--municipal-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.35rem;
}

.adoption-intro-copy p {
    color: var(--municipal-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.adoption-intro-copy a {
    color: #0078d4;
    font-weight: 800;
}

.adoption-ready-card {
    background: #f3f1f1;
    border-radius: 12px;
    padding: 1.5rem 1.55rem;
}

.adoption-ready-card h3 {
    color: var(--municipal-ink);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
}

.adoption-ready-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.adoption-ready-card li {
    color: #5c6570;
    font-weight: 700;
    line-height: 1.65;
    margin-bottom: .85rem;
    padding-left: 1.45rem;
    position: relative;
}

.adoption-ready-card li::before {
    color: #d91b63;
    content: "\f14a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    left: 0;
    position: absolute;
    top: .05rem;
}

.home-services {
    background: #f7f7f7;
    overflow: hidden;
    padding-bottom: 6.8rem;
    position: relative;
}

.home-services::after {
    background: url("../img/patterns/pattern1.png") center bottom repeat-x;
    background-size: auto 80px;
    bottom: 0;
    content: "";
    height: 86px;
    left: 0;
    opacity: .55;
    position: absolute;
    right: 0;
}

.home-services > .container {
    position: relative;
    z-index: 1;
}

.home-services-heading {
    margin-bottom: 2.4rem;
    text-align: center;
}

.home-services-heading h2 {
    color: var(--municipal-ink);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin: 0;
}

.service-carousel {
    padding: 0 4rem;
    position: relative;
}

.service-carousel-track {
    min-height: 260px;
    position: relative;
}

.service-carousel-slide {
    display: none;
    gap: 2.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-carousel-slide.active {
    display: grid;
}

.service-carousel-slide:nth-child(2) {
    grid-template-columns: repeat(2, minmax(180px, 240px));
    justify-content: center;
}

.service-carousel-card {
    color: #6a7077;
    text-align: center;
}

.service-carousel-card i {
    color: var(--municipal-orange);
    display: inline-flex;
    font-size: 2.7rem;
    line-height: 1;
    margin-bottom: 1.6rem;
    min-height: 48px;
}

.service-carousel-card h3 {
    color: var(--municipal-ink);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.service-carousel-card p {
    line-height: 1.55;
    margin: 0 auto 1.3rem;
    max-width: 210px;
}

.service-carousel-card a {
    border-bottom: 1px solid #0078d4;
    border-top: 1px solid #0078d4;
    color: #0078d4;
    display: inline-flex;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: .92rem;
    font-weight: 800;
    gap: .4rem;
    padding: .45rem 1.1rem;
}

.service-carousel-card a::before {
    content: "\00ab";
}

.service-carousel-card a:hover,
.service-carousel-card a:focus {
    border-color: var(--municipal-orange);
    color: var(--municipal-orange);
}

.service-carousel-arrow {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--municipal-orange);
    display: inline-flex;
    font-size: 1.35rem;
    height: 44px;
    justify-content: center;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    z-index: 2;
}

.service-carousel-arrow:hover,
.service-carousel-arrow:focus {
    color: var(--municipal-green);
}

.service-carousel-prev {
    left: .5rem;
}

.service-carousel-next {
    right: .5rem;
}

.service-carousel-dots {
    display: flex;
    gap: .45rem;
    justify-content: center;
    margin-top: 1.8rem;
}

.service-carousel-dots button {
    background: #fff;
    border: 1px solid #d1d1d1;
    cursor: pointer;
    height: 8px;
    padding: 0;
    width: 8px;
}

.service-carousel-dots button.active {
    background: var(--municipal-orange);
    border-color: var(--municipal-orange);
}

.adoption-faq-section h2 {
    color: var(--municipal-ink);
    margin-bottom: .75rem;
}

.faq-divider {
    background: #d6dce1;
    height: 1px;
    margin-bottom: 1.5rem;
    max-width: 88px;
}

.adoption-faq {
    margin-left: 0;
    overflow: visible;
    padding-left: 4.3rem;
    position: relative;
}

.adoption-faq::before {
    background: #ff6a00;
    bottom: 0;
    content: "";
    left: 19px;
    position: absolute;
    top: 18px;
    width: 5px;
}

.adoption-faq .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d9e0e5;
    border-radius: 0;
    overflow: visible;
    position: relative;
}

.adoption-faq .accordion-item::before {
    align-items: center;
    background: #ff6a00;
    border-radius: 50%;
    color: #fff;
    content: "+";
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    left: -4.05rem;
    line-height: 1;
    position: absolute;
    top: .7rem;
    width: 36px;
    z-index: 2;
}

.adoption-faq .accordion-item:has(.accordion-button:not(.collapsed))::before {
    content: "-";
}

.adoption-faq .accordion-button {
    background: transparent;
    box-shadow: none;
    color: var(--municipal-green);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 0;
    text-align: left;
    white-space: normal;
}

.adoption-faq .accordion-button::after {
    display: none;
}

.adoption-faq .accordion-button:hover,
.adoption-faq .accordion-button:focus {
    color: var(--municipal-orange);
}

.adoption-faq .accordion-body {
    color: var(--municipal-muted);
    padding: .3rem 1rem 1.2rem;
}

.adoption-important-alert {
    background: #f8d7da;
    border: 1px solid #f1b8be;
    border-radius: 4px;
    color: #7b1f27;
    margin-top: 2.6rem;
    padding: 1.25rem 1.35rem;
}

.adoption-important-alert h3 {
    color: #241b1f;
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

.adoption-important-alert p {
    margin-bottom: 0;
}

.adoption-arrow {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.65rem;
    height: 48px;
    justify-content: center;
    position: absolute;
    top: 42%;
    width: 48px;
    z-index: 2;
}

.adoption-arrow:hover,
.adoption-arrow:focus {
    color: var(--municipal-orange);
}

.adoption-prev {
    left: 0;
}

.adoption-next {
    right: 0;
}

.adoption-dots {
    display: flex;
    gap: .45rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.adoption-dots button {
    background: #fff;
    border: 1px solid #fff;
    cursor: pointer;
    height: 10px;
    padding: 0;
    width: 10px;
}

.adoption-dots button.active {
    background: var(--municipal-orange);
}

.info-card,
.pet-card,
.campaign-card,
.article-card,
.account-card {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-card:hover,
.pet-card:hover,
.campaign-card:hover,
.article-card:hover,
.account-card:hover {
    box-shadow: 0 12px 28px rgba(33, 49, 60, .12);
    transform: translateY(-3px);
}

.related-aside .info-card:hover {
    box-shadow: none;
    transform: none;
}

.contact-info-card:hover {
    box-shadow: 0 2px 18px rgba(25, 56, 78, .08);
    transform: none;
}

.community-microchip-number {
    display: none;
}

.community-review-card {
    background: #f8fafc;
}

.community-review-card:hover {
    box-shadow: 0 2px 18px rgba(25, 56, 78, .08);
    transform: none;
}

.community-duplicate-warning {
    display: block;
}

.card-body,
.info-card .content {
    padding: 1.35rem;
}

.info-card h2,
.pet-card h2,
.campaign-card h2,
.article-card h2,
.account-card h2 {
    font-size: 1.5em;
}

.card-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.icon-badge {
    align-items: center;
    background: #eef5fb;
    border-radius: 50%;
    color: var(--municipal-green);
    display: inline-flex;
    font-size: 1.35rem;
    height: 52px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 52px;
}

.btn-municipal {
    background: var(--municipal-green);
    border: 2px solid var(--municipal-green);
    border-radius: 25px;
    color: #fff;
    gap: .4rem;
}

.btn-municipal:hover,
.btn-municipal:focus {
    background: var(--municipal-orange);
    border-color: var(--municipal-orange);
    color: #fff;
}

.btn-outline-municipal {
    background: #fff;
    border: 2px solid var(--municipal-green);
    border-radius: 25px;
    color: var(--municipal-green);
}

.filter-button.active,
.pagination-demo button.active {
    background: var(--municipal-green);
    color: #fff;
}

.btn-outline-municipal:hover,
.btn-outline-municipal:focus {
    background: var(--municipal-orange);
    border-color: var(--municipal-orange);
    color: #fff;
}

.meta-list {
    color: var(--municipal-muted);
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.meta-list li {
    margin-bottom: .35rem;
}

.filter-bar,
.pagination-demo {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.filter-button {
    background: #fff;
    border: 1px solid #cbd9d2;
    border-radius: 26px;
    color: var(--municipal-ink);
    cursor: pointer;
    font-weight: 700;
    padding: 0.55rem 3.9rem;
}

.pagination-demo button {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd9d2;
    border-radius: 50%;
    color: var(--municipal-ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 42px;
}

.empty-message {
    background: #fff6ec;
    border: 1px solid #f0d0a8;
    border-radius: 8px;
    display: none;
    padding: 1rem;
}

.form-demo {
    background: #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.form-demo h2,
.form-demo h3 {
    color: #555;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.form-demo .form-group,
.form-demo .mb-3:not(.form-check) {
    position: relative;
}

.form-demo label:not(.form-check-label) {
    background: #fff;
    color: #7b7f91;
    font-size: .78rem;
    left: .85rem;
    line-height: 1;
    margin: 0;
    padding: 0 .18rem;
    position: absolute;
    top: .45rem;
    z-index: 2;
}

.form-demo .form-control,
.form-demo .form-select,
.form-demo .custom-select {
    border: 1.5px solid #2b6edc;
    border-radius: 7px;
    color: #06285f;
    min-height: 44px;
    padding: 1.05rem .85rem .35rem;
}

.form-demo .input-group .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    min-width: 0;
    padding-right: .85rem;
}

.form-demo .input-group .btn {
    align-items: center;
    background: #fff;
    border: 1.5px solid #2b6edc;
    border-bottom-right-radius: 7px;
    border-left: 0;
    border-top-right-radius: 7px;
    color: #6f7280;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    width: 44px;
}

.form-demo .input-group .password-toggle {
    margin: 0;
}

.form-demo .input-group .password-toggle:hover,
.form-demo .input-group .password-toggle:focus {
    background: var(--municipal-green);
    color: #fff;
}

.form-demo textarea.form-control {
    min-height: 132px;
}

.form-demo .form-control::placeholder {
    color: #a9adba;
}

.form-demo .form-text,
.form-demo .field-help {
    color: #6f7280;
    display: block;
    font-size: .86rem;
    margin-top: .35rem;
}

.form-demo .form-check {
    padding-left: 1.7rem;
}

.form-demo .form-check-label {
    color: var(--municipal-ink);
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.login-section {
    background: #fff;
}

.login-layout {
    min-height: 520px;
}

.login-visual {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    justify-content: center;
    text-align: left;
}

.login-visual-copy {
    max-width: 430px;
    width: 100%;
}

.login-visual-copy h2 {
    color: var(--municipal-ink);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .45rem;
}

.login-visual-copy p {
    color: var(--municipal-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.login-cat-img {
    display: block;
    height: auto;
    max-height: 420px;
    max-width: min(430px, 100%);
    object-fit: contain;
    width: 100%;
}

.login-form-box {
    margin: 0 auto;
    max-width: 430px;
}

.login-form-heading {
    margin-bottom: 2rem;
}

.login-form-heading h2 {
    color: var(--municipal-ink);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: .15rem;
}

.login-form-heading p {
    color: var(--municipal-ink);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.login-forgot-link {
    color: var(--municipal-ink);
    display: inline-block;
    font-weight: 600;
    margin: .45rem 0 1.45rem;
}

.login-submit {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.25rem;
    max-width: 320px;
    width: 100%;
}

.login-register-link {
    color: #5d6880;
    margin: 0;
    text-align: center;
}

.login-register-link a {
    color: var(--municipal-ink);
    font-weight: 700;
}

.form-link-action {
    align-items: center;
    color: #4316c7;
    display: inline-flex;
    font-weight: 800;
    gap: .5rem;
    justify-content: center;
    margin: .75rem 0;
}

.form-link-action:hover,
.form-link-action:focus {
    color: var(--municipal-orange);
}

.form-control:focus,
.form-select:focus,
.custom-select:focus,
button:focus,
a:focus {
    border-color: var(--municipal-green);
    box-shadow: 0 0 0 .2rem rgba(3,65,153,.18);
    outline: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.demo-message {
    background: #eef5fb;
    border-left: 4px solid var(--municipal-green);
    border-radius: 4px;
    display: none;
    margin-top: 1rem;
    padding: 20px;
}

.demo-message.is-success,
.form-alert-success {
    background: #eef8f2;
    border: 1px solid #b7e1c5;
    border-left: 4px solid #168447;
    border-radius: 8px;
    color: #135c35;
    padding: 20px;
}

.demo-message.is-error,
.form-alert-error {
    background: #fff1f1;
    border: 1px solid #f0b8b8;
    border-left: 4px solid #c52828;
    border-radius: 8px;
    color: #8d1f1f;
    padding: 20px;
}

.profile-page {
    background: #f6f6fa;
}

.profile-cover {
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(23, 35, 54, .08);
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.profile-cover-art {
    background: linear-gradient(90deg, rgb(3 65 153 / 14%), rgba(34, 109, 143, .9)), url(../img/jumbotron.jfif) center / cover;
    color: #fff;
    min-height: 200px;
    padding: 3rem 0;
}

.profile-summary {
    align-items: center;
    display: flex;
    gap: 1rem;
    padding: 16px 1.2rem 2.2rem;
    position: relative;
}

.profile-avatar {
    align-items: center;
    background: #eef5fb;
    border: 4px solid #fff;
    border-radius: 8px;
    color: var(--municipal-green);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 2.7rem;
    height: 92px;
    justify-content: center;
    margin-top: -32px;
    width: 92px;
}

.profile-summary h1 {
    color: #484b57;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 .55rem;
}

.profile-meta {
    color: #676b78;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-meta i {
    margin-right: .35rem;
}

.profile-edit {
    margin-left: auto;
    min-width: 0;
}

.profile-tabs {
    gap: .55rem;
    margin-bottom: 1.2rem;
}

.profile-tabs .nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #414653;
    display: inline-flex;
    font-weight: 700;
    gap: .45rem;
    padding: .75rem 1rem;
}

.profile-tabs .nav-link.active,
.profile-tabs .nav-link:hover,
.profile-tabs .nav-link:focus {
    background: var(--municipal-green);
    color: #fff;
}

.tab-content,
.profile-tab-content {
    box-shadow: none;
    padding: 3px;
}

.profile-panel {
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(23, 35, 54, .06);
    height: 100%;
    padding: 1.35rem;
}

.profile-panel h2 {
    align-items: center;
    color: #414653;
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    gap: .7rem;
    margin-bottom: 1.35rem;
}

.profile-panel-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.profile-panel-header h2 {
    margin-bottom: 0;
}

.profile-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-detail-list li {
    display: grid;
    gap: .15rem .75rem;
    grid-template-columns: 22px 1fr;
    margin-bottom: 1rem;
}

.profile-detail-list i {
    color: #6f7280;
    grid-row: span 2;
    margin-top: .15rem;
}

.profile-detail-list span {
    color: #000000;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: .88rem;
    font-weight: 600;
    text-transform: none;
}

.profile-detail-list strong {
    color: #4c5060;
    font-weight: 400;
}

.activity-list {
    counter-reset: activities;
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-list li {
    display: grid;
    gap: 1rem;
    grid-template-columns: 16px 1fr auto;
    padding: 0 0 1.25rem;
    position: relative;
}

.activity-list li:not(:last-child)::before {
    background: #d9dce6;
    content: "";
    height: calc(100% - 8px);
    left: 7px;
    position: absolute;
    top: 18px;
    width: 1px;
}

.activity-dot {
    background: #6d64ff;
    border: 3px solid #edeafd;
    border-radius: 50%;
    height: 14px;
    margin-top: .25rem;
    width: 14px;
    z-index: 1;
}

.activity-list li:nth-child(2) .activity-dot {
    background: #27c77a;
    border-color: #e3f8ee;
}

.activity-list li:nth-child(3) .activity-dot {
    background: #19b8ca;
    border-color: #e1f7fa;
}

.activity-list strong {
    color: #414653;
}

.activity-list p {
    color: #6d7280;
    margin: .35rem 0 0;
}

.activity-list time {
    color: #9b9fac;
    font-size: .85rem;
}

.profile-list {
    display: grid;
    gap: 1rem;
}

.profile-list-item {
    align-items: center;
    display: grid;
    gap: .85rem;
    grid-template-columns: 52px 1fr auto;
}

.profile-list-item img {
    border-radius: 50%;
    height: 52px;
    object-fit: cover;
    width: 52px;
}

.profile-list-item h3 {
    color: #414653;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.profile-list-item p {
    color: #6d7280;
    margin: .15rem 0 0;
}

.profile-actions {
    display: flex;
    gap: .45rem;
}

.profile-action {
    align-items: center;
    background: var(--municipal-green);
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.profile-action:hover,
.profile-action:focus {
    background: var(--municipal-orange);
    color: #fff;
}

.pet-edit-modal {
    border: 0;
    border-radius: 10px;
}

.pet-edit-modal .modal-header,
.pet-edit-modal .modal-footer {
    border-color: #e7e9f0;
    padding: 1.1rem 1.25rem;
}

.pet-edit-modal .modal-title {
    color: #414653;
    font-size: 1.25rem;
    font-weight: 800;
}

.pet-edit-modal .modal-body {
    padding: 1.25rem;
}

.integration-shell {
    min-height: 1px;
    padding: 2rem 0;
}

.reserva-demo-carousel {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 35, 55, .1);
    margin: 0 auto;
    max-width: 760px;
    overflow: hidden;
}

.reserva-demo-carousel .carousel-inner {
    background: #f8fafc;
}

.reserva-demo-carousel .carousel-item img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.reserva-demo-carousel .carousel-control-prev,
.reserva-demo-carousel .carousel-control-next {
    background: rgba(3, 65, 153, .86);
    border-radius: 999px;
    height: 42px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
}

.reserva-demo-carousel .carousel-control-prev {
    left: 1rem;
}

.reserva-demo-carousel .carousel-control-next {
    right: 1rem;
}

.reserva-demo-carousel .carousel-indicators {
    bottom: .65rem;
    margin-bottom: 0;
}

.reserva-demo-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--municipal-green);
    border: 0;
    border-radius: 999px;
    height: 9px;
    opacity: .38;
    width: 9px;
}

.reserva-demo-carousel .carousel-indicators .active {
    background-color: var(--municipal-orange);
    opacity: 1;
}

.map-placeholder {
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.site-footer {
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: 3rem 0 0;
}

.site-footer h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.35rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--municipal-orange);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: .65rem;
}

.footer-links a::before {
    color: #fff;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: .65rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact i {
    color: #fff;
    margin-right: .55rem;
    width: 18px;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: block;
    height: auto;
    margin-bottom: 2rem;
    max-width: 190px;
    width: 100%;
}

.footer-copy {
    margin-bottom: .85rem;
}

.footer-silhouette {
    display: block;
    margin-top: 3rem;
    width: 100%;
}

.legal {
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255, 255, 255, .82);
    padding: 1rem 0;
}

@media (max-width: 991.98px) {
    .main-nav {
        box-shadow: none;
    }

    .main-nav .container {
        align-items: center;
    }

    .navbar-toggler {
        border: 0;
        box-shadow: none;
        padding: .35rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler-icon {
        height: 1.7rem;
        width: 1.7rem;
    }

    .navbar-collapse {
        flex-basis: 100%;
        margin-left: -.75rem;
        margin-right: -.75rem;
        max-height: none;
        overflow: visible;
        padding: .4rem 0 1rem;
        text-align: center;
    }

    .navbar-nav {
        align-items: stretch;
        width: 100%;
    }

    .navbar-light .navbar-nav .nav-link {
        border-radius: 0;
        display: inline-flex;
        justify-content: center;
        margin: .25rem 0;
        padding: .55rem .75rem;
        width: 100%;
    }

    .navbar-light .navbar-nav .nav-item-submenu > .nav-link::after {
        color: currentColor;
        content: "\f0d7";
        font-family: "Font Awesome 5 Free";
        font-size: .65rem;
        font-weight: 900;
        margin-left: .35rem;
        margin-top: .15rem;
    }

    .login-layout {
        gap: 2.5rem;
        min-height: 0;
    }

    .login-visual {
        text-align: center;
    }

    .login-cat-img {
        max-height: 340px;
        max-width: 340px;
    }

    .adoption-intro {
        grid-template-columns: 1fr;
    }

    .service-carousel-slide,
    .service-carousel-slide:nth-child(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submenu-servicios {
        border: 0;
        box-shadow: none;
        display: block;
        left: auto;
        margin: 0 0 .65rem;
        min-width: 0;
        padding: 0;
        position: static;
        right: auto;
        text-align: center;
        width: 100%;
    }

    .submenu-servicios a {
        border-radius: 0;
        padding: .45rem .75rem;
        text-align: center;
    }

    .submenu-servicios a.active {
        background: var(--municipal-orange);
        color: #fff;
    }

    .submenu-servicios a:hover,
    .submenu-servicios a:focus {
        background: var(--municipal-orange);
        color: #fff;
    }

    .home-hero {
        min-height: 560px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(3, 65, 153, .9) 0%, rgba(3, 65, 153, .72) 58%, rgba(3, 65, 153, .22) 100%);
    }

    .adoption-slider {
        padding-left: 0;
        padding-right: 0;
    }

    .adoption-slide.active {
        grid-template-columns: 1fr;
    }

    .adoption-arrow {
        top: auto;
        bottom: -1.1rem;
    }

    .profile-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-edit {
        margin-left: 0;
    }

    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

@media (max-width: 575.98px) {
    .topbar .container {
        gap: .25rem;
    }

    .brand-logo {
        height: 54px;
    }

    .navbar-brand span {
        display: none;
    }

    .page-hero {
        padding: 2.2rem 0;
    }

    .page-hero h1 {
        font-size: 1.95rem;
    }

    .section {
        padding: 3rem 0;
    }

    .service-carousel {
        padding: 0 2.2rem;
    }

    .service-carousel-slide,
    .service-carousel-slide:nth-child(2) {
        grid-template-columns: 1fr;
    }

    .service-carousel-arrow {
        top: 45%;
    }

    .home-hero {
        min-height: 520px;
    }

    .hero-content {
        padding-bottom: 3rem;
        padding-top: 3rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .adoption-card-featured {
        grid-template-columns: 1fr;
    }

    .adoption-card-featured img {
        height: auto;
        width: 100%;
    }

    .adoption-badges {
        grid-template-columns: 1fr;
    }

    .reserva-demo-carousel {
        max-width: 100%;
    }

    .reserva-demo-carousel .carousel-control-prev,
    .reserva-demo-carousel .carousel-control-next {
        height: 36px;
        width: 36px;
    }

    .profile-cover-art {
        min-height: 150px;
    }

    .activity-list li {
        grid-template-columns: 16px 1fr;
    }

    .activity-list time {
        grid-column: 2;
    }
}

/* Login ciudadano */
.login-section { background: linear-gradient(135deg, #f7fbff 0%, #fff 55%, #fff8f1 100%); }
.login-form-box { background: #fff; border: 1px solid #e7ebf1; border-radius: 24px; box-shadow: 0 18px 50px rgba(22,55,93,.11); max-width: 480px; padding: clamp(1.5rem,4vw,2.5rem); }
.login-eyebrow { color: var(--municipal-orange); display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .45rem; text-transform: uppercase; }
.login-visual-copy h1 { color: var(--municipal-ink); font-size: clamp(2.4rem,4vw,4rem); font-weight: 800; line-height: 1; margin-bottom: 1rem; }
.login-form-heading { margin-bottom: 1.6rem; }
.login-form-heading h2 { font-size: 2rem; }
.login-form-box .form-group { margin-bottom: 1.15rem; }
.login-form-box label { color: var(--municipal-ink); font-size: .92rem; font-weight: 700; margin-bottom: .45rem; }
.login-form-box .login-control { border: 1px solid #cbd4df; border-radius: 12px; box-sizing: border-box; font-size: 1rem; height: 52px; padding: .75rem 1rem; width: 100%; }
.login-form-box .login-input-group { align-items: stretch; display: flex; flex-wrap: nowrap; width: 100%; }
.login-form-box .login-input-group .login-control { flex: 1 1 auto; min-width: 0; width: 1%; }
.login-form-box .login-input-group .login-control:not(:last-child) { border-bottom-right-radius: 0; border-top-right-radius: 0; }
.login-form-box .password-toggle,.login-form-box .login-resend { align-items: center; align-self: stretch; background: #f3f6fa; border: 1px solid #cbd4df; border-left: 0; border-radius: 0 12px 12px 0; color: var(--municipal-blue); display: inline-flex; flex: 0 0 auto; font-weight: 700; height: 52px; justify-content: center; min-width: 54px; padding: 0 1rem; }
.login-form-box .password-toggle i { color: var(--municipal-blue); }
.login-form-box .login-resend { background: var(--municipal-blue); color: #fff; }
.login-form-box .login-activation-group { align-items: stretch; display: grid; grid-template-columns: minmax(0,1fr) auto; height: 52px; width: 100%; }
.login-form-box .login-activation-group .login-control { border-radius: 12px 0 0 12px; height: 52px; min-width: 0; width: 100%; }
.login-form-box .login-activation-group .login-resend { align-items: center; border: 1px solid var(--municipal-blue); border-radius: 0 12px 12px 0; display: inline-flex; height: 52px; justify-content: center; margin: 0; min-width: 112px; padding: 0 1rem; white-space: nowrap; }
.login-form-box .login-password-group { display: block; height: 52px; position: relative; }
.login-form-box .login-password-group .login-control { border-radius: 12px; height: 52px; padding-right: 58px; width: 100%; }
.login-form-box .login-password-group .password-toggle { border: 0; border-left: 1px solid #cbd4df; border-radius: 0 12px 12px 0; bottom: 0; height: 52px; margin: 0; min-width: 54px; padding: 0; position: absolute; right: 0; top: 0; width: 54px; z-index: 4; }
.login-form-box .login-resend { min-width: 104px; }
.login-form-actions { display: flex; justify-content: flex-end; }
.login-forgot-link { font-size: .9rem; margin: 0 0 1.35rem; }
.login-activation-box { background: #f5f8fc; border-radius: 16px; margin-top: 1.75rem; padding: 1.25rem; }
.login-activation-box h3 { color: var(--municipal-ink); font-size: 1rem; font-weight: 800; margin-bottom: .35rem; }
.login-activation-box p { color: var(--municipal-muted); font-size: .86rem; line-height: 1.45; margin-bottom: .85rem; }
@media (max-width: 991.98px) { .login-layout { min-height: auto; } .login-form-box { margin: 0 auto; } }
@media (max-width: 575.98px) { .login-form-box { border-radius: 18px; padding: 1.35rem; } .login-form-box .login-resend { min-width: 88px; padding: 0 .7rem; } }

.adoption-requirements { margin-top: 2.25rem; }
.adoption-requirements > h2 { color: var(--municipal-ink); margin-bottom: .45rem; }
.adoption-requirements > p { color: var(--municipal-muted); margin-bottom: 1.25rem; }
.adoption-requirements .accordion { overflow: visible; padding-left: 0; }
.adoption-requirements .accordion::before { display: none; }
.adoption-requirements .accordion-item { background: #fff; border: 1px solid #dfe7ef; border-radius: 14px; box-shadow: 0 5px 18px rgba(20,45,80,.06); margin-bottom: .85rem; overflow: hidden; }
.adoption-requirements .accordion-item:last-child { margin-bottom: 0; }
.adoption-requirements .accordion-header { margin: 0; }
.adoption-requirements .accordion-button { background: #fff; border: 0; color: var(--municipal-ink); font-size: 1rem; font-weight: 700; padding: 1.15rem 1.25rem; }
.adoption-requirements .accordion-button:hover { background: #f7fafc; color: var(--municipal-blue); }
.adoption-requirements .accordion-button:not(.collapsed) { background: #eef5fd; color: var(--municipal-blue); box-shadow: inset 0 -1px 0 #dbe7f5; }
.adoption-requirements .accordion-button:focus { border-color: transparent; box-shadow: inset 0 -1px 0 #dbe7f5, 0 0 0 .2rem rgba(7,86,173,.12); outline: 0; }
.adoption-requirements .accordion-button::after { background-size: 1rem; }
.adoption-requirements .accordion-body { background: #fff; color: var(--municipal-muted); line-height: 1.7; padding: 1.2rem 1.25rem 1.35rem; }
.section .row > .col-lg-6.mb-4 > img.img-fluid { display: block; width: 100%; }
.adoption-detail-view .row > .col-lg-6 > h1 { font-size: clamp(1.85rem, 3vw, 2.45rem); line-height: 1.15; margin-bottom: 1rem; }
.adoption-detail-view .row > .col-lg-6 > h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .6rem; }
.adoption-requirements > h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.adoption-info-list { display: grid; gap: .65rem; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: .75rem 0 1.25rem; padding: 0; }
.adoption-info-list li { align-items: center; background: #f8fafc; border: 1px solid #e7ecf1; border-radius: 11px; display: flex; gap: .75rem; min-width: 0; padding: .7rem .8rem; }
.adoption-info-list__icon { align-items: center; background: #eaf3ee; border-radius: 50%; color: var(--municipal-green); display: inline-flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.adoption-info-list li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.adoption-info-list strong { color: var(--municipal-ink); font-size: .8rem; line-height: 1.2; }
.adoption-info-list small { color: var(--municipal-muted); font-size: .9rem; line-height: 1.35; margin-top: .15rem; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .adoption-info-list { grid-template-columns: 1fr; } }
