/* ============================================================
   República Animal — Perdidos & Encontrados
   perdidos.css — Estilos del plugin
   ============================================================ */

:root {
  --rap-primary:    #003366;
  --rap-accent:     #FF6B35;
  --rap-green:      #2D7A4F;
  --rap-red:        #D32F2F;
  --rap-purple:     #5C6BC0;
  --rap-white:      #FFFFFF;
  --rap-gray-100:   #F8F8F8;
  --rap-gray-200:   #EEEEEE;
  --rap-gray-500:   #888888;
  --rap-gray-900:   #1A1A1A;
  --rap-radius:     12px;
  --rap-shadow:     0 2px 12px rgba(0,51,102,.10);
  --rap-transition: .2s ease;
}

/* ============================================================
   BOTONES
   ============================================================ */
.rap-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 100px;
  font-weight: 700; font-size: .875rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: all var(--rap-transition);
}
.rap-btn--primary  { background: var(--rap-primary); color: #fff; }
.rap-btn--primary:hover { background: #1a5080; color: #fff; }
.rap-btn--accent   { background: var(--rap-accent); color: #fff; }
.rap-btn--accent:hover { background: #e05520; color: #fff; }
.rap-btn--outline  { background: transparent; color: var(--rap-primary); border-color: var(--rap-primary); }
.rap-btn--outline:hover { background: var(--rap-primary); color: #fff; }
.rap-btn--success  { background: var(--rap-green); color: #fff; }
.rap-btn--success:hover { background: #3a9d65; color: #fff; }
.rap-btn--sm       { padding: 6px 14px; font-size: .8rem; }
.rap-btn--large    { padding: 14px 36px; font-size: 1rem; }

/* ============================================================
   ALERTAS FLASH
   ============================================================ */
.rap-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-radius: var(--rap-radius);
  margin-bottom: 24px; font-size: .95rem; line-height: 1.5;
}
.rap-alert span { font-size: 1.25rem; flex-shrink: 0; }
.rap-alert--success { background: #E8F5E9; border: 1px solid #A5D6A7; color: #1B5E20; }
.rap-alert--info    { background: #E3F2FD; border: 1px solid #90CAF9; color: #0D47A1; }
.rap-alert--error   { background: #FFEBEE; border: 1px solid #FFCDD2; color: #B71C1C; }

/* ============================================================
   LOGIN PROMPT
   ============================================================ */
.rap-login-prompt {
  text-align: center; padding: 3rem 2rem;
  background: var(--rap-gray-100); border-radius: var(--rap-radius);
  border: 2px dashed var(--rap-gray-200);
}
.rap-login-icon { font-size: 3rem; margin-bottom: 1rem; }
.rap-login-prompt h3 { color: var(--rap-primary); margin-bottom: .5rem; }
.rap-login-prompt p { color: var(--rap-gray-500); margin-bottom: 1.5rem; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.rap-form-wrapper {
  max-width: 860px; margin: 0 auto;
}
.rap-form-header {
  margin-bottom: 2rem; text-align: center;
  padding: 2rem; background: var(--rap-primary); border-radius: var(--rap-radius);
  color: white;
}
.rap-form-header h2 { color: white; font-size: 1.75rem; margin: 0 0 .5rem; }
.rap-form-header p  { color: rgba(255,255,255,.75); margin: 0; }

/* Hero con imagen ilustrada */
.rap-form-header--hero {
  background-image: url('../img/hero-perdidos.jpg');
  background-size: cover;
  background-position: center center;
  background-color: #001e40;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem;
  text-align: center;
}
.rap-form-header--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,20,50,.15) 0%,
    rgba(0,20,50,.45) 30%,
    rgba(0,20,50,.45) 70%,
    rgba(0,20,50,.15) 100%
  );
}
.rap-form-header__text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}
.rap-form-header--hero h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 .75rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.rap-form-header--hero p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.rap-fieldset {
  background: white; border-radius: var(--rap-radius);
  padding: 1.75rem; margin-bottom: 1.5rem;
  box-shadow: var(--rap-shadow); border: none;
}
.rap-fieldset legend {
  font-weight: 700; font-size: 1rem; color: var(--rap-primary);
  padding: 0 8px; background: white;
  font-family: inherit;
}
.rap-grid { display: grid; gap: 1rem; }
.rap-grid--2 { grid-template-columns: 1fr 1fr; }
.rap-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.rap-field { display: flex; flex-direction: column; gap: 6px; }
.rap-field--full { grid-column: 1 / -1; }
.rap-field label { font-size: .875rem; font-weight: 600; color: var(--rap-gray-900); }
.rap-field input[type="text"],
.rap-field input[type="email"],
.rap-field input[type="tel"],
.rap-field input[type="date"],
.rap-field select,
.rap-field textarea {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--rap-gray-200);
  border-radius: 8px; font-size: .9375rem;
  transition: border-color var(--rap-transition);
  background: white;
}
.rap-field input:focus,
.rap-field select:focus,
.rap-field textarea:focus {
  outline: none; border-color: var(--rap-primary);
  box-shadow: 0 0 0 3px rgba(0,51,102,.1);
}
.rap-field .req { color: var(--rap-red); margin-left: 2px; }
.rap-hint { font-size: .8125rem; color: var(--rap-gray-500); margin: -.25rem 0 .75rem; }

/* Radio cards de estado */
.rap-radio-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem;
}
.rap-radio-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1rem; border: 2px solid var(--rap-gray-200);
  border-radius: var(--rap-radius); cursor: pointer;
  transition: all var(--rap-transition);
  gap: 6px;
}
.rap-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.rap-radio-card__icon { font-size: 2rem; }
.rap-radio-card__label { font-weight: 700; font-size: .9375rem; color: var(--rap-primary); }
.rap-radio-card small { color: var(--rap-gray-500); font-size: .8rem; line-height: 1.3; }
.rap-radio-card.is-selected,
.rap-radio-card:has(input:checked) {
  border-color: var(--rap-accent);
  background: #FFF4F0;
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}

/* Inline radios */
.rap-inline-radios { display: flex; gap: 1rem; flex-wrap: wrap; }
.rap-inline-radios label { display: flex; align-items: center; gap: 6px; font-size: .875rem; cursor: pointer; }

/* Checkbox */
.rap-checkbox-label {
  display: flex; align-items: center; gap: 10px;
  padding: .75rem 1rem; background: var(--rap-gray-100);
  border-radius: 8px; cursor: pointer; font-size: .9375rem;
  margin-top: 1rem;
}

/* Upload de fotos */
.rap-photo-drop {
  border: 2px dashed var(--rap-gray-200);
  border-radius: var(--rap-radius); padding: 2rem;
  text-align: center; cursor: pointer;
  transition: all var(--rap-transition);
  background: var(--rap-gray-100);
}
.rap-photo-drop.is-over { border-color: var(--rap-accent); background: #FFF4F0; }
.rap-photo-drop__icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.rap-photo-drop p { color: var(--rap-gray-500); margin-bottom: .75rem; }
.rap-photo-preview {
  display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem;
}
.rap-photo-thumb {
  position: relative; width: 100px; height: 100px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.rap-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rap-photo-thumb__pending {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  background: rgba(0,0,0,.65); color: white;
  border-radius: 999px; padding: 3px 6px;
  font-size: .65rem; font-weight: 700; text-align: center;
}
.rap-photo-thumb__remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.6); color: white;
  border: none; width: 22px; height: 22px; border-radius: 50%;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.rap-photo-uploading {
  width: 100px; height: 100px; border-radius: 8px;
  background: var(--rap-gray-200); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--rap-gray-500); text-align: center;
}

/* Footer del formulario */
.rap-form-footer {
  background: var(--rap-gray-100); border-radius: var(--rap-radius);
  padding: 2rem; text-align: center;
}
.rap-form-footer .rap-hint { margin-bottom: 1.5rem; font-size: .9rem; }

/* Spinner */
.rap-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: white;
  border-radius: 50%; animation: rap-spin .7s linear infinite;
}
@keyframes rap-spin { to { transform: rotate(360deg); } }
.rap-submitting { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--rap-gray-500); }

/* ============================================================
   BUSCADOR (SHORTCODE SEARCH)
   ============================================================ */
.rap-search-wrapper { max-width: 1100px; margin: 0 auto; }

.rap-filters {
  background: white; border-radius: var(--rap-radius);
  padding: 1.5rem; box-shadow: var(--rap-shadow);
  margin-bottom: 1.5rem;
}
.rap-filters__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; align-items: flex-end;
}
.rap-filter-group { display: flex; flex-direction: column; gap: 5px; }
.rap-filter-group label { font-size: .8rem; font-weight: 700; color: var(--rap-gray-900); text-transform: uppercase; letter-spacing: .04em; }
.rap-filter-group select,
.rap-filter-group input[type="text"] {
  padding: 9px 12px; border: 2px solid var(--rap-gray-200);
  border-radius: 8px; font-size: .9rem;
  transition: border-color var(--rap-transition);
}
.rap-filter-group select:focus,
.rap-filter-group input:focus { outline: none; border-color: var(--rap-primary); }
.rap-filter-group--action { display: flex; flex-direction: row; gap: .5rem; align-items: flex-end; }

