@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #FAFAFA;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #059669;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #047857;
}

::selection {
  background: #D1FAE5;
  color: #047857;
}

.header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(236, 253, 245, 0.7) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.header .logo-text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.header .logo-text img {
  height: 64px;
  width: auto;
}
@media (max-width: 575px) {
  .header .logo-text img {
    height: 48px;
  }
}
.header #user-dropdown {
  animation: fadeDown 0.15s ease both;
}
.header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #111827;
  flex-direction: column;
  gap: 5px;
}
.header .mobile-menu-toggle .linea-menu {
  display: block;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header .mobile-menu-toggle.abierto .linea-menu:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header .mobile-menu-toggle.abierto .linea-menu:nth-child(2) {
  opacity: 0;
}
.header .mobile-menu-toggle.abierto .linea-menu:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 575px) {
  .header .header-inner {
    gap: 0.35rem;
    position: relative;
  }
  .header .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header #header-actions {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    z-index: 150;
  }
  .header #header-actions.mobile-open {
    display: flex !important;
  }
  .header #header-actions .btn-publicar,
  .header #header-actions .btn-secundario {
    width: 100%;
    justify-content: center;
  }
  .header #header-actions > div {
    width: 100%;
  }
  .header .btn-publicar {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  .header .btn-secundario {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
  .header .offcanvas-body {
    gap: 1.1rem !important;
  }
}
@media (min-width: 576px) {
  .header {
    padding: 0.35rem 0;
  }
}

.btn-publicar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #84cc16;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-publicar:hover {
  background: #65a30d;
  color: white;
}

.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  color: #111827;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-secundario:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6B7280;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.header-link:hover {
  color: #047857;
}
.header-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.avatar-barco {
  background: #E1F5EE;
}
.avatar-barco svg {
  width: 60%;
  height: 60%;
}

.toggle-a-convenir {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0.65rem 1rem;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1D4ED8;
  cursor: pointer;
  width: fit-content;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toggle-a-convenir input {
  width: 18px;
  height: 18px;
  accent-color: #1D4ED8;
  cursor: pointer;
}
.toggle-a-convenir.activo {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #fff;
}
.toggle-a-convenir.activo input {
  accent-color: #fff;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
  margin-top: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.5) 0%, rgba(243, 244, 246, 0.8) 100%);
  z-index: 0;
}
.hero .container {
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 575px) {
  .hero {
    padding: 1.75rem 0 1.5rem;
  }
}

.hero-barco {
  max-width: 380px;
  margin: -0.5rem auto 0.75rem;
  position: relative;
  z-index: 1;
  animation: barcoFlota 3.5s ease-in-out infinite;
}
.hero-barco svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 575px) {
  .hero-barco {
    max-width: 220px;
    margin: 0 auto 1rem;
  }
}

@keyframes barcoFlota {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.cartelito {
  --rotate: 0deg;
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  z-index: 2;
  max-width: 200px;
  transform: translateY(0) rotate(var(--rotate)) scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  border: 2px solid transparent;
}
.cartelito p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.35;
}
.cartelito:hover {
  transform: translateY(-8px) rotate(calc(var(--rotate) + 4deg)) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(16, 185, 129, 0.2), inset 0 2px 6px rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.cartelito-pin {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.45);
}

.hero-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 580px;
  pointer-events: none;
  z-index: 0;
}
.hero-decor .cartelito {
  position: absolute;
  pointer-events: auto;
  opacity: 0;
  animation: cartelitoIn 0.5s ease-out forwards;
}

@keyframes cartelitoIn {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(var(--rotate));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotate));
  }
}
.hero-decor-left {
  left: 0;
}

.hero-decor-right {
  right: 0;
}

@media (max-width: 1200px) {
  .hero-decor {
    display: none;
  }
}
.hero-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #065F46;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s ease-out both;
}
.hero-subtitle .palabra-destacada {
  color: #059669;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-tagline {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: #6B7280;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-barco {
  max-width: 380px;
  margin: -0.5rem auto 0.75rem;
}
.hero-barco svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 575px) {
  .hero-barco {
    max-width: 220px;
    margin: 0 auto 1rem;
  }
}

