/* ============================================================
   PATITAS CRD — Sistema de Diseño Principal
   Fuentes: Poppins (títulos) + Nunito (cuerpo)
   Paleta: Naranja cálido + Verde esperanza + Crema suave
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --naranja:         #FF6B35;
    --naranja-claro:   #FF8C5A;
    --naranja-oscuro:  #E8521E;
    --naranja-bg:      #FFF1EB;
    --verde:           #2ECC71;
    --verde-oscuro:    #27AE60;
    --verde-bg:        #EAFAF1;
    --azul:            #3498DB;
    --azul-bg:         #EBF5FB;
    --rojo:            #E74C3C;
    --rojo-bg:         #FDEDEC;
    --amarillo:        #F1C40F;
    --crema:           #FDF8F4;
    --gris-claro:      #F8F9FA;
    --gris-medio:      #E9ECEF;
    --gris-texto:      #6C757D;
    --texto:           #2C3E50;
    --texto-claro:     #5D6D7E;
    --blanco:          #FFFFFF;
    --sombra-sm:       0 2px 8px rgba(0,0,0,.08);
    --sombra-md:       0 4px 20px rgba(0,0,0,.10);
    --sombra-lg:       0 8px 40px rgba(0,0,0,.12);
    --radio:           14px;
    --radio-sm:        8px;
    --radio-full:      100px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--texto);
    background: var(--blanco);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .brand-name, .hero-title {
    font-family: 'Poppins', sans-serif;
    color: var(--texto);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.bg-cream { background: var(--crema); }

/* ── Barra de Emergencia ───────────────────────────────────── */
.emergencia-bar {
    background: var(--rojo);
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    z-index: 1050;
}
.emergencia-bar a { color: #ffe0de; transition: color .2s; }
.emergencia-bar a:hover { color: #fff; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-patitas {
    background: var(--blanco);
    box-shadow: var(--sombra-sm);
    padding: 10px 0;
    z-index: 1040;
}

.brand-paw { font-size: 1.6rem; }
.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--naranja);
}
.brand-city {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gris-texto);
    vertical-align: super;
}

.nav-pill {
    border-radius: var(--radio-full) !important;
    padding: 5px 10px !important;
    font-size: .82rem;
    font-weight: 600;
    color: var(--texto-claro) !important;
    transition: all .2s;
    white-space: nowrap;
}
.nav-pill:hover, .nav-pill.active {
    background: var(--naranja-bg) !important;
    color: var(--naranja) !important;
}
.nav-ayuda:hover, .nav-ayuda.active {
    background: var(--verde-bg) !important;
    color: var(--verde-oscuro) !important;
}

/* Botones Navbar */
.btn-naranja {
    background: var(--naranja);
    color: var(--blanco) !important;
    border: 2px solid var(--naranja);
    border-radius: var(--radio-full);
    font-weight: 700;
    transition: all .2s;
    padding: 6px 18px;
}
.btn-naranja:hover {
    background: var(--naranja-oscuro);
    border-color: var(--naranja-oscuro);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,.35);
}
.btn-outline-naranja {
    background: transparent;
    color: var(--naranja) !important;
    border: 2px solid var(--naranja);
    border-radius: var(--radio-full);
    font-weight: 700;
    transition: all .2s;
    padding: 6px 18px;
}
.btn-outline-naranja:hover {
    background: var(--naranja);
    color: var(--blanco) !important;
}
.btn-outline-verde {
    background: transparent;
    color: var(--verde-oscuro) !important;
    border: 2px solid var(--verde-oscuro);
    border-radius: var(--radio-full);
    font-weight: 700;
    transition: all .2s;
    padding: 6px 18px;
}
.btn-outline-verde:hover {
    background: var(--verde-oscuro);
    color: var(--blanco) !important;
}
.btn-publicar {
    background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
    color: var(--blanco) !important;
    border: none;
    border-radius: var(--radio-full);
    font-weight: 700;
    font-size: .82rem;
    padding: 6px 12px;
    transition: all .25s;
    box-shadow: 0 2px 8px rgba(255,107,53,.3);
    white-space: nowrap;
}
.btn-publicar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,53,.4);
}
.btn-user {
    background: var(--gris-claro);
    border: 1px solid var(--gris-medio);
    border-radius: var(--radio-full);
    padding: 5px 12px;
    font-weight: 600;
    color: var(--texto) !important;
    transition: all .2s;
}
.btn-user:hover { background: var(--naranja-bg); }