.rap-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.rap-results-count { font-size: .9375rem; color: var(--rap-gray-500); }
.rap-results-count strong { color: var(--rap-primary); }

/* Grid de tarjetas */
.rap-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Tarjeta de mascota */
.rap-card {
  background: white; border-radius: var(--rap-radius);
  box-shadow: var(--rap-shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--rap-transition), box-shadow var(--rap-transition);
  position: relative;
}
.rap-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,51,102,.15); }

/* Banner reunidos */
.rap-card__reunion-banner {
  background: linear-gradient(90deg, #2D7A4F, #43A047);
  color: white; text-align: center;
  padding: 8px 12px; font-size: .8125rem; font-weight: 700;
  letter-spacing: .03em;
}
.rap-card--reunido { opacity: .8; }
.rap-card--reunido .rap-card__image { filter: grayscale(30%); }

/* Imagen */
.rap-card__image-link { display: block; }
.rap-card__image {
  height: 200px; background: var(--rap-gray-200) center/cover no-repeat;
  position: relative;
}
.rap-card__estado {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 12px; border-radius: 100px;
  font-family: sans-serif; font-size: .75rem; font-weight: 900;
  letter-spacing: .05em; text-transform: uppercase;
}
.rap-card__estado.is-perdido   { background: var(--rap-red);   color: white; }
.rap-card__estado.is-encontrado{ background: var(--rap-green); color: white; }
.rap-card__recompensa {
  position: absolute; top: 10px; right: 10px;
  background: #F9A825; color: white;
  padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
}

/* Cuerpo de la tarjeta */
.rap-card__body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.rap-card__tipo { font-size: .8rem; color: var(--rap-gray-500); margin-bottom: 4px; }
.rap-card__title { font-size: 1.0625rem; font-weight: 700; color: var(--rap-primary); margin: 0 0 6px; line-height: 1.25; }
.rap-card__title a { color: inherit; text-decoration: none; }
.rap-card__title a:hover { color: var(--rap-accent); }
.rap-card__desc { font-size: .85rem; color: var(--rap-gray-500); margin: 0 0 8px; }
.rap-card__location { font-size: .8125rem; color: var(--rap-gray-900); margin-bottom: 4px; }
.rap-card__date { font-size: .8125rem; color: var(--rap-gray-500); margin-bottom: 8px; }
.rap-card__expiry { font-size: .775rem; color: var(--rap-gray-500); margin-bottom: 8px; }
.rap-card__expiry.is-urgent { color: #e65100; font-weight: 700; }

.rap-card__cta {
  display: block; margin-top: auto; padding: 9px 16px; text-align: center;
  background: var(--rap-primary); color: white; border-radius: 8px;
  font-size: .8125rem; font-weight: 700; text-decoration: none;
  transition: background var(--rap-transition);
}
.rap-card__cta:hover { background: var(--rap-accent); color: white; }

/* Sin resultados */
.rap-no-results {
  text-align: center; padding: 4rem 2rem;
  background: white; border-radius: var(--rap-radius); box-shadow: var(--rap-shadow);
}
.rap-no-results p:first-child { font-size: 3rem; margin: 0 0 1rem; }
.rap-no-results h3 { color: var(--rap-primary); margin-bottom: .5rem; }
.rap-no-results p { color: var(--rap-gray-500); margin-bottom: 1.5rem; }

/* Paginación */
.rap-pagination { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.rap-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--rap-gray-200); font-size: .875rem; font-weight: 700;
  color: var(--rap-gray-900); text-decoration: none;
  transition: all var(--rap-transition);
}
.rap-pagination .page-numbers.current,
.rap-pagination .page-numbers:hover { background: var(--rap-primary); border-color: var(--rap-primary); color: white; }
.rap-pagination .page-numbers.prev,
.rap-pagination .page-numbers.next { width: auto; padding: 0 1rem; border-radius: 100px; }

/* ============================================================
   TEMPLATE: SINGLE MASCOTA
   ============================================================ */
.rap-single-wrapper { max-width: 860px; margin: 0 auto; }

/* Banner reunidos en el single */
.rap-reunion-banner {
  background: linear-gradient(135deg, #2D7A4F, #1B5E20);
  color: white; border-radius: var(--rap-radius);
  padding: 2rem; text-align: center; margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(45,122,79,.3);
}
.rap-reunion-banner__emoji { font-size: 4rem; display: block; margin-bottom: .75rem; animation: rap-bounce .8s ease infinite alternate; }
@keyframes rap-bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.rap-reunion-banner h2 { color: white; font-size: 1.75rem; margin: 0 0 .5rem; }
.rap-reunion-banner p  { color: rgba(255,255,255,.85); margin: 0; font-size: 1rem; }

/* Header del anuncio */
.rap-single-header { margin-bottom: 1.5rem; }
.rap-single-estado {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  font-weight: 900; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.rap-single-estado.is-perdido   { background: #FFEBEE; color: var(--rap-red); }
.rap-single-estado.is-encontrado{ background: #E8F5E9; color: var(--rap-green); }
.rap-single-title { font-size: 2rem; color: var(--rap-primary); margin: 0 0 1rem; line-height: 1.2; }

/* Grid de fotos */
.rap-photos-grid {
  display: grid; gap: .5rem; margin-bottom: 1.5rem;
  grid-template-columns: 1fr;
}
.rap-photos-grid.has-2 { grid-template-columns: 1fr 1fr; }
.rap-photos-grid.has-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.rap-photos-grid img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  aspect-ratio: 16/9;
}
.rap-photos-grid.has-3 img:first-child { grid-row: 1 / 3; aspect-ratio: unset; }

/* Detalles */
.rap-details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  background: white; border-radius: var(--rap-radius); padding: 1.5rem;
  box-shadow: var(--rap-shadow); margin-bottom: 1.5rem;
}
.rap-detail { }
.rap-detail__label {
  font-size: .75rem; font-weight: 700; color: var(--rap-gray-500);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 4px;
}
.rap-detail__value { font-size: .9375rem; color: var(--rap-gray-900); font-weight: 500; }

/* Sección de contacto */
.rap-contact-card {
  background: var(--rap-primary); color: white;
  border-radius: var(--rap-radius); padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.rap-contact-card h3 { color: white; margin: 0 0 1rem; font-size: 1.125rem; }
.rap-contact-card .rap-contact-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px;
  color: white; text-decoration: none; font-weight: 700; font-size: .9375rem;
  margin-bottom: .75rem;
  transition: filter var(--rap-transition);
}
.rap-contact-card .rap-contact-btn:hover { filter: brightness(1.1); color: white; }
.rap-contact-btn--wa   { background: #25D366; }
.rap-contact-btn--tel  { background: rgba(255,255,255,.15); }
.rap-contact-btn--mail { background: rgba(255,255,255,.1); }

/* Botón marcar reunidos */
.rap-btn-mark-reunido {
  width: 100%; padding: 14px; background: var(--rap-green); color: white;
  border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background var(--rap-transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.rap-btn-mark-reunido:hover { background: #3a9d65; }

/* Contador de vigencia */
.rap-vigencia-bar { margin-bottom: 1.5rem; }
.rap-vigencia-bar__label { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--rap-gray-500); margin-bottom: 6px; }
.rap-vigencia-bar__track { background: var(--rap-gray-200); border-radius: 100px; height: 8px; overflow: hidden; }
.rap-vigencia-bar__fill  { height: 100%; border-radius: 100px; background: var(--rap-green); transition: width .4s ease; }
.rap-vigencia-bar__fill.is-warning { background: #F57C00; }
.rap-vigencia-bar__fill.is-urgent  { background: var(--rap-red); }

/* ============================================================
   MIS ANUNCIOS
   ============================================================ */
.rap-mis-anuncios { display: flex; flex-direction: column; gap: 1rem; }
.rap-mis-anuncios__item {
  display: flex; gap: 1rem; align-items: center;
  background: white; border-radius: var(--rap-radius);
  padding: 1rem; box-shadow: var(--rap-shadow);
}
.rap-mis-anuncios__item.is-reunido { background: #F1F8E9; }
.rap-mis-anuncios__thumb {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; position: relative; background: var(--rap-gray-200);
}
.rap-mis-anuncios__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rap-reunido-badge {
  position: absolute; inset: 0; background: rgba(45,122,79,.85);
  color: white; font-size: .65rem; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center;
  line-height: 1.2;
}
.rap-mis-anuncios__info { flex: 1; min-width: 0; }
.rap-mis-anuncios__info h4 { font-size: .9375rem; margin: 0 0 4px; line-height: 1.3; }
.rap-mis-anuncios__info h4 a { color: var(--rap-primary); text-decoration: none; }
.rap-mis-meta { font-size: .8125rem; color: var(--rap-gray-500); margin: 0 0 6px; }
.rap-mis-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.rap-mis-anuncios__actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }

/* Badges de estado */
.rap-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.rap-badge--active   { background: #E8F5E9; color: #2E7D32; }
.rap-badge--warning  { background: #FFF3E0; color: #E65100; }
.rap-badge--expired  { background: #FFEBEE; color: #C62828; }
.rap-badge--pending  { background: #E3F2FD; color: #1565C0; }
.rap-badge--draft    { background: var(--rap-gray-200); color: var(--rap-gray-500); }

/* Área vacía */
.rap-empty { text-align: center; padding: 3rem 1.5rem; background: white; border-radius: var(--rap-radius); box-shadow: var(--rap-shadow); }
.rap-empty p { color: var(--rap-gray-500); margin-bottom: 1.25rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .rap-grid--2, .rap-grid--3 { grid-template-columns: 1fr; }
  .rap-radio-cards { grid-template-columns: 1fr; }
  .rap-filters__grid { grid-template-columns: 1fr; }
  .rap-cards-grid { grid-template-columns: 1fr; }
  .rap-details-grid { grid-template-columns: 1fr; }
  .rap-mis-anuncios__item { flex-wrap: wrap; }
  .rap-mis-anuncios__actions { flex-direction: row; }
  .rap-photos-grid.has-2,
  .rap-photos-grid.has-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .rap-photos-grid.has-3 img:first-child { grid-row: auto; }
}

/* ============================================================
   ADOPTION GRID (shortcode [ra_adopcion_search])
   ============================================================ */
.raa-adoption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.raa-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,51,102,.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #f0f0f0;
}
.raa-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,51,102,.14); }
.raa-card__photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  position: relative;
}
.raa-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.65); color: white;
  font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
}
.raa-card__badge--green { background: rgba(45,122,79,.85); }
.raa-card__body { padding: 1rem; }
.raa-card__name { font-size: 1.1rem; font-weight: 700; color: var(--rap-primary, #003366); margin: 0 0 .6rem; }
.raa-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.raa-tag {
  background: #f0f4ff; color: #3949AB;
  font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 100px;
}
.raa-tag--green { background: #e8f5e9; color: #2e7d32; }
.raa-tag--blue  { background: #e3f2fd; color: #1565c0; }
.raa-card__loc  { font-size: .8rem; color: #666; margin: 0 0 .25rem; }
.raa-card__costo{ font-size: .8rem; color: #444; font-weight: 600; margin: 0 0 .75rem; }
.raa-card__btn {
  display: block; text-align: center;
  background: linear-gradient(135deg, #e64a19, #bf360c);
  color: white; font-weight: 700; font-size: .85rem;
  padding: .6rem 1rem; border-radius: 8px;
  text-decoration: none; transition: opacity .2s;
}
.raa-card__btn:hover { opacity: .88; color: white; }

/* ============================================================
   ADOPTION FORM
   ============================================================ */
.rap-form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f0f0f0;
}
.rap-form-section:last-of-type { border-bottom: none; }
.rap-section-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--rap-primary, #003366);
  margin: 0 0 1rem;
  padding-left: .75rem;
  border-left: 4px solid #e64a19;
}
.rap-form-grid { display: grid; gap: 1rem; }
.rap-form-grid--2 { grid-template-columns: 1fr 1fr; }
.rap-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.rap-field label {
  display: block; font-weight: 600; font-size: .875rem;
  color: #333; margin-bottom: .4rem;
}
.rap-field input[type="text"],
.rap-field input[type="email"],
.rap-field input[type="tel"],
.rap-field input[type="number"],
.rap-field select,
.rap-field textarea {
  width: 100%; padding: .55rem .75rem;
  border: 1.5px solid #d0d7de; border-radius: 8px;
  font-size: .9375rem; color: #222;
  transition: border-color .2s;
  box-sizing: border-box;
}
.rap-field input:focus,
.rap-field select:focus,
.rap-field textarea:focus {
  outline: none; border-color: #e64a19; box-shadow: 0 0 0 3px rgba(230,74,25,.1);
}
.rap-radio-group {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem;
}
.rap-radio-group label {
  display: flex; align-items: center; gap: .35rem;
  font-weight: 500; cursor: pointer;
}
.rap-photo-slot:hover { border-color: #e64a19; background: #fff5f2; }

/* ============================================================
   QUICKLINKS HOMEPAGE (tema)
   ============================================================ */
.ra-quicklinks {
  background: white;
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
}
.ra-quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
}
.ra-ql-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border-radius: 10px;
  text-decoration: none; font-size: .85rem;
  transition: transform .15s, box-shadow .15s;
  border: 1.5px solid transparent;
}
.ra-ql-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.ra-ql-card__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.ra-ql-card__text { flex: 1; min-width: 0; }
.ra-ql-card__text strong { display: block; font-weight: 700; color: inherit; line-height: 1.2; margin-bottom: 2px; }
.ra-ql-card__text span   { font-size: .75rem; opacity: .8; line-height: 1.3; }
.ra-ql-card__arrow { font-size: 1.1rem; opacity: .7; }

.ra-ql-card--blue   { background: #e3f2fd; color: #0d47a1; border-color: #90caf9; }
.ra-ql-card--red    { background: #ffebee; color: #b71c1c; border-color: #ef9a9a; }
.ra-ql-card--green  { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.ra-ql-card--orange { background: #fff3e0; color: #e65100; border-color: #ffcc80; }
.ra-ql-card--purple { background: #ede7f6; color: #4a148c; border-color: #ce93d8; }

/* Responsive quicklinks */
@media (max-width: 1024px) { .ra-quicklinks__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  {
  .ra-quicklinks__grid { grid-template-columns: 1fr 1fr; }
  .raa-adoption-grid { grid-template-columns: 1fr 1fr; }
  .rap-form-grid--2, .rap-form-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 420px)  {
  .ra-quicklinks__grid { grid-template-columns: 1fr; }
  .raa-adoption-grid  { grid-template-columns: 1fr; }
}