.hero-search {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  padding: 0.15rem 0.5rem 0.15rem 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hero-search:hover, .hero-search:focus-within {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.hero-search-icon {
  display: flex;
  align-items: center;
  color: #9CA3AF;
  margin-right: 0.6rem;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  background: transparent;
  color: #111827;
}
.hero-search input::placeholder {
  color: #9CA3AF;
}

.hero-search-btn {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.hero-search-btn:hover {
  background: #059669;
  color: #FFFFFF;
}
.hero-search-btn:active {
  transform: scale(0.97);
}

.orden-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #6B7280;
  flex-wrap: wrap;
}

.orden-toggle-btn {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.orden-toggle-btn:hover, .orden-toggle-btn.active {
  background: #059669;
  color: #FFFFFF;
}

@media (max-width: 575px) {
  .orden-toggle {
    font-size: 0.8rem;
    margin: 0.75rem 0;
  }
  .orden-toggle-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }
}
.palabra-destacada {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: #84cc16;
}
.palabra-destacada::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -3px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='10' viewBox='0 0 100 10'%3E%3Cpath d='M2 6 Q 15 1, 27 5 T 52 5 T 77 5 T 98 4' stroke='%2338BDF8' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (max-width: 1200px) {
  .hero-decor {
    display: none;
  }
}
.sello-artesanal {
  display: inline-block;
  border: 2px dashed #FFFFFF;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  padding: 0.35rem 0.9rem;
  transform: rotate(-4deg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  opacity: 0.9;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer {
  background: #065F46;
  position: relative;
  padding: 1.5rem 0 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-top: 2.5rem;
}
@media (min-width: 576px) {
  .footer {
    padding: 2rem 0 1.5rem;
    margin-top: 4rem;
  }
}
.footer > .container {
  animation: fadeUp 0.6s ease both;
}
.footer .footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.25rem;
}
.footer .footer-copy {
  margin: 0.1rem 0;
  font-size: 0.78rem;
}
.footer .gaboweb-link {
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: all 0.3s ease;
}
.footer .gaboweb-link .gw-orange {
  color: #EA580C;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer .gaboweb-link:hover {
  text-decoration: none;
  filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.5));
  transform: scale(1.05);
}
.footer .gaboweb-link:hover .gw-orange {
  color: #F59E0B;
  transform: scale(1.15);
}
.footer a {
  color: #6EE7B7;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: white;
  text-decoration: underline;
}

.promo-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
@media (max-width: 575px) {
  .promo-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

.promo-banner-visible {
  opacity: 1;
  transform: translateY(0);
}

.promo-banner-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #6B7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 200ms ease-out;
}
.promo-banner-close:hover {
  color: #1F2937;
}

.promo-banner-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1F2937;
  flex: 1;
}

.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  background: #059669;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms ease-out;
  flex-shrink: 0;
}
.promo-banner-cta:hover {
  background: #047857;
  color: #FFFFFF;
}

.pagina-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0;
  line-height: 1.6;
  color: #1F2937;
}
.pagina-legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}
.pagina-legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111827;
}
.pagina-legal p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.pagina-legal ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.pagina-legal ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.pagina-legal a {
  color: #059669;
  text-decoration: underline;
  text-decoration-color: rgba(5, 150, 105, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 200ms ease-out;
}
.pagina-legal a:hover {
  text-decoration-color: #059669;
}

.footer-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-link:link, .footer-link:visited, .footer-link:hover, .footer-link:focus, .footer-link:active {
  color: #ffffff;
}

.aviso-privacidad-registro {
  font-size: 0.8rem;
  color: #6B7280;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.aviso-privacidad-registro a {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
}

.link-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6B7280;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.link-volver:hover {
  color: #059669;
}
.link-volver svg {
  flex-shrink: 0;
}

.pildora-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #047857;
  background: #D1FAE5;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}
.pildora-volver:hover {
  background: #A7F3D0;
  color: #047857;
}
.pildora-volver svg {
  flex-shrink: 0;
}

.badge-gratis {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #D1FAE5;
  color: #047857;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0 0.9rem;
  white-space: nowrap;
}

.aviso-donacion {
  font-size: 0.75rem;
  color: #6B7280;
  margin: 0.5rem 0 0;
}

.gracias-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 0;
}