.avatar-sm {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-placeholder-sm {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--naranja);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

/* Dropdown */
.dropdown-menu { border-radius: var(--radio); padding: 8px; }
.dropdown-item { border-radius: var(--radio-sm); padding: 8px 12px; font-weight: 600; transition: background .15s; }
.dropdown-item:hover { background: var(--naranja-bg); }

/* ── Flash Alerts ───────────────────────────────────────────── */
.alert-flash {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1030;
}
.alert-flash-success {
    background: #D5F5E3;
    color: #1E8449;
    border-bottom: 2px solid #2ECC71;
}
.alert-flash-error {
    background: #FADBD8;
    color: #922B21;
    border-bottom: 2px solid #E74C3C;
}
.alert-flash .btn-close { margin-left: auto; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #FFF8F5 0%, #FFF1E6 50%, #FDEBD0 100%);
    padding: 60px 0 120px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,107,53,.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(46,204,113,.08) 0%, transparent 40%);
}
.min-vh-60 { min-height: 60vh; }
.hero-badge {
    display: inline-block;
    background: var(--naranja-bg);
    color: var(--naranja-oscuro);
    border: 1px solid rgba(255,107,53,.3);
    border-radius: var(--radio-full);
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: .3px;
}
.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}
.text-highlight {
    background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--texto-claro);
    max-width: 520px;
}
.btn-hero-primary {
    background: var(--naranja);
    color: var(--blanco) !important;
    border: none;
    border-radius: var(--radio-full);
    padding: 12px 28px;
    font-weight: 800;
    font-size: 1rem;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(255,107,53,.35);
}
.btn-hero-primary:hover {
    background: var(--naranja-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,.4);
}
.btn-hero-secondary {
    background: var(--blanco);
    color: var(--naranja) !important;
    border: 2px solid var(--naranja);
    border-radius: var(--radio-full);
    padding: 12px 28px;
    font-weight: 800;
    font-size: 1rem;
    transition: all .25s;
}
.btn-hero-secondary:hover {
    background: var(--naranja-bg);
    transform: translateY(-2px);
}

/* Hero illustration */
.hero-illustration {
    position: relative;
    width: 320px; height: 320px;
}
.hero-circle-1 {
    position: absolute;
    width: 260px; height: 260px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255,107,53,.12);
    animation: floatCircle 4s ease-in-out infinite;
}
.hero-circle-2 {
    position: absolute;
    width: 180px; height: 180px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255,107,53,.18);
    animation: floatCircle 4s ease-in-out infinite reverse;
}
.hero-emoji {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    font-size: 6rem;
    animation: floatEmoji 3s ease-in-out infinite;
}
.hero-emoji-2 {
    position: absolute;
    top: 65%; left: 65%;
    font-size: 3rem;
    animation: floatEmoji 3.5s ease-in-out infinite reverse;
}
.hero-paw-float {
    position: absolute;
    top: 15%; left: 20%;
    font-size: 2rem;
    animation: floatPaw 5s ease-in-out infinite;
    opacity: .6;
}
@keyframes floatCircle { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.05)} }
@keyframes floatEmoji  { 0%,100%{transform:translate(-50%,-55%) rotate(-5deg)} 50%{transform:translate(-50%,-60%) rotate(5deg)} }
@keyframes floatPaw    { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-15px) rotate(15deg)} }

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-md);
    padding: 20px 30px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}
