* {
    margin: 0;
    padding: 0;
}

:root {
    --header-h: 76px; /* altura real del header: 44px logo + 16px padding top + 16px padding bottom */
}
/* ══════════════════════════════════════════════════════════════════
   TIPOGRAFÍA GLOBAL — Nunito
══════════════════════════════════════════════════════════════════ */
body,
p, a, span, li,
input, button, select, textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif !important;
}

/* ── Accesibilidad: saltar al contenido ─────────────────────────── */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 10px 18px;
    background: #54316f;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top .15s ease;
}
.skip-to-content:focus {
    top: 0;
}

body {
    background: #ffff;
    /**background: linear-gradient(to right, #b2eded, #0CC0DF);**/
}

/* ═══════════════════════════════════════
   PÁGINA PÚBLICA: BUSCAR MASCOTAS
═══════════════════════════════════════ */

.buscar-hero {
    background-color: #F9F5EB;
    padding-top: 140px;
    padding-bottom: 0;
}

.buscar-titulo {
    font-family: 'STIX Two Text', serif;
    font-size: 48px;
    font-weight: 700;
    color: #54316F;
}

.buscar-subtitulo {
    font-size: 17px;
    color: #555;
}
.buscar-subtitulo a {
    color: #F39200;
    font-weight: 600;
    text-decoration: none;
}

/* ── Skeleton loading ───────────────────────────────────────────── */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.skeleton-block,
.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 6px;
}
.skeleton-card { pointer-events: none; }
.skeleton-card .buscar-card-img-wrap.skeleton-block { border-radius: 0; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-title { height: 20px; width: 65%; }
.skeleton-meta  { width: 80%; }
.skeleton-meta.short { width: 45%; }

/* ── Buscar: cabecera con fondo cálido ─────────────────── */
.buscar-page-hero {
    background: #F9F5EB;
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    margin-bottom: 2rem !important;
    box-shadow: 0 1px 0 rgba(84,49,111,.08);
}

.buscar-input-group {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.buscar-input {
    border: none;
    padding: 14px 20px;
    font-size: 16px;
}
.buscar-input:focus { box-shadow: none; }
.buscar-btn-search {
    background-color: #F39200;
    color: #fff;
    border: none;
    padding: 0 24px;
    font-size: 18px;
    transition: background .2s;
}
.buscar-btn-search:hover { background-color: #54316F; color: #fff; }

/* ── Selector Perdidos / Encontrados ─────────────────────────────── */
.buscar-tipo-selector {
    display: flex;
    gap: 12px;
}
.buscar-tipo-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #888;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
    position: relative;
    overflow: hidden;
}
.buscar-tipo-btn .buscar-tipo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform .2s;
}
.buscar-tipo-btn .buscar-tipo-label {
    white-space: nowrap;
}

/* Perdidos inactivo → toque sutil naranja */
.buscar-tipo-perdido {
    border-color: #f5f5f5;
}
.buscar-tipo-perdido:hover {
    background: #fff4ee;
    border-color: #F39200;
    color: #F39200;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(243,146,0,.2);
}
.buscar-tipo-perdido:hover .buscar-tipo-icon { transform: scale(1.15); }

/* Perdidos activo */
.buscar-tipo-perdido.active {
    background: #F39200;
    border-color: #F39200;
    color: #fff;
    box-shadow: 0 4px 18px rgba(243,146,0,.35);
}
.buscar-tipo-perdido.active .buscar-tipo-icon { transform: scale(1.1); }

/* Encontrados inactivo → toque sutil morado */
.buscar-tipo-encontrado {
    border-color: #f5f5f5;
}
.buscar-tipo-encontrado:hover {
    background: #f3edf8;
    border-color: #54316F;
    color: #54316F;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(84,49,111,.15);
}
.buscar-tipo-encontrado:hover .buscar-tipo-icon { transform: scale(1.15); }

/* Encontrados activo */
.buscar-tipo-encontrado.active {
    background: #54316F;
    border-color: #54316F;
    color: #fff;
    box-shadow: 0 4px 18px rgba(84,49,111,.30);
}
.buscar-tipo-encontrado.active .buscar-tipo-icon { transform: scale(1.1); }

/* Móvil: stack vertical si muy estrecho */
@media (max-width: 400px) {
    .buscar-tipo-selector { flex-direction: column; }
}

.buscar-resultados {
    padding-top: 2.5rem;
    min-height: 50vh;
}

#resultados-busqueda,
#paginacion-resultados {
    overflow-anchor: none;
}

#resultados-busqueda {
    position: relative;
}

#resultados-busqueda.busqueda-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 10;
}

#resultados-busqueda.busqueda-loading::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(243, 146, 0, 0.25);
    border-top-color: #F39200;
    border-radius: 50%;
    animation: buscar-spin .8s linear infinite;
    z-index: 11;
}

@keyframes buscar-spin {
    to { transform: rotate(360deg); }
}