.gracias-card {
  text-align: center;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5E7EB;
}

.gracias-icon {
  margin-bottom: 1.5rem;
}

.gracias-icon svg {
  display: inline-block;
}

.gracias-titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.gracias-texto {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #059669;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary-custom:hover {
  background: #047857;
  color: #FFFFFF;
  transform: translateY(-1px);
}
.btn-primary-custom:active {
  transform: scale(0.98);
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #059669;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary-custom:hover {
  background: #047857;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-primary-custom:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-primary-custom:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}
.btn-primary-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #059669;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border: 2px solid #059669;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline-custom:hover {
  background: #059669;
  color: white;
}
.btn-outline-custom:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #F59E0B;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
  background: rgb(81.069631002%, 52.1636560136%, 3.3225258607%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.btn-accent:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}
.btn-accent:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

.btn-nav-box {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid #16A34A;
  border-radius: 10px;
  background: #FFFFFF;
  color: #14532D;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-nav-box:hover {
  background: #F0FDF4;
  border-color: #15803D;
  color: #14532D;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.25);
}
.btn-nav-box:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}
.btn-nav-box svg, .btn-nav-box .nav-icon {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.btn-nav-box:hover svg, .btn-nav-box:hover .nav-icon {
  transform: scale(1.1);
}

#user-avatar svg,
[id$=-user-avatar] svg {
  width: 22px;
  height: auto;
}

.btn-nav-box-solid {
  background: linear-gradient(135deg, #16A34A, #15803D);
  border: none;
  color: #FFFFFF;
}
.btn-nav-box-solid:hover {
  background: linear-gradient(135deg, #15803D, #14532D);
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(21, 128, 61, 0.35);
}

.card-anuncio {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  transform-origin: top center;
  /* Clavito (pin) */
}
.card-anuncio::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDBA74, #EA580C);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
}
.card-anuncio:nth-child(4n+1) {
  transform: rotate(-1.5deg);
}
.card-anuncio:nth-child(4n+2) {
  transform: rotate(1deg);
}
.card-anuncio:nth-child(4n+3) {
  transform: rotate(-0.8deg);
}
.card-anuncio:nth-child(4n) {
  transform: rotate(1.8deg);
}
.card-anuncio:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.card-anuncio:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.card-anuncio .card-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #E5E7EB;
  border-radius: 8px 8px 0 0;
}
.card-anuncio .card-img-wrap .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 8px 8px 0 0;
}
.card-anuncio .card-img-wrap .badge-categoria {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  font-size: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  border: none;
  z-index: 2;
  white-space: nowrap;
}
.card-anuncio .card-img-wrap .card-visitas {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  font-size: 0.65rem;
  font-weight: 500;
  color: #6B7280;
  padding: 0.2rem 0.45rem;
  border-radius: 20px;
  z-index: 2;
  white-space: nowrap;
  line-height: 1;
}
.card-anuncio .card-img-wrap .card-visitas svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.card-anuncio .card-precio-tag {
  position: absolute;
  bottom: -12px;
  left: -8px;
  background: #EA580C;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem 0.3rem 1.1rem;
  border-radius: 3px 10px 10px 3px;
  transform: rotate(-4deg);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.3);
  z-index: 3;
  white-space: nowrap;
}
.card-anuncio .card-precio-tag::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #FFF7ED;
  border-radius: 50%;
}
.card-anuncio:hover .card-img {
  transform: scale(1.05);
}
.card-anuncio .card-body {
  padding: 0.5rem 0.65rem 0.65rem;
  background: #FFFFFF;
  border-radius: 0 0 8px 8px;
}
.card-anuncio .card-body .card-titulo {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.card-anuncio .card-body .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card-anuncio .card-body .card-meta .card-fecha {
  font-size: 0.65rem;
  color: #6B7280;
}
.card-anuncio .card-body .card-meta .card-ubicacion {
  font-size: 0.65rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.card-anuncio .card-body .card-meta .card-ubicacion::before {
  content: "📍";
  font-size: 0.6rem;
}

.input-custom, .textarea-custom, .select-custom {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #FFFFFF;
  color: #111827;
}
.input-custom:focus, .textarea-custom:focus, .select-custom:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.input-custom::placeholder, .textarea-custom::placeholder, .select-custom::placeholder {
  color: #9CA3AF;
}

.select-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.textarea-custom {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.badge-categoria {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.75rem;
  min-height: 40px;
  background: #FFFFFF;
  color: #111827;
  border: 1px solid #E5E7EB;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.badge-categoria.active {
  background: #059669;
  color: white;
  border-color: #059669;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.25);
}
.badge-categoria:hover {
  background: #D1FAE5;
  border-color: #059669;
}

.categorias-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 0 0.5rem;
}
.categorias-scroll .badge-categoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 78px;
  padding: 0.7rem 0.6rem;
  border-radius: 12px;
  white-space: normal;
  text-align: center;
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.categorias-scroll .badge-categoria .cat-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.categorias-scroll .badge-categoria .cat-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.categorias-scroll .badge-categoria .cat-label {
  font-size: 0.72rem;
  font-weight: 500;
}
.categorias-scroll .badge-categoria:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.1);
}
.categorias-scroll .badge-categoria.active {
  background: rgba(5, 150, 105, 0.14);
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
  color: #065f46;
}