.stat-card { text-align: center; flex: 1; }
.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.stat-label { font-size: 12px; color: var(--gris-texto); font-weight: 600; line-height: 1.3; }
.stat-divider {
    width: 1px; height: 50px;
    background: var(--gris-medio);
    flex-shrink: 0; margin: 0 20px;
}

/* ── Módulos principales ─────────────────────────────────────── */
.modulo-card {
    display: flex; flex-direction: column;
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 28px 22px;
    box-shadow: var(--sombra-sm);
    border: 2px solid transparent;
    transition: all .3s;
    height: 100%;
    cursor: pointer;
}
.modulo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-lg);
}
.modulo-perdidas:hover  { border-color: var(--rojo); }
.modulo-adopcion:hover  { border-color: var(--amarillo); }
.modulo-vets:hover      { border-color: var(--azul); }
.modulo-ayuda:hover     { border-color: var(--verde); }

.modulo-icon { font-size: 2.5rem; margin-bottom: 14px; }
.modulo-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.modulo-card p  { font-size: .88rem; color: var(--gris-texto); flex-grow: 1; }
.modulo-cta     { font-size: .85rem; font-weight: 700; color: var(--naranja); margin-top: 12px; }

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.section-title { font-size: 1.4rem; font-weight: 700; margin: 0; }
.btn-ver-mas {
    font-size: 13px; font-weight: 700;
    color: var(--naranja);
    border: 1px solid var(--naranja);
    border-radius: var(--radio-full);
    padding: 5px 14px;
    transition: all .2s;
}
.btn-ver-mas:hover { background: var(--naranja); color: var(--blanco); }

/* ── Mascota Card Mini (home) ───────────────────────────────── */
.mascota-card-mini {
    display: block;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    transition: all .25s;
    background: var(--blanco);
}
.mascota-card-mini:hover { transform: translateY(-3px); box-shadow: var(--sombra-md); }
.mascota-foto-mini {
    position: relative; height: 120px;
    background: var(--gris-claro);
    overflow: hidden;
}
.mascota-foto-mini img { width: 100%; height: 100%; object-fit: cover; }
.mascota-emoji-mini {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 3rem;
}
.mascota-tipo-badge {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,.6); color: #fff;
    border-radius: var(--radio-full); padding: 2px 8px;
    font-size: 11px; font-weight: 700;
}
.mascota-info-mini { padding: 8px 10px; }
.mascota-nombre-mini { font-weight: 700; font-size: .88rem; }
.mascota-barrio-mini { font-size: .78rem; color: var(--gris-texto); }