.buscar-contador {
    font-size: 14px;
    color: #777;
}
.buscar-contador a { color: #F39200; }

/* Tarjeta */
.buscar-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 16px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.buscar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.buscar-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.buscar-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buscar-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.buscar-badge-perdido  { background: #F39200; color: #fff; }
.buscar-badge-encontrado { background: #54316F; color: #fff; }

.buscar-card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.buscar-card-nombre {
    font-size: 18px;
    font-weight: 700;
    color: #040937;
    margin-bottom: .5rem;
}
.buscar-card-meta li {
    font-size: 13px;
    color: #666;
    margin-bottom: .25rem;
}
.buscar-card-meta i { color: #F39200; }

.buscar-card-btn {
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 36px;
    display: inline-block;
}

/* Paginación */
.buscar-pagination {
    gap: 4px;
    align-items: center;
}
.buscar-pagination .page-item .page-link {
    border: none;
    border-radius: 36px !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #040937;
    background: #f5f5f5;
    transition: background .18s, color .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    padding: 0;
}
.buscar-pagination .page-item.active .page-link {
    background: #F39200;
    color: #fff;
    box-shadow: 0 3px 10px rgba(243,146,0,.35);
    pointer-events: none;
}
.buscar-pagination .page-item .page-link:hover {
    background: #54316F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84,49,111,.22);
}
.buscar-pagination .page-item.disabled .page-link {
    background: transparent;
    color: #bbb;
    pointer-events: none;
    box-shadow: none;
}
/* Flechas anterior/siguiente: ligeramente más amplias */
.buscar-pagination .page-item:first-child .page-link,
.buscar-pagination .page-item:last-child .page-link {
    width: 42px;
    background: #fff;
    border: 1.5px solid #e4e4e4;
    color: #54316F;
}
.buscar-pagination .page-item:first-child .page-link:hover,
.buscar-pagination .page-item:last-child .page-link:hover {
    background: #54316F;
    border-color: #54316F;
    color: #fff;
}

/* CTA inferior — rediseño moderno */
.buscar-cta {
    background: linear-gradient(135deg, #3b1c54 0%, #54316F 55%, #6f409a 100%);
    border-top: 4px solid #F39200;
    padding: 80px 20px 76px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.buscar-cta-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.045);
    pointer-events: none;
}
.buscar-cta-deco-1 { width: 380px; height: 380px; top: -130px; right: -60px; }
.buscar-cta-deco-2 { width: 220px; height: 220px; bottom: -70px; left: 4%; }
.buscar-cta-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: .75rem;
    position: relative;
    line-height: 1;
}
.buscar-cta h2 {
    font-family: 'STIX Two Text', serif;
    font-size: clamp(24px, 4vw, 38px);
    margin-bottom: .65rem;
    color: #fff;
    position: relative;
}
.buscar-cta p {
    font-size: 17px;
    opacity: .82;
    margin-bottom: 2rem;
    position: relative;
}
.buscar-cta .cta-btns { position: relative; }
.buscar-cta .btn-primay {
    background: #F39200;
    border: none;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 36px;
    color: #fff !important;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 18px rgba(243,146,0,.35);
}
.buscar-cta .btn-primay:hover {
    background: #fff;
    color: #54316F !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.buscar-cta .btn-outline-landing {
    background: rgba(255,255,255,.13) !important;
    border: 1.5px solid rgba(255,255,255,.55) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 36px;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, transform .15s;
    box-shadow: none !important;
}
.buscar-cta .btn-outline-landing:hover {
    background: rgba(255,255,255,.24) !important;
    transform: translateY(-2px);
}



/* Imagen de la izquierda */
/* Wrapper externo del hero: da el contexto de posicionamiento a las imágenes
   sin que queden dentro del overflow:hidden de la sección */
.hero-scene {
    position: relative;
}

/* Contenedor de imágenes laterales — fuera de .petnest-herov2 */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
}

/* Imagen izquierda */
.img-left {
    position: absolute;
    left: 0;
    top: calc(100vh - 72vh); /* arranca en el 28% del viewport, llega al fondo */
    height: 72vh;
    width: auto;
}

/* Imagen derecha */
.img-right {
    position: absolute;
    right: 0;
    top: calc(100vh - 72vh);
    height: 72vh;
    width: auto;
}

.hero-footer-text {
    font-family: 'lora', bold;
    position: absolute;
    margin-top: 50px;
    width: 100%;
    text-align: center;
    z-index: 2; /* Para que el texto esté por encima de las imágenes */
  }


/* Ocultar imágenes laterales del hero en tablets y móviles */
@media (max-width: 991px) {
    .img-left,
    .img-right {
        display: none;
    }

    .hero-footer-text {
        display: none;
    }
}

/* Botón secundario hero landing */
.btn-outline-landing,
.btn-outline-landing:hover,
a.btn-primay.btn-outline-landing,
a.btn-primay.btn-outline-landing:hover {
    background: #fff !important;
    color: #54316F !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Fomrulario login y registro */
.contRegistro {
    margin-top: 10%;
    margin-bottom: 7%;
}

.contLogin {
    margin-top: 15%;
    margin-bottom: 5%;
    padding: 0;
    max-width: 1200px;
    width: 100%;
    background: white;
}

/* ── Auth layout ────────────────────────────────────────────────────────── */
.auth-body {
    background: #f7f8fc;
    min-height: 100vh;
}

.auth-navbar {
    height: auto;
    background: #F9F5EB;
    border-bottom: 1px solid rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.auth-navbar-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-navbar-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.auth-navbar-back {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #6c757d;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.auth-navbar-back:hover {
    color: #F39200;
}

/* ── Auth toast (floating notification, no layout shift) ──────────────── */
.auth-toast {
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 1080;
    min-width: 300px;
    max-width: 480px;
    width: calc(100% - 2rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
    border-left: 4px solid transparent;
    padding: 14px 44px 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
    overflow: hidden;
}
.auth-toast.auth-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.auth-toast--error   { border-left-color: #dc3545; }
.auth-toast--success { border-left-color: #198754; }
.auth-toast--info    { border-left-color: #0d6efd; }
.auth-toast-msg {
    flex: 1;
    font-size: .9rem;
    color: #1a1a2e;
    line-height: 1.45;
    padding-top: 2px;
}
.auth-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-toast-close:hover {
    color: #333;
    background: rgba(0,0,0,.06);
}
@media (max-width: 575.98px) {
    .auth-toast {
        top: 68px;
        border-radius: 8px;
        padding: 12px 40px 12px 12px;
    }
}
.auth-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}
.auth-toast-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: authToastBar 8s linear forwards;
}
/* Barra de progreso: errores sin animación (no hay auto-cierre), éxito/info en 6 s */
.auth-toast--error   .auth-toast-bar::after { background: #dc3545; animation: none; transform: scaleX(1); opacity: .35; }
.auth-toast--success .auth-toast-bar::after { background: #198754; animation-duration: 8s; }
.auth-toast--info    .auth-toast-bar::after { background: #0d6efd;  animation-duration: 8s; }

@keyframes authToastBar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ── Login page (rediseño moderno) ──────────────────────────────────────── */
.login-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
    background: #f7f8fc;
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 1140px;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(84,49,111,.15), 0 4px 16px rgba(0,0,0,.08);
}

.login-hero {
    width: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.login-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    z-index: 0;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(15, 8, 30, 0.90) 0%,
        rgba(15, 8, 30, 0.40) 55%,
        rgba(0, 0, 0, 0.10) 100%
    );
}

.login-hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
}

.login-hero-logo {
    height: 34px;
    display: block;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.login-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: .75rem;
}

.login-hero-sub {
    color: rgba(255,255,255,.55);
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
}

.login-features iconify-icon {
    font-size: 1.05rem;
    color: #F39200;
    flex-shrink: 0;
}

.login-form-panel {
    flex: 1;
    padding: 2rem 2.5rem;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Auth tabs (login/registro) ─────────────────────────────────────────── */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 4px;
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background .25s, color .25s, box-shadow .25s;
}
.auth-tab:hover {
    color: #555;
}
.auth-tab.active {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── Auth panels: grid overlay (evita salto de altura al cambiar tab) ── */
.auth-panels-wrap {
    display: grid;
}
.auth-panel {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.auth-panel.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: authFadeIn .3s ease;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0);    }
}

@media (max-width: 991.98px) {
    .login-page {
        padding-top: 1.5rem;
        align-items: flex-start;
    }
    .login-card {
        min-height: unset;
        border-radius: 16px;
    }
    .login-form-panel {
        padding: 2rem 1.75rem 2.5rem;
    }
}

/* ── Registro: indicador de pasos ──────────────────────────────────────────── */
.reg-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.reg-step {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.reg-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: #adb5bd;
    transition: border-color .25s, background .25s, color .25s;
    flex-shrink: 0;
}
.reg-step-label {
    font-size: .8rem;
    font-weight: 600;
    color: #adb5bd;
    transition: color .25s;
}
.reg-step.active   .reg-step-num   { border-color: #F39200; background: #F39200; color: #fff; }
.reg-step.active   .reg-step-label { color: #F39200; }
.reg-step.done     .reg-step-num   { border-color: #2ecc71; background: #2ecc71; color: #fff; }
.reg-step.done     .reg-step-label { color: #2ecc71; }
.reg-step-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 .6rem;
    transition: background .25s;
}

/* ── Registro: fuerza de contraseña ───────────────────────────────────────── */
.pwd-strength {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.pwd-strength-bar {
    flex: 1;
    height: 5px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
}
.pwd-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width .35s, background-color .35s;
}
.pwd-strength-label {
    font-size: .75rem;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
    transition: color .35s;
}

/* ── Registro: lista de criterios ─────────────────────────────────────────── */
.pwd-criteria {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
}
.pwd-criteria li {
    font-size: .78rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
}
.pwd-criteria li iconify-icon { font-size: .9rem; color: #adb5bd; transition: color .2s; }
.pwd-criteria li.met          { color: #2ecc71; }
.pwd-criteria li.met iconify-icon { color: #2ecc71; }

/* ── Registro: animaciones de transición entre pasos ─────────────────────── */
@keyframes regSlideOut     { from { opacity:1; transform: translateX(0);    } to { opacity:0; transform: translateX(-32px); } }
@keyframes regSlideIn      { from { opacity:0; transform: translateX(32px); } to { opacity:1; transform: translateX(0);    } }
@keyframes regSlideOutBack { from { opacity:1; transform: translateX(0);    } to { opacity:0; transform: translateX(32px);  } }
@keyframes regSlideInBack  { from { opacity:0; transform: translateX(-32px);} to { opacity:1; transform: translateX(0);    } }

.container-fluid {
    padding: 0; /* Elimina el padding interno del contenedor */
    max-width: 1200px;
}

.pUsuario {
    padding-top: 8%;
}

/* Estilo general para los inputs */
.form-control {
    background-color: #f5f5f5; /* Color gris claro para el fondo */
    border: 1px solid #ced4da; /* Borde gris */
    border-radius: 0.375rem; /* Bordes redondeados */
    transition: border-color 0.3s ease; /* Transición suave para el borde */
}

/* Mantener el fondo gris cuando hay texto en el campo */
.form-control:not(:placeholder-shown) {
    background-color: #f5f5f5; /* Mantiene el color gris */
}

.form-control:focus {
    outline: none; /* Elimina el contorno por defecto */
    box-shadow: none; /* Elimina la sombra al enfocar */
    border-color: #ced4da; /* Mantiene el borde gris */
    background-color: #f5f5f5;
}

/* Estilo para el placeholder */
.form-control::placeholder {
    color: #6c757d; /* Color gris claro para el placeholder */
    opacity: 1; /* Asegura que el color del placeholder se mantenga */
}

.img-fluid {
    width: 100%; /* Mantiene el ancho original de la imagen */
    height: 100%; /* 100% del alto de su contenedor */
    display: block; /* Elimina el espacio debajo de la imagen */
    margin: auto;
    border-top-left-radius: 0.375rem; /* Bordes redondeados en la esquina superior izquierda */
    border-bottom-left-radius: 0.375rem; /* Bordes redondeados en la esquina inferior izquierda */
}


.rounded-start {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.rounded-end {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.bg-white {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem; /* Bordes redondeados */
}


.fixed-alert {
    position: absolute;  /* Posiciona el alert fuera del flujo normal del documento */
    top: -60px;  /* Ajusta la posición para que quede fuera del contenedor */
    left: 0;  /* Alinea el alert al borde izquierdo del contenedor principal */
    right: 0; /* Alinea el alert al borde derecho del contenedor principal */
    margin-left: auto;  /* Asegura que esté centrado dentro del contenedor */
    margin-right: auto;  /* Asegura que esté centrado dentro del contenedor */
    max-width: 850px;  /* Ancho máximo para que coincida con el contenedor */
    z-index: 1050;  /* Asegura que el alert esté por encima de otros elementos */
    padding: 10px;  /* Espaciado interno */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);  /* Añade una sombra ligera */
    border-radius: 0.375rem;  /* Bordes redondeados */
}

/* Espacio alrededor del botón de cerrar en el alert */
.alert-dismissible .btn-close {
    top: -5px;  /* Ajusta la posición del botón */
    right: -5px;
}

@media (min-width: 768px) {
    .alert {
        max-width: 100%; /* Ajustar el ancho en pantallas medianas y grandes */
    }
}



/* ESTILOS BOTONES DE LOGIN/REGISTRO */
.btnRegistrar {
    background-color: #F39200;
    color: white;
}

.btnRegistrar:hover {
    background-color: #54316f;
    color: white;
}

/* Estilo del botón de login */
.btnLogin {
    background-color: #F39200;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 0.375rem; /* Bordes redondeados */
}

.btnLogin:hover {
    background-color: #54316f;
    color: white;
}

.contLogin a{
    color: #9B63C6;
}

.contLogin a:hover {
    color: #FA786B;
}

.contLogin span {
    font-size: 13px;
}

/* Estilo del ícono del ojo dentro del campo */
.eye-icon {
    cursor: pointer;
    color: #6c757d; /* Color gris claro */
    transition: color 0.3s ease, transform 0.3s ease; /* Transiciones suaves */
}

.eye-icon:hover {
    color: #009FE3; /* Mismo color que el botón de login en hover */
    transform: scale(1.1); /* Un ligero zoom */
}

/* Estilo para cuando el ojo está activo */
.eye-icon.active i {
    color: #FF9C00; /* Cambia a un color naranja cuando está activo */
    transform: rotate(360deg); /* Rotación suave */
}

/* Ajustes del input y grupo del icono */
.input-group {
    display: flex; /* Asegura que los elementos estén en línea */
}

.input-group-text {
    background-color: #f5f5f5; /* Color gris claro */
    border: 1px solid #ced4da; /* Borde gris */
    padding: 10px; /* Espaciado */
}

/* Addon izquierdo (primer elemento): quita borde derecho para fusionar con el input */
.input-group > .input-group-text:first-child {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Input precedido por addon izquierdo: quita borde izquierdo */
.input-group > .input-group-text + .form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Input seguido por addon derecho: quita borde derecho */
.input-group > .form-control:not(:last-child) {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Addon derecho (último elemento): quita borde izquierdo para fusionar con el input */
.input-group > .input-group-text:last-child {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Propagar borde rojo/verde a los addons cuando el input es inválido/válido */
.input-group:has(.form-control.is-invalid) .input-group-text {
    border-color: var(--bs-danger, #dc3545);
}
.input-group:has(.form-control.is-valid) .input-group-text {
    border-color: var(--bs-success, #198754);
}

/* Asegura que los íconos se alineen correctamente */
.input-group-text i {
    color: #6c757d; /* Color del ícono */
}

.input-group-text:hover i {
    color: #FA786B; /* Color del ícono en hover */
}

/* Estilo para el título */
h2 {
    color: #343a40; /* Color del título */
}

/* Espaciado para el formulario */
.mb-4 {
    margin-bottom: 1.5rem; /* Espacio inferior */
}





.bg-white {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .p-5 {
        padding: 2rem !important;
    }

    h2 {
        font-size: 1.8rem;
    }

    .img-fluid {
        display: none;
    }

    .contLogin {
        margin-top: 10%;
    }
}




.politicas {
    margin-top: 8%;
}


/* ── Barra de aviso de desarrollo ───────────────────────────────────── */
.dev-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fff3cd;
    border-bottom: 1px solid #ffe08a;
    color: #664d03;
    font-size: .82rem;
    padding: .45rem 1.5rem;
    position: relative;
    z-index: 1040;
}

.dev-banner-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: #664d03;
    cursor: pointer;
    padding: 0 .25rem;
    margin-left: .5rem;
    opacity: .65;
    transition: opacity .2s;
}

.dev-banner-close:hover {
    opacity: 1;
}

.btn-close {
    padding: 0.5rem; /* Hace más pequeño el botón de cerrar */
}

/* --- Cards de animales --- */
.card-animal {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 12px;
    overflow: hidden;
}
.card-animal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

/* Sin borde superior por tipo */
.card-animal-PERDIDO,
.card-animal-ENCONTRADO,
.card-animal-REUNIDO,
.card-animal-SIN_PUBLICACION { border-top: 0 !important; }

/* Chip de especie/raza */
.card-chip {
    display: inline-block;
    padding: .15em .55em;
    font-size: .67rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   Wizard — Publicar mascota
   ========================================= */

/* Stepper superior */
.wizard-progress {
    align-items: flex-start !important;
    padding-bottom: 22px; /* room for absolutely-positioned labels */
}
.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    position: relative;
    flex-shrink: 0;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
    transition: background .25s, color .25s, box-shadow .25s;
    flex-shrink: 0;
}
.wizard-step-item.active .step-circle {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13,110,253,.2);
}
.wizard-step-item.completed .step-circle {
    background: #198754;
    color: #fff;
}
.step-label {
    font-size: .72rem;
    color: #6c757d;
    white-space: nowrap;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
}
.wizard-step-item.active .step-label   { color: #0d6efd; font-weight: 600; }
.wizard-step-item.completed .step-label { color: #198754; }
.step-line {
    height: 2px;
    background: #dee2e6;
    border-radius: 2px;
    min-width: 16px;
    margin-top: 17px; /* (36px circle − 2px line) / 2 → exact center */
    transition: background .25s;
}
.wizard-step-item.completed + .step-line { background: #198754; }

/* Tipo tiles — paso 1 */
.tipo-tile {
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 20px 16px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    user-select: none;
    background: #fff;
}
.tipo-tile:hover { border-color: #adb5bd; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.tipo-tile.selected { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.15); background: #f0f6ff; }
.tile-icon { flex-shrink: 0; margin-top: 2px; }
.tile-check { position: absolute; top: 12px; right: 12px; font-size: 1.3rem; opacity: 0; transition: opacity .2s; }
.tipo-tile.selected .tile-check { opacity: 1; }

/* Especie buttons — paso 2 */
.especie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.especie-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fff;
    cursor: pointer;
    font-size: .85rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
    min-width: 90px;
}
.especie-btn:hover { border-color: #adb5bd; background: #f8f9fa; }
.especie-btn.active {
    border-color: #0d6efd;
    background: #f0f6ff;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
    color: #0d6efd;
    font-weight: 600;
}

/* ── Upload zone (estado vacío) ── */
.upload-zone {
    border: 2px dashed #c8d3e0;
    border-radius: 16px;
    padding: 40px 24px 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    background: #f8fafd;
    user-select: none;
}
.upload-zone:hover,
.upload-zone.dragging {
    border-color: #0d6efd;
    background: #eef4ff;
    box-shadow: 0 0 0 4px rgba(13,110,253,.08);
}
.upload-zone.dragging {
    box-shadow: 0 0 0 4px rgba(13,110,253,.18);
}

/* ── Grid de thumbnails ── */
.foto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.foto-thumb {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: visible;
    border: 2px solid #dee2e6;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.foto-thumb:active { cursor: grabbing; }
.foto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    -webkit-user-drag: none;
    user-select: none;
}
/* Badge portada */
.foto-thumb .foto-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: .6rem;
    padding: 3px 0;
    font-weight: 700;
    background: rgba(13,110,253,.85);
    color: #fff;
    text-align: center;
    letter-spacing: .03em;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}
/* Botón eliminar */
.btn-quitar-foto {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    background: #dc3545 !important;
    color: #fff !important;
    font-size: .75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    z-index: 5;
    transition: transform .15s, box-shadow .15s;
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.btn-quitar-foto:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(220,53,69,.4) !important;
}
/* Image inside thumb */
.foto-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: zoom-in;
    -webkit-user-drag: none;
    user-select: none;
}
/* Drag & drop reorder states */
.foto-thumb--dragging {
    opacity: .35;
    transform: scale(.92);
    transition: opacity .15s, transform .15s;
}
.foto-thumb--drag-over {
    box-shadow: 0 0 0 3px #0d6efd;
    transform: scale(1.05);
    transition: box-shadow .12s, transform .12s;
}
.foto-thumb--ghost {
    position: fixed;
    z-index: 9999;
    opacity: .85;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.foto-thumb--removing {
    opacity: 0;
    transform: scale(.7);
    transition: opacity .2s, transform .2s;
}
.foto-thumb--uploading {
    border-color: #0d6efd;
    border-style: dashed;
    background: #eef4ff;
}
/* Error */
.foto-thumb.error {
    border-color: #dc3545;
    background: #fff5f5;
}
/* Thumb especial: añadir más */
.foto-thumb-add {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 2px dashed #c8d3e0;
    background: #f8fafd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: border-color .2s, background .2s, color .2s;
    font-size: .72rem;
    gap: 4px;
    user-select: none;
}
.foto-thumb-add:hover {
    border-color: #0d6efd;
    background: #eef4ff;
    color: #0d6efd;
}
/* Animación entrada thumb */
@keyframes thumbIn {
    from { transform: scale(.75); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.foto-thumb, .foto-thumb-add { animation: thumbIn .18s ease; }

/* Spin animation (geolocalización button) */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .7s linear infinite; }


/* ══════════════════════════════════════
   Galería y Lightbox (infoAnimal)
══════════════════════════════════════ */
.galeria-principal,
.galeria-carousel       { transition: transform .2s, opacity .2s; cursor: zoom-in; }
.galeria-principal:hover,
.galeria-carousel:hover { opacity: .88; transform: scale(1.01); }
.carousel-item img      { object-fit: cover; }

/* Public ficha gallery responsive heights */
.ficha-pub-galeria-img {
    height: 480px;
    object-fit: cover;
    cursor: zoom-in;
}
@media (max-width: 991.98px) {
    .ficha-pub-galeria-img { height: 380px; }
}
@media (max-width: 575.98px) {
    .ficha-publica-page { padding-left: .5rem; padding-right: .5rem; }
    .ficha-pub-galeria-img { height: 260px; }
    .ficha-publica-page .card { border-radius: 14px; }
}

/* ── Ficha contacto buttons (brand) ── */
.ficha-btn-llamar {
    background: #F39200 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
}
.ficha-btn-llamar:hover, .ficha-btn-llamar:focus {
    background: #d98200 !important;
    color: #fff !important;
}
.ficha-btn-copiar {
    border: 1.5px solid #54316F !important;
    color: #54316F !important;
    background: transparent !important;
    font-weight: 600 !important;
}
.ficha-btn-copiar:hover, .ficha-btn-copiar:focus {
    background: #f2edf8 !important;
    color: #54316F !important;
}
.ficha-btn-copiado {
    background: #54316F !important;
    color: #fff !important;
    border-color: #54316F !important;
}
.ficha-btn-compartir {
    border: 1.5px solid #54316F !important;
    color: #54316F !important;
    background: transparent !important;
    font-weight: 600 !important;
}
.ficha-btn-compartir:hover, .ficha-btn-compartir:focus {
    background: #f2edf8 !important;
    color: #54316F !important;
}

/* ── Map modal (ficha pública) ── */
#btn-mapa-completo {
    border-color: #54316F !important;
    color: #54316F !important;
    background: transparent !important;
}
#btn-mapa-completo:hover {
    background: #54316F !important;
    color: #fff !important;
}
/* Map modal rules → estilosPanel.css */

/* Diálogo se encoge/crece para ajustarse a la foto */
.lb-dialog {
    width: fit-content !important;
    max-width: 95vw !important;
    margin: auto;
}

.lb-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    pointer-events: auto;
}

/* Let clicks pass through transparent modal layers to the backdrop */
.modal:has(.lb-wrap) .modal-dialog,
.modal:has(.lb-wrap) .modal-content,
.modal:has(.lb-wrap) .modal-body {
    pointer-events: none;
}

.lb-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    margin: 0 auto;
}

.lb-btn {
    position: absolute;
    z-index: 10;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    transition: background .18s, transform .18s, box-shadow .18s;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.lb-btn:hover {
    background: rgba(255,255,255,.3);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.lb-btn:active { transform: scale(.95); }

.lb-close {
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.4rem; line-height: 1;
}

.lb-prev, .lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.1); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.95); }

.lb-counter {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 10;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

/* ── Header compacto (override del theme) ──────────────────────────────── */
/* Meta: ~64px de altura total, estándar en diseño moderno */
.petnest-header.petnest-header-v2 {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Logo */
.petnest-logo figure a img {
    height: 44px;
    width: auto;
}

/* Botón "Área Privada" más fino */
.contact-us-top.contact-us-top-v2 .btn-primay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 16px;
}

.contact-us-top.contact-us-top-v2 .btn-primay i {
    font-size: 16px;
}

/* Links del menú con menos espaciado vertical */
.petnest-header-menu.petnest-header-menu-snd ul > li > a {
    padding-top: 6px;
    padding-bottom: 6px;
}


/* ══════════════════════════════════════════════════════════════════
   HAMBURGER + OFFCANVAS — MENÚ MÓVIL
══════════════════════════════════════════════════════════════════ */

/* ── Botón hamburger ─────────────────────────────────────────────── */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(84, 49, 111, .07);
    border: none;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.nav-hamburger:hover,
.nav-hamburger:focus-visible {
    background: rgba(84, 49, 111, .14);
    outline: none;
}
.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #54316f;
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s;
}
/* Animación → X cuando está abierto */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Offcanvas panel ─────────────────────────────────────────────── */
.nav-offcanvas {
    width: 300px;
    border-left: none !important;
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
    background-color: #ffffff !important;
}
.nav-offcanvas-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(84,49,111,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
}

/* Botón X de cierre del offcanvas */
.nav-offcanvas-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(84,49,111,.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background .2s;
}
.nav-offcanvas-close:hover { background: rgba(84,49,111,.16); }
.nav-offcanvas-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: #54316f;
    border-radius: 2px;
}
.nav-offcanvas-close span:nth-child(1) { transform: rotate(45deg); }
.nav-offcanvas-close span:nth-child(2) { transform: rotate(-45deg); }

/* ── Cuerpo del offcanvas ────────────────────────────────────────── */
.nav-offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 12px 20px 32px;
    height: 100%;
    overflow-y: auto;
    background-color: #ffffff;
}

/* ── Lista de enlaces ────────────────────────────────────────────── */
.nav-offcanvas-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}
.nav-offcanvas-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 4px;
    font-size: 1rem;
    font-weight: 500;
    color: #2a1a3e;
    text-decoration: none;
    border-bottom: 1px solid rgba(84,49,111,.1);
    transition: color .2s, padding-left .2s;
}
.nav-offcanvas-menu li a iconify-icon {
    font-size: 1.3rem;
    color: #F39200;
    flex-shrink: 0;
}
.nav-offcanvas-menu li a:hover {
    color: #54316f;
    padding-left: 8px;
}
.nav-offcanvas-menu li:last-child a {
    border-bottom: none;
}

/* ── CTAs del offcanvas ──────────────────────────────────────────── */
.nav-offcanvas-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
    border-top: 1px solid rgba(84,49,111,.1);
    margin-top: 28px;
}
.nav-offcanvas-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: #F39200;
    color: #fff !important;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 14px;
    text-decoration: none;
    min-height: 52px;
    transition: background .2s, transform .1s;
}
.nav-offcanvas-btn-primary:hover  { background: #d97e00; transform: translateY(-1px); }
.nav-offcanvas-btn-primary iconify-icon { font-size: 1.2rem; }

.nav-offcanvas-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(84,49,111,.08);
    color: #54316f !important;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 14px;
    text-decoration: none;
    min-height: 52px;
    transition: background .2s;
}
.nav-offcanvas-btn-secondary:hover  { background: rgba(84,49,111,.15); }
.nav-offcanvas-btn-secondary iconify-icon { font-size: 1.2rem; }


/* ══════════════════════════════════════════════════════════════════
   HERO — estilos base (todos los tamaños)
══════════════════════════════════════════════════════════════════ */

/* Fotos polaroid: estructura compartida */
.hero-photo-stack {
    position: relative;
}
.hero-photo-card {
    position: absolute;
    border-radius: 40px;
    overflow: visible;
    border: 3px solid #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    will-change: transform;
    background: #fdfaf3;
}
.hero-photo-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 37px;
    overflow: hidden;
    background: #fdfaf3;
}
.hero-photo-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    border-radius: 0 0 37px 37px;
    background: linear-gradient(to bottom, transparent 0%, #fdfaf3 100%);
    pointer-events: none;
}
.hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Buscador: estructura compartida */
.hero-search-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(84,49,111,.13);
    padding: 16px;
    text-align: left;
}
.hero-search-field {
    display: flex;
    align-items: center;
    background: #f5f3f9;
    border-radius: 12px;
    padding: 10px 14px;
    gap: 10px;
}
.hero-search-field-icon {
    color: #54316f;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.hero-search-field-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .95rem;
    color: #1a1a2e;
    min-width: 0;
}
.hero-search-field-input::placeholder { color: #aaa; }
.hero-search-select-wrap label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: #54316f;
    margin-bottom: 4px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.hero-search-select {
    width: 100%;
    border: 1.5px solid rgba(84,49,111,.2);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: .88rem;
    color: #1a1a2e;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2354316f' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.hero-search-select:focus { outline: none; border-color: #54316f; }
.hero-search-submit {
    width: 100%;
    background: #F39200;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .01em;
}
.hero-search-submit:active { background: #d07d00; }


/* ══════════════════════════════════════════════════════════════════
   HERO MÓVIL — aspecto app nativo
══════════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {

    /* Hero: degradado top→bottom: mismo color que el header → blanco cálido */
    .petnest-herov2 {
        min-height: 100svh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to bottom, #F9F5EB 0%, #fdfaf3 50%, #ffffff 100%);
        padding: var(--header-h, 76px) 0 0 !important;
    }
    /* Ocultar burbujas animadas en móvil (ruido visual) */
    .animation-hero-bubble-v2,
    .animation-hero-v2 { display: none; }

    .petnest-herov2-wrapper {
        padding: 60px 20px 24px;
        text-align: center;
    }

    /* ── Fotos de mascotas en el hero (móvil) ── */
    @keyframes heroFloat {
        0%, 100% { transform: rotate(-5deg) translateY(0); }
        50%       { transform: rotate(-5deg) translateY(-8px); }
    }
    @keyframes heroFloatCenter {
        0%, 100% { transform: scale(1.06) translateY(0); }
        50%       { transform: scale(1.06) translateY(-9px); }
    }
    @keyframes heroFloatRight {
        0%, 100% { transform: rotate(5deg) translateY(0); }
        50%       { transform: rotate(5deg) translateY(-7px); }
    }

    .hero-photo-stack {
        position: relative;
        height: 100px;
        width: 100%;
        margin-bottom: 0;
    }
    /* Izquierda — jilguero, pequeña, detrás */
    .hero-photo-card--left {
        width: 55px;
        height: 76px;
        left: calc(50% - 90px);
        top: 10px;
        z-index: 1;
        animation: heroFloat 3.8s ease-in-out infinite 0.9s;
    }
    /* Centro — Tyrion, la más grande, delante */
    .hero-photo-card--center {
        width: 70px;
        height: 98px;
        left: calc(50% - 35px);
        top: 0;
        z-index: 3;
        animation: heroFloatCenter 3.4s ease-in-out infinite;
    }
    /* Derecha — gato Mari, pequeña, detrás */
    .hero-photo-card--right {
        width: 55px;
        height: 76px;
        left: calc(50% + 35px);
        top: 10px;
        z-index: 1;
        animation: heroFloatRight 3.6s ease-in-out infinite 1.4s;
    }

    /* Badge encima del H1: oculto */
    .petnest-herov2-wrapper::before {
        display: none;
    }

    .petnest-herov2-wrapper h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        font-weight: 900;
        line-height: 1.12;
        color: var(--color-imperial, #54316f);
        margin-bottom: 10px;
    }

    .petnest-herov2-wrapper p {
        font-size: 1.05rem;
        font-weight: 500;
        color: #3a2a1a;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* Espaciado móvil del buscador */
    .hero-search-card {
        margin-top: 16px;
        margin-bottom: 14px;
    }
    .hero-search-field {
        margin-bottom: 12px;
    }
    .hero-search-selects {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .hero-search-select:focus { outline: none; border-color: #54316f; }

    /* ── Enlace secundario bajo el buscador (móvil + tablet) ── */
    .hero-secondary-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 0;
        font-size: .88rem;
        color: #888;
        text-align: center;
    }
    .hero-secondary-cta a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(84,49,111,.08);
        color: #54316f;
        font-weight: 700;
        font-size: .92rem;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 50px;
        border: 1.5px solid rgba(84,49,111,.18);
        transition: background .2s;
    }
    .hero-secondary-cta a:active {
        background: rgba(84,49,111,.15);
    }

    /* ── Sticky CTA inferior (solo móvil, no logueados) ── */
    .sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(to top, #fff 60%, transparent);
        pointer-events: none;
        opacity: 0;
        transform: translateY(100%);
        transition: opacity .3s ease, transform .3s ease;
    }
    .sticky-cta.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .sticky-cta-btn {
        display: block;
        width: 100%;
        background: #F39200;
        color: #fff;
        text-align: center;
        border-radius: 16px;
        padding: 15px;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(243,146,0,.4);
        pointer-events: all;
        transition: background .2s, transform .1s;
    }
    .sticky-cta-btn:active {
        background: #d07d00;
        transform: scale(.98);
        color: #fff;
    }
    body:has(.sticky-cta.is-visible) { padding-bottom: 80px; }

    .petnest-hero-btns.petnest-hero-btnsv2 {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        max-width: 340px;
        margin: 0 auto;
    }
    .petnest-hero-btnsv2 a.btn-primay {
        display: block;
        text-align: center;
        padding: 17px 24px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 16px;
        min-height: 54px;
        line-height: 1.2;
    }
    .petnest-hero-btnsv2 a.btn-primay.btn-outline-landing {
        background: rgba(255,255,255,.75) !important;
        border: 1.5px solid rgba(84,49,111,.2) !important;
        color: #54316f !important;
    }
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN «Cómo funciona» — colores de marca
══════════════════════════════════════════════════════════════════ */
.petnest-services-grid-v2 .petnest-services-wrapper span {
    color: #54316f;
}
.petnest-services-wrapper-v2:hover {
    background-color: #F9F5EB !important;
}

/* ══════════════════════════════════════════════════════════════════
   Nuestra historia + FAQ — imágenes contenidas en desktop
══════════════════════════════════════════════════════════════════ */
.our-storyv2-right figure img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
}
.petnest-faq-left figure img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   Decoración subrayado «familias» — anclada a la palabra
══════════════════════════════════════════════════════════════════ */
.our-storyv2-left .section-heading-v2 h2::before {
    display: none !important;
}
.deco-underline {
    position: relative;
    display: inline-block;
}
.deco-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 120%;
    height: 13px;
    background-image: url(../images/home-v2/hero-vactor.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════
   SECCIONES — optimización táctil en móvil
══════════════════════════════════════════════════════════════════ */

@media (max-width: 767.98px) {

    /* Cómo funciona: tarjetas en columna con iconos más grandes */
    .petnest-services-wrapper.petnest-services-wrapper-v2 {
        padding: 24px 20px !important;
        border-radius: 18px !important;
    }
    .petnest-services-wrapper-v2 span i {
        font-size: 1.8rem;
    }
    .petnest-services-wrapper-v2 h3 {
        font-size: 1.1rem;
    }

    /* Tips: padding reducido, sin overflow */
    .our-servicesv2 .card-body { padding: 20px !important; }
    .our-servicesv2 .card-body .d-flex { gap: 14px !important; }

    /* FAQ: acordeón con mejor target táctil */
    .accordion-button {
        padding: 16px 20px;
        font-size: .95rem;
    }
    .accordion-body {
        padding: 12px 20px 20px;
        font-size: .9rem;
        line-height: 1.65;
    }

    /* FAQ: imagen más pequeña en móvil */
    .petnest-faq-left figure img {
        max-height: 180px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    /* Nuestra historia: img centrada arriba */
    .our-storyv2-right figure img {
        width: 100%;
        max-height: 240px;
        object-fit: cover;
        border-radius: 20px;
    }

    /* Contacto: campos a full-width, botón táctil */
    .petnest-contact-left input,
    .petnest-contact-left textarea {
        font-size: 1rem;
        padding: 14px 16px;
        border-radius: 12px;
    }
    .petnest-contact-left input[type="submit"] {
        min-height: 52px;
        font-size: 1rem;
        border-radius: 14px;
    }

    /* Footer: centrar columnas */
    .footer-petnest-main .col-md-6,
    .footer-petnest-main .col-md-3 {
        text-align: center;
    }
    .petnest-footer-des ul {
        justify-content: center;
    }
}


/* ══════════════════════════════════════════════════════════════════
   HERO — tablet (768 – 991 px): hero móvil con más respiración
══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 991.98px) {
    .petnest-herov2-wrapper {
        padding-left: 48px;
        padding-right: 48px;
    }
    .hero-search-card {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ══════════════════════════════════════════════════════════════════
   HERO — versión escritorio (≥ 992 px)
══════════════════════════════════════════════════════════════════ */

@media (min-width: 992px) {
    /* Reducir el padding excesivo que pone style.css (270px arriba) */
    .petnest-herov2 {
        padding-top: 220px !important;
        padding-bottom: 260px;
    }

    /* Wrapper: columna única centrada */
    .petnest-herov2-wrapper {
        display: block;
        text-align: center;
        padding: 0;
    }

    .petnest-herov2-wrapper h1 {
        font-size: clamp(1.9rem, 3.4vw, 3.4rem) !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        margin-bottom: 32px !important;
    }

    .petnest-herov2-wrapper > p {
        font-size: 1.35rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0;
    }

    .hero-secondary-cta {
        font-size: .95rem;
        color: #666;
        margin-top: 18px;
        margin-bottom: 0;
    }
    .hero-secondary-cta a {
        color: #54316f;
        font-weight: 700;
        text-decoration: none;
    }
    .hero-secondary-cta a:hover {
        text-decoration: underline;
    }

    /* ── Buscador desktop: barra horizontal dentro de la card ── */
    .hero-search-card {
        max-width: 820px;
        margin: 32px auto 0;
        padding: 12px;
        border-radius: 18px;
    }

    /* Form en una sola fila: [🔍 input] [select] [select] [botón] */
    .hero-search-card form {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Campo de texto ocupa todo el espacio libre */
    .hero-search-field {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        padding: 10px 14px;
    }

    /* Selects en fila, sin grid — flex explícito compatible con Safari */
    .hero-search-selects {
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
    }

    .hero-search-select-wrap {
        flex-shrink: 0;
    }

    /* Ocultar labels en desktop */
    .hero-search-select-wrap label {
        display: none;
    }

    .hero-search-select {
        height: 46px;
        width: auto;
        min-width: 120px;
        border-radius: 12px;
        padding: 0 32px 0 12px;
        font-size: .88rem;
    }

    /* Botón compacto */
    .hero-search-submit {
        width: auto;
        flex-shrink: 0;
        padding: 0 24px;
        height: 46px;
        font-size: .95rem;
        border-radius: 12px;
        white-space: nowrap;
    }
}