#categoria-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}
#categoria-badges .badge-categoria {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  min-height: 80px;
  border-radius: 10px;
  white-space: normal;
  text-align: center;
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
#categoria-badges .badge-categoria .cat-icon {
  font-size: 1.1rem;
  line-height: 1;
}
#categoria-badges .badge-categoria .cat-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}
#categoria-badges .badge-categoria .cat-label {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.15;
}
#categoria-badges .badge-categoria:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.1);
}
#categoria-badges .badge-categoria.active {
  background: rgba(5, 150, 105, 0.14);
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
  color: #065f46;
}
#categoria-badges .badge-categoria.active::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #059669;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12 L9 17 L20 6'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 992px) {
  #categoria-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}
.categorias-scroll {
  margin-top: 2rem;
}

.categoria-confirmada {
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 0.5rem;
}

@media (max-width: 575px) {
  .categoria-confirmada {
    display: none !important;
  }
}
.categorias-mobile {
  display: none;
  position: relative;
  margin-top: 2rem;
}

.categorias-mobile-caption {
  display: block;
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

@media (max-width: 575px) {
  .categorias-scroll {
    display: none;
  }
  .categorias-mobile {
    display: block;
  }
  #categoria-badges {
    display: none !important;
  }
}
.categorias-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid #059669;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.categorias-mobile-trigger:hover {
  background: #E1F5EE;
  border-color: #047857;
}
.categorias-mobile-trigger svg {
  width: 16px;
  height: 16px;
  color: #059669;
}

.flecha-registro {
  display: inline-block;
  transition: transform 0.2s ease;
}

.flecha-registro-abierta {
  transform: rotate(180deg);
}