/* ── Mascota Card Full (lista) ──────────────────────────────── */
.mascota-card-full {
    display: block;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    background: var(--blanco);
    border: 2px solid transparent;
    transition: all .25s;
    height: 100%;
}
.mascota-card-full:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-md);
}
.mascota-card-full.perdida:hover  { border-color: var(--rojo); }
.mascota-card-full.encontrada:hover { border-color: var(--amarillo); }
.mc-foto {
    position: relative; height: 180px;
    background: var(--gris-claro);
    overflow: hidden;
}
.mc-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mascota-card-full:hover .mc-foto img { transform: scale(1.05); }
.mc-foto-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 4rem;
}
.mc-tipo-label {
    position: absolute; top: 10px; left: 10px;
    border-radius: var(--radio-full); padding: 3px 10px;
    font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
}
.mc-tipo-label.perdida   { background: rgba(231,76,60,.85);  color: #fff; }
.mc-tipo-label.encontrada{ background: rgba(243,156,18,.85); color: #fff; }
.mc-body { padding: 14px; }
.mc-nombre { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.mc-meta {
    display: flex; gap: 12px;
    font-size: 12px; color: var(--gris-texto); margin-bottom: 8px;
}
.mc-desc {
    font-size: .82rem; color: var(--gris-texto);
    margin-bottom: 10px; line-height: 1.5;
}
.mc-footer { display: flex; justify-content: space-between; align-items: center; }
.mc-especie {
    font-size: 12px; font-weight: 700;
    background: var(--gris-claro); color: var(--texto-claro);
    border-radius: var(--radio-full); padding: 3px 10px;
}
.mc-recompensa {
    font-size: 12px; font-weight: 700;
    background: #FEF9E7; color: #B7950B;
    border-radius: var(--radio-full); padding: 3px 10px;
}

/* ── Adopcion Card Home ─────────────────────────────────────── */
.adopcion-card-home {
    display: block;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    background: var(--blanco);
    transition: all .25s;
}
.adopcion-card-home:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.adopcion-foto { height: 180px; background: var(--gris-claro); overflow: hidden; position: relative; }
.adopcion-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.adopcion-card-home:hover .adopcion-foto img { transform: scale(1.05); }
.adopcion-emoji {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 4rem;
}
.adopcion-info { padding: 14px; }
.adopcion-info h6 { font-weight: 700; margin-bottom: 4px; }
.adopcion-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge-mini {
    font-size: 11px; font-weight: 700; border-radius: var(--radio-full);
    padding: 2px 8px;
}
.badge-mini.verde  { background: var(--verde-bg);  color: var(--verde-oscuro); }
.badge-mini.azul   { background: var(--azul-bg);   color: #1a6ea8; }
.badge-mini.naranja{ background: var(--naranja-bg); color: var(--naranja-oscuro); }
.badge-mini.rojo   { background: var(--rojo-bg);   color: var(--rojo); }

/* ── Emergencias Section ─────────────────────────────────────── */
.emergencias-section {
    background: linear-gradient(135deg, #2C3E50, #34495E);
}
.emergencia-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radio);
    padding: 18px;
    backdrop-filter: blur(10px);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all .25s;
}
.emergencia-card:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.emergencia-card h6 { font-weight: 700; margin-bottom: 6px; }
.emergencia-card p  { font-size: .85rem; opacity: .8; margin-bottom: 10px; }
.emergencia-pulso {
    position: absolute; top: 14px; right: 14px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #2ECC71;
    box-shadow: 0 0 0 0 rgba(46,204,113,.5);
    animation: pulso 2s infinite;
}
@keyframes pulso {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
    70%  { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.emergencia-tel, .emergencia-wa {
    display: inline-block;
    border-radius: var(--radio-full); padding: 5px 14px;
    font-size: 13px; font-weight: 700; color: #fff;
    transition: all .2s; margin-right: 6px;
}
.emergencia-tel { background: rgba(231,76,60,.7); }
.emergencia-tel:hover { background: var(--rojo); }
.emergencia-wa  { background: rgba(37,211,102,.5); }
.emergencia-wa:hover  { background: #25D366; }

/* ── Ayuda card home ─────────────────────────────────────────── */
.ayuda-card-home {
    display: block;
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 20px;
    box-shadow: var(--sombra-sm);
    border: 2px solid transparent;
    transition: all .25s;
    position: relative;
    height: 100%;
}
.ayuda-card-home:hover { transform: translateY(-3px); box-shadow: var(--sombra-md); border-color: var(--verde); }
.ayuda-card-home.urgente { border-color: var(--rojo); }
.urgente-badge {
    display: inline-block;
    background: var(--rojo); color: #fff;
    border-radius: var(--radio-full); padding: 3px 10px;
    font-size: 11px; font-weight: 700; margin-bottom: 10px;
    animation: urgentePulse 2s ease-in-out infinite;
}
@keyframes urgentePulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.ayuda-card-home h6 { font-weight: 700; margin-bottom: 6px; }
.ayuda-footer-mini {
    display: flex; justify-content: space-between; align-items: center;
}
.badge-tipo-ayuda {
    background: var(--verde-bg); color: var(--verde-oscuro);
    border-radius: var(--radio-full); padding: 2px 10px;
    font-size: 11px; font-weight: 700;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, #FFF1EB, #FFF8F5); }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-emoji { font-size: 4rem; margin-bottom: 16px; animation: floatPaw 4s ease-in-out infinite; }
.cta-inner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-inner p  { color: var(--texto-claro); margin-bottom: 24px; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header-section {
    padding: 50px 0 40px;
    color: #fff;
    margin-bottom: 0;
}
.page-header-section h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-header-section p  { opacity: .9; max-width: 500px; }
.bg-perdidas   { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.bg-adopcion   { background: linear-gradient(135deg, #F39C12, #D68910); }
.bg-vets       { background: linear-gradient(135deg, #3498DB, #2980B9); }
.bg-ayuda      { background: linear-gradient(135deg, #27AE60, #1E8449); }
.btn-white {
    background: #fff; color: var(--naranja) !important;
    border: none; border-radius: var(--radio-full);
    font-weight: 700; padding: 8px 22px; transition: all .2s;
}
.btn-white:hover { background: var(--naranja-bg); transform: translateY(-1px); }

/* ── Filtros Bar ─────────────────────────────────────────────── */
.filtros-bar { border-radius: var(--radio) !important; }
.quick-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-tab {
    padding: 6px 18px;
    border-radius: var(--radio-full);
    font-size: 13px; font-weight: 700;
    background: var(--gris-claro);
    color: var(--texto-claro);
    border: 2px solid transparent;
    transition: all .2s; cursor: pointer;
}
.quick-tab:hover, .quick-tab.active { background: var(--naranja-bg); color: var(--naranja); border-color: var(--naranja); }
.quick-tab.perdida.active   { background: var(--rojo-bg);   color: var(--rojo);   border-color: var(--rojo); }
.quick-tab.encontrada.active{ background: #FEF9E7; color: #B7950B; border-color: var(--amarillo); }

/* ── Form Card ───────────────────────────────────────────────── */
.form-card {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-md);
    overflow: hidden;
}
.form-card-header {
    background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
    color: #fff; padding: 20px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem; font-weight: 700;
}
.form-card-body { padding: 28px; }

.form-control, .form-select {
    border-radius: var(--radio-sm);
    border: 1.5px solid var(--gris-medio);
    padding: 10px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: .93rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
.form-label { font-weight: 700; font-size: .88rem; margin-bottom: 5px; }

/* Tipo selector */
.tipo-selector { display: flex; gap: 12px; }
.tipo-option {
    flex: 1; display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: var(--radio);
    border: 2px solid var(--gris-medio);
    cursor: pointer; transition: all .2s;
    user-select: none;
}
.tipo-option input[type="radio"] { display: none; }
.tipo-option:hover { border-color: var(--naranja); background: var(--naranja-bg); }
.tipo-option.selected { border-color: var(--naranja); background: var(--naranja-bg); }
.tipo-icon { font-size: 1.6rem; }
.tipo-text strong { display: block; font-size: .9rem; }
.tipo-text small  { color: var(--gris-texto); font-size: .8rem; }

/* Foto upload */
.foto-upload-zone {
    border: 2px dashed var(--gris-medio);
    border-radius: var(--radio);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--gris-claro);
}
.foto-upload-zone:hover, .foto-upload-zone.dragover {
    border-color: var(--naranja);
    background: var(--naranja-bg);
}
.foto-preview {
    max-height: 200px;
    border-radius: var(--radio-sm);
    margin: 0 auto;
}
.text-naranja { color: var(--naranja); }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { padding: 60px 20px; }
.empty-emoji { font-size: 4rem; margin-bottom: 16px; }
.empty-state h4 { font-weight: 700; margin-bottom: 8px; }

/* ── Auth Views ──────────────────────────────────────────────── */
.auth-container {
    min-height: calc(100vh - 110px);
    display: flex; align-items: center;
    background: linear-gradient(135deg, #FFF8F5 0%, #FFF1E6 100%);
    padding: 40px 0;
}
.auth-card {
    background: var(--blanco);
    border-radius: 20px;
    box-shadow: var(--sombra-lg);
    overflow: hidden;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.auth-card-header {
    background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
    padding: 32px;
    text-align: center;
    color: #fff;
}
.auth-card-header .auth-logo { font-size: 3rem; margin-bottom: 8px; }
.auth-card-header h3 { font-weight: 800; margin: 0; }
.auth-card-header p  { opacity: .85; font-size: .9rem; margin: 4px 0 0; }
.auth-card-body { padding: 32px; }

/* ── Veterinarias ────────────────────────────────────────────── */
.vet-card {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-sm);
    padding: 20px;
    border: 2px solid transparent;
    transition: all .25s;
    height: 100%;
}
.vet-card:hover { box-shadow: var(--sombra-md); border-color: var(--azul); transform: translateY(-2px); }
.vet-tipo-badge {
    display: inline-block;
    border-radius: var(--radio-full); padding: 3px 12px;
    font-size: 11px; font-weight: 700; margin-bottom: 10px;
}
.vet-tipo-guardia_24h { background: #FADBD8; color: var(--rojo); }
.vet-tipo-veterinaria { background: var(--azul-bg); color: var(--azul); }
.vet-tipo-zoonosis    { background: var(--verde-bg); color: var(--verde-oscuro); }
.vet-tipo-ong         { background: var(--naranja-bg); color: var(--naranja-oscuro); }
.vet-tipo-refugio     { background: #F3E8FF; color: #7C3AED; }
.vet-tipo-otro        { background: var(--gris-claro); color: var(--gris-texto); }
.vet-verificado { font-size: 12px; color: var(--verde-oscuro); font-weight: 700; }
.vet-gratis-badge {
    background: var(--verde-bg); color: var(--verde-oscuro);
    border-radius: var(--radio-full); padding: 2px 10px;
    font-size: 11px; font-weight: 700;
}
.vet-24h-badge {
    background: var(--rojo-bg); color: var(--rojo);
    border-radius: var(--radio-full); padding: 2px 10px;
    font-size: 11px; font-weight: 700;
    animation: urgentePulse 2s ease-in-out infinite;
}

/* ── Perfil ──────────────────────────────────────────────────── */
.perfil-header {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: #fff;
    padding: 50px 0 80px;
}
.perfil-avatar {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--sombra-md);
}
.perfil-avatar-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--naranja);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; color: #fff;
    border: 4px solid #fff;
    box-shadow: var(--sombra-md);
}
.perfil-alias { font-size: 1.6rem; font-weight: 800; }
.perfil-stats-card {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-md);
    padding: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer-patitas { background: var(--naranja-oscuro); margin-top: 0; }
.footer-wave svg { display: block; }
.footer-body { background: var(--naranja-oscuro); padding: 50px 0 30px; color: rgba(255,255,255,.85); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-paw   { font-size: 1.8rem; }
.footer-brand h5{ font-weight: 800; color: #fff; margin: 0; }
.footer-desc  { font-size: .875rem; opacity: .8; line-height: 1.6; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: 16px; font-size: .9rem; letter-spacing: .5px; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    transition: all .2s;
    display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-social {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all .2s;
}
.footer-social:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 30px 0 20px; }
.footer-bottom { font-size: .825rem; opacity: .7; }
.footer-bottom a { color: rgba(255,255,255,.9); text-decoration: underline; }

/* ── Ayuda Solicitud ─────────────────────────────────────────── */
.ayuda-solicitud-card {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-sm);
    padding: 20px;
    border-left: 4px solid var(--verde);
    transition: all .25s;
    height: 100%;
}
.ayuda-solicitud-card:hover { box-shadow: var(--sombra-md); transform: translateY(-2px); }
.ayuda-solicitud-card.urgente { border-left-color: var(--rojo); }

/* ── Paginación Bootstrap override ─────────────────────────── */
.page-link {
    border-radius: var(--radio-sm) !important;
    margin: 0 3px;
    color: var(--naranja);
    border-color: var(--gris-medio);
    font-weight: 600;
}
.page-item.active .page-link { background: var(--naranja); border-color: var(--naranja); }
.page-link:hover { background: var(--naranja-bg); color: var(--naranja); }

/* ── Detalle de mascota ──────────────────────────────────────── */
.detalle-foto-principal {
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-md);
    height: 380px;
    background: var(--gris-claro);
}
.detalle-foto-principal img { width: 100%; height: 100%; object-fit: cover; }
.detalle-foto-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 8rem;
}
.detalle-info-card {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-sm);
    padding: 24px;
}
.detalle-estado-badge {
    display: inline-block;
    border-radius: var(--radio-full); padding: 5px 16px;
    font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.estado-activo   { background: var(--naranja-bg); color: var(--naranja-oscuro); }
.estado-resuelto { background: var(--verde-bg);   color: var(--verde-oscuro); }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gris-claro);
    font-size: .9rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--gris-texto); font-weight: 600; }
.info-value { font-weight: 700; }

/* ── Comentarios ─────────────────────────────────────────────── */
.comentario-item {
    background: var(--gris-claro);
    border-radius: var(--radio);
    padding: 14px;
    margin-bottom: 12px;
}
.comentario-donacion {
    background: var(--verde-bg);
    border-left: 3px solid var(--verde);
}
.comentario-avatar {
    width: 36px; height: 36px;
    border-radius: 50%; object-fit: cover;
}
.comentario-avatar-placeholder {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--naranja); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-stats { max-width: 320px; padding: 16px 20px; }
    .stat-number { font-size: 1.5rem; }
    .stat-divider { margin: 0 12px; }
    .hero-title { font-size: 1.8rem; }
    .tipo-selector { flex-direction: column; }
    .form-card-body { padding: 20px; }
    .auth-card-body  { padding: 24px; }
}

@media (max-width: 576px) {
    .hero-section { padding: 40px 0 100px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Bootstrap form-switch: corregir padding cuando está dentro de col ── */
.toggle-patitas {
    padding: 12px 12px 12px 3.5em;
}
.toggle-patitas .form-check-input {
    width: 2.5em;
    height: 1.3em;
    margin-top: 0;
    margin-left: -3em;
    cursor: pointer;
}
.toggle-patitas .form-check-label {
    cursor: pointer;
    line-height: 1.3em;
}

/* ── Navbar badges (mensajes y notificaciones) ──────────────── */
.navbar-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gris-claro);
    border: 1px solid var(--gris-medio);
    color: var(--texto-claro);
    font-size: 1rem;
    transition: all .2s;
    text-decoration: none;
}
.navbar-icon-btn:hover {
    background: var(--naranja-bg);
    color: var(--naranja);
    border-color: var(--naranja);
}
.navbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--rojo);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 20px;
    padding: 1px 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    border: 2px solid #fff;
}

/* ── Mensajería ─────────────────────────────────────────────── */
.avatar-conv {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-conv-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--naranja);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}
.conv-row {
    transition: background .15s;
}
.conv-row:hover {
    background: var(--naranja-bg);
}
.conv-unread {
    background: #FFFBF8;
}
.badge-noLeidos {
    background: var(--naranja);
    color: #fff;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Chat */
.chat-container {
    height: 460px;
    overflow-y: auto;
    padding: 20px;
    background: #F8F9FA;
    scroll-behavior: smooth;
}
.chat-date-divider {
    text-align: center;
    margin: 16px 0;
}
.chat-date-divider span {
    background: var(--gris-medio);
    color: var(--gris-texto);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 12px;
}
.chat-bubble-wrap {
    display: flex;
    margin-bottom: 10px;
}
.chat-bubble-wrap.mio   { justify-content: flex-end; }
.chat-bubble-wrap.otro  { justify-content: flex-start; }
.chat-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.5;
    word-break: break-word;
}
.bubble-mio {
    background: var(--naranja);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.bubble-otro {
    background: #fff;
    color: var(--texto);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.chat-time {
    font-size: 11px;
    opacity: .7;
    text-align: right;
    margin-top: 4px;
}
.bubble-otro .chat-time { text-align: left; }
.chat-asunto {
    font-size: 11px;
    font-weight: 700;
    opacity: .8;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.3);
    padding-bottom: 4px;
}
.chat-ref-link {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: inherit;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    text-decoration: none;
}
.bubble-otro .chat-ref-link {
    background: var(--naranja-bg);
    color: var(--naranja);
}
.chat-ref-link:hover { opacity: .8; }

/* ── Notificaciones ─────────────────────────────────────────── */
.notif-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    transition: background .15s;
}
.notif-row:hover { background: var(--naranja-bg); }
.notif-unread   { background: #FFFBF8; }
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gris-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--naranja);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── Campañas ────────────────────────────────────────────────── */
.campania-card {
    transition: transform .25s, box-shadow .25s;
    border-radius: var(--radio) !important;
}
.campania-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(142,68,173,.15) !important;
}

/* ── Reputación / Ranking ───────────────────────────────────── */
.podio-badge {
    display: inline-block;
    color: #fff;
    border-radius: var(--radio-full);
    padding: 4px 14px;
    font-size: .85rem;
    font-weight: 800;
    margin-top: 6px;
}

/* ── Nivel badge en perfil ──────────────────────────────────── */
.nivel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radio-full);
    padding: 4px 14px;
    font-size: .8rem;
    font-weight: 800;
    background: var(--naranja-bg);
    color: var(--naranja-oscuro);
}

/* ── Navbar alias truncado ──────────────────────────────────── */
.navbar-alias-text {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
/* Navbar compacto cuando hay muchos items */
@media (min-width: 992px) and (max-width: 1300px) {
    .nav-pill {
        padding: 4px 8px !important;
        font-size: .78rem;
    }
    .brand-paw { font-size: 1.3rem; }
    .brand-name { font-size: 1rem; }
    .brand-city { display: none; }
    .btn-publicar { padding: 5px 10px; font-size: .78rem; }
    .navbar-icon-btn { width: 30px; height: 30px; font-size: .85rem; }
}
@media (min-width: 1301px) and (max-width: 1440px) {
    .nav-pill {
        padding: 5px 9px !important;
        font-size: .8rem;
    }
}

/* ── SweetAlert2 – ajuste de fuente al proyecto ──────────────── */
.swal-patitas {
    font-family: var(--font-body, 'Nunito', sans-serif) !important;
    border-radius: var(--radio, 12px) !important;
}
.swal2-loader {
    border-color: var(--naranja) transparent var(--naranja) transparent !important;
}

/* ── Lightbox (SweetAlert2) ───────────────────────────────────── */
[data-lightbox] { cursor: zoom-in; }
.detalle-foto-principal img { cursor: zoom-in; }
.swal-lightbox {
    background: rgba(0,0,0,.92) !important;
    border-radius: 12px !important;
    padding: 6px !important;
    max-width: 95vw !important;
}
.swal-lightbox .swal2-image {
    max-height: 88vh;
    max-width: 90vw;
    width: auto !important;
    border-radius: 8px;
    margin: 0;
    object-fit: contain;
}
.swal-lightbox .swal2-close {
    color: #fff;
    font-size: 1.8rem;
    top: 4px;
    right: 8px;
}