.categorias-mobile-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  width: 92vw;
  max-width: 360px;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 0.75rem;
  z-index: 150;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.categorias-mobile-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.categoria-grid-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 0.6rem 0.3rem;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid transparent;
  font-size: 0.7rem;
  line-height: 1.2;
}
.categoria-grid-item .cat-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.categoria-grid-item .cat-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.categoria-grid-item .cat-label {
  font-size: 0.68rem;
  font-weight: 500;
}
.categoria-grid-item.active {
  background: rgba(5, 150, 105, 0.14);
  border-color: rgba(5, 150, 105, 0.35);
  color: #059669;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: #FFFFFF;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-google .google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: conic-gradient(from -45deg, #4285F4 0deg 90deg, #34A853 90deg 180deg, #FBBC05 180deg 270deg, #EA4335 270deg 360deg);
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.btn-google:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: #6B7280;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: default;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6B7280;
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}
.empty-state h3 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.35rem;
}
.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@keyframes orbitLupa {
  from {
    transform: rotate(0deg) translateX(38px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(38px) rotate(-360deg);
  }
}
.empty-ilustracion {
  position: relative;
  width: 100px;
  height: 80px;
  margin: 0 auto;
}
.empty-ilustracion .lupa-orbita {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbitLupa 3.5s linear infinite;
}

.footer .btn-mp,
.btn-mp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #059669;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 10px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.footer .btn-mp:hover,
.btn-mp:hover {
  background: linear-gradient(135deg, #047857, #059669, #10B981);
  background-size: 200% 200%;
  animation: btnMpShine 1.5s ease infinite;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45), 0 0 0 3px rgba(5, 150, 105, 0.15);
  text-decoration: none !important;
}
.footer .btn-mp:active,
.btn-mp:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.footer .btn-mp svg,
.btn-mp svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@keyframes btnMpShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
@media (min-width: 576px) {
  .auth-card {
    padding: 2.25rem;
  }
}
.auth-card h2 {
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.auth-card p {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.auth-card .auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6B7280;
}
.auth-card .auth-switch a {
  color: #059669;
  font-weight: 600;
  cursor: pointer;
}
.auth-card .auth-switch a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
  color: #111827;
}

.anuncio-detalle {
  max-width: 720px;
  margin: 1rem auto;
  padding: 0 1rem;
}
.anuncio-detalle .anuncio-imagen {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #E5E7EB;
  margin-bottom: 0.75rem;
}
@media (min-width: 576px) {
  .anuncio-detalle .anuncio-imagen {
    max-height: 260px;
    border-radius: 12px;
  }
}
@media (min-width: 992px) {
  .anuncio-detalle .anuncio-imagen {
    max-height: 300px;
  }
}
.anuncio-detalle .anuncio-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
@media (min-width: 576px) {
  .anuncio-detalle .anuncio-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
.anuncio-detalle .anuncio-header h1 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
@media (min-width: 576px) {
  .anuncio-detalle .anuncio-header h1 {
    font-size: 1.2rem;
  }
}
.anuncio-detalle .anuncio-header .anuncio-precio {
  font-size: 1.2rem;
  font-weight: 800;
  color: #047857;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
@media (min-width: 576px) {
  .anuncio-detalle .anuncio-header .anuncio-precio {
    font-size: 1.5rem;
  }
}
.anuncio-detalle .anuncio-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.6rem 0;
  padding: 0.6rem 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}
.anuncio-detalle .anuncio-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6B7280;
}
.anuncio-detalle .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #166534;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.anuncio-detalle .btn-whatsapp:hover {
  background: #dcfce7;
  border-color: #25D366;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}
@media (max-width: 575px) {
  .anuncio-detalle .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
.anuncio-detalle .anuncio-descripcion {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #111827;
  white-space: pre-wrap;
}

.gallery-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
@media (min-width: 576px) {
  .gallery-thumb {
    width: 64px;
    height: 64px;
  }
}
@media (min-width: 992px) {
  .gallery-thumb {
    width: 72px;
    height: 72px;
  }
}
.gallery-thumb:hover, .gallery-thumb.active {
  opacity: 1;
  border-color: #059669;
}

.gallery-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 576px) {
  .gallery-badge {
    top: 8px;
    right: 8px;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 8px;
  }
}

.publicar-page {
  max-width: 520px;
  margin: 1rem auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .publicar-page {
    max-width: 700px;
  }
}
@media (min-width: 992px) {
  .publicar-page {
    max-width: 900px;
  }
}
.publicar-page h1 {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 576px) {
  .publicar-page h1 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }
}
.publicar-page .input-lg {
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}
@media (min-width: 576px) {
  .publicar-page .input-lg {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
  }
}
.publicar-page .drop-zone {
  border: 2px dashed #E5E7EB;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FAFAFA;
}
@media (min-width: 576px) {
  .publicar-page .drop-zone {
    padding: 1.25rem;
  }
}
.publicar-page .drop-zone:hover, .publicar-page .drop-zone.dragover {
  border-color: #059669;
  background: #D1FAE5;
}
.publicar-page .drop-zone .drop-icon {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
@media (min-width: 576px) {
  .publicar-page .drop-zone .drop-icon {
    font-size: 1.75rem;
  }
}
.publicar-page .drop-zone p {
  color: #6B7280;
  font-size: 0.875rem;
  margin: 0;
}

.hoja-publicar {
  position: relative;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
}
.hoja-publicar::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 18px;
  background: linear-gradient(135deg, #D1D5DB, #9CA3AF);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
@media (min-width: 576px) {
  .hoja-publicar {
    padding: 2.25rem 2rem 2rem;
  }
}

.pub-subtitle {
  color: #6B7280;
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.grid-anuncios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  padding: 0.75rem 0;
}
@media (min-width: 576px) {
  .grid-anuncios {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
    padding: 1rem 0;
  }
}
@media (min-width: 992px) {
  .grid-anuncios {
    grid-template-columns: repeat(auto-fill, minmax(180px, 210px));
    gap: 1rem;
    padding: 1.25rem 0;
  }
}

.card-skeleton {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
}

.card-skeleton .skeleton-img {
  aspect-ratio: 1/1;
  background: #E5E7EB;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.card-skeleton .skeleton-body {
  padding: 0.65rem;
}

.card-skeleton .skeleton-line {
  height: 10px;
  border-radius: 5px;
  background: #E5E7EB;
  margin-bottom: 0.4rem;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.btn-sm-edit,
.btn-sm-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm-edit {
  background: #D1FAE5;
  color: #047857;
}
.btn-sm-edit:hover {
  background: #059669;
  color: white;
}

.btn-sm-delete {
  background: #FEE2E2;
  color: #EF4444;
}
.btn-sm-delete:hover {
  background: #EF4444;
  color: white;
}

.card-acciones-mis-avisos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #E5E7EB;
}

.reglas-publicar {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.reglas-publicar.reglas-abierto {
  display: flex;
  opacity: 1;
}
.reglas-publicar.reglas-abierto .reglas-modal {
  animation: modalIn 0.3s ease forwards;
}
.reglas-publicar .reglas-modal {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-modal {
    max-width: 560px;
  }
}
.reglas-publicar .reglas-header {
  background: #D1FAE5;
  padding: 1.25rem 1.5rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #E5E7EB;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-header {
    padding: 1.5rem 2rem;
  }
}
.reglas-publicar .reglas-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #047857;
  margin: 0;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-header h3 {
    font-size: 1.15rem;
  }
}
.reglas-publicar .reglas-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  font-size: 1.1rem;
  cursor: pointer;
  color: #6B7280;
  z-index: 1;
  line-height: 1;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.reglas-publicar .reglas-close:hover {
  color: #111827;
  background: #FAFAFA;
  border-color: #6B7280;
}
.reglas-publicar .reglas-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-body {
    padding: 1.5rem 2rem;
  }
}
.reglas-publicar .reglas-lista .reglas-titulo {
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  color: #111827;
}
.reglas-publicar .reglas-lista ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.reglas-publicar .reglas-lista li {
  font-size: 0.825rem;
  color: #6B7280;
  padding: 0.5rem 0.65rem;
  background: #FAFAFA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-lista li {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
  }
}
.reglas-publicar .reglas-lista li:hover {
  background: #E5E7EB;
}
.reglas-publicar .reglas-lista .reglas-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-lista .reglas-icon {
    font-size: 0.9rem;
  }
}
.reglas-publicar .reglas-disclaimer {
  padding-top: 0.75rem;
  border-top: 1px solid #E5E7EB;
  margin-top: 0.25rem;
}
.reglas-publicar .reglas-disclaimer p {
  font-size: 0.7rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
  opacity: 0.7;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-disclaimer p {
    font-size: 0.75rem;
  }
}
.reglas-publicar .reglas-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  text-align: center;
}
@media (min-width: 576px) {
  .reglas-publicar .reglas-footer {
    padding: 0.85rem 2rem;
  }
}
.reglas-publicar .reglas-footer .sello-artesanal {
  font-size: 0.7rem;
  color: #6B7280;
  opacity: 0.6;
  font-style: italic;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.avisos-relacionados {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.avisos-relacionados-titulo {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
@media (min-width: 576px) {
  .avisos-relacionados-titulo {
    font-size: 1.25rem;
  }
}
