  :root {
	--brand-o: #E81A1A;
	--brand-o-light: #F5A06B;
	--brand-o-pale: #FDF0E8;
	--brand-teal: #1A8A7A;
	--brand-teal-light: #E6F5F3;
	--brand-dark: #1C1C1E;
	--brand-gray: #6B6B6B;
	--brand-light: #FAFAF8;
	--nav-height: 68px;
  }

  * { box-sizing: border-box; }

  body {
	font-family: 'Nunito', sans-serif;
	color: var(--brand-dark);
	background: #fff;
	scroll-behavior: smooth;
  }

  h1, h2, h3 { font-family: 'Playfair Display', serif; }

.nav-logo{
	height: 52px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* ── NAVBAR ── */
.navbar{
	min-height: var(--nav-height);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	overflow: visible; 
	background: #fff;
	border-bottom: 1px solid #f0ede8;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.navbar-collapse.show, .navbar-collapse.collapsing {
	background: #fff;
	border-top: 1px solid #f0ede8;
	margin: 0 -1rem;        /* compensa el padding del container */
	padding: 0.75rem 1rem 1.25rem;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

  .navbar-brand {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	color: var(--brand-o) !important;
	display: flex;
	align-items: center;
	gap: 10px;
  }

  .navbar-brand .paw-icon {
	width: 36px; height: 36px;
	background: var(--brand-o);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	font-size: 1rem;
  }



  .nav-link {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--brand-dark) !important;
	padding: 0.4rem 0.8rem !important;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
  }

  .nav-link:hover, .nav-link.active {
	background: var(--brand-o-pale);
	color: var(--brand-o) !important;
  }

  .btn-nav-login {
	font-weight: 700;
	font-size: 0.85rem;
	border: 1.5px solid var(--brand-o);
	color: var(--brand-o);
	border-radius: 20px;
	padding: 0.35rem 1.1rem;
	background: transparent;
	transition: all 0.15s;
  }

  .btn-nav-login:hover {
	background: var(--brand-o);
	color: #fff;
  }

  .btn-nav-register {
	font-weight: 700;
	font-size: 0.85rem;
	background: var(--brand-o);
	color: #fff;
	border-radius: 20px;
	padding: 0.35rem 1.1rem;
	border: none;
	transition: background 0.15s;
  }

  .btn-nav-register:hover { background: #c9521a; color: #fff; }

  /* ── HERO ── */
  .hero {
	min-height: calc(100vh - var(--nav-height));
	background: var(--brand-o-pale);
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding: 4rem 0;
  }

  .hero::before {
	content: '';
	position: absolute;
	right: -60px; top: -60px;
	width: 420px; height: 420px;
	background: var(--brand-o-light);
	border-radius: 50%;
	opacity: 0.25;
  }

  .hero::after {
	content: '';
	position: absolute;
	right: 120px; bottom: -80px;
	width: 220px; height: 220px;
	background: var(--brand-o);
	border-radius: 50%;
	opacity: 0.12;
  }

  .hero-badge {
	display: inline-block;
	background: #fff;
	border: 1px solid #f0c8a8;
	border-radius: 20px;
	padding: 0.3rem 1rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--brand-o);
	margin-bottom: 1.2rem;
  }

  .hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1.15;
	margin-bottom: 1.2rem;
	color: var(--brand-dark);
  }

  .hero h1 span { color: var(--brand-o); }

  .hero p.lead {
	font-size: 1.1rem;
	color: #555;
	max-width: 500px;
	line-height: 1.7;
  }

  .hero-cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 2rem;
  }

  .btn-hero-primary {
	background: var(--brand-o);
	color: #fff;
	border: none;
	border-radius: 26px;
	padding: 0.75rem 1.8rem;
	font-weight: 700;
	font-size: 1rem;
	transition: background 0.15s, transform 0.1s;
  }

  .btn-hero-primary:hover { background: #c9521a; color: #fff; transform: translateY(-1px); }

  .btn-hero-secondary {
	background: #fff;
	color: var(--brand-dark);
	border: 1.5px solid #ddd;
	border-radius: 26px;
	padding: 0.75rem 1.8rem;
	font-weight: 700;
	font-size: 1rem;
	transition: border-color 0.15s, transform 0.1s;
  }

  .btn-hero-secondary:hover { border-color: var(--brand-o); color: var(--brand-o); transform: translateY(-1px); }

  .hero-stats {
	display: flex;
	gap: 2rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
  }

  .hero-stat strong {
	display: block;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--brand-o);
  }

  .hero-stat span {
	font-size: 0.82rem;
	color: #888;
	font-weight: 600;
  }

  .hero-image-box {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
  }

  .hero-illustration {
	width: 100%;
	max-width: 420px;
	aspect-ratio: 1;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 20px 60px rgba(232,98,26,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
  }

  .hero-illustration .big-paw {
	font-size: 9rem;
	opacity: 0.08;
	position: absolute;
	right: -10px;
	bottom: -20px;
	color: var(--brand-o);
  }

  .hero-illustration-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 2rem;
	position: relative;
	z-index: 1;
  }

  .pet-card-mini {
	background: var(--brand-o-pale);
	border-radius: 16px;
	padding: 1rem 1.5rem;
	width: 260px;
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid #f0c8a8;
  }

  .pet-card-mini .pet-avatar {
	width: 52px; height: 52px;
	background: var(--brand-o);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 1.6rem;
	flex-shrink: 0;
  }

  .pet-card-mini .pet-info strong {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
  }

  .pet-card-mini .pet-info small {
	color: #888;
	font-size: 0.78rem;
  }

  .pet-card-mini .badge-status {
	margin-left: auto;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 700;
	flex-shrink: 0;
  }

  .badge-perdido { background: #fde8e8; color: #c0392b; }
  .badge-encontrado { background: #e6f5f0; color: #1a8a6a; }

  /* ── SECTION COMMONS ── */
  section { padding: 5rem 0; }

  .section-tag {
	display: inline-block;
	background: var(--brand-o-pale);
	color: var(--brand-o);
	border-radius: 20px;
	padding: 0.25rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
  }

  .section-tag.teal {
	background: var(--brand-teal-light);
	color: var(--brand-teal);
  }

  .section-title {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	margin-bottom: 1rem;
	line-height: 1.2;
  }

  .section-subtitle {
	color: var(--brand-gray);
	font-size: 1rem;
	max-width: 540px;
	margin: 0 auto 3rem;
	line-height: 1.7;
  }

  /* ── NOSOTROS ── */
  #nosotros { background: #fff; }

  .nosotros-feature {
	display: flex;
	gap: 16px;
	margin-bottom: 1.8rem;
	align-items: flex-start;
  }

  .nosotros-feature .icon-wrap {
	width: 48px; height: 48px;
	background: var(--brand-o-pale);
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	color: var(--brand-o);
	font-size: 1.3rem;
	flex-shrink: 0;
  }

  .nosotros-feature h5 {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.25rem;
  }

  .nosotros-feature p {
	color: var(--brand-gray);
	font-size: 0.9rem;
	margin: 0;
	line-height: 1.6;
  }

  .nosotros-img-box {
	background: var(--brand-o-pale);
	border-radius: 24px;
	aspect-ratio: 1;
	max-width: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 8rem;
	position: relative;
	overflow: hidden;
  }

  .nosotros-img-box::after {
	content: '';
	position: absolute;
	bottom: -40px; right: -40px;
	width: 160px; height: 160px;
	background: var(--brand-o-light);
	border-radius: 50%;
	opacity: 0.4;
  }

  /* ── FAQ ── */
  #preguntas { background: var(--brand-light); }

  .accordion-item {
	border: 1px solid #f0ede8 !important;
	border-radius: 14px !important;
	margin-bottom: 0.75rem;
	overflow: hidden;
  }

  .accordion-button {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--brand-dark) !important;
	background: #fff !important;
	box-shadow: none !important;
  }

  .accordion-button:not(.collapsed) {
	color: var(--brand-o) !important;
	background: var(--brand-o-pale) !important;
  }

  .accordion-button::after {
	filter: none;
  }

  .accordion-body {
	font-size: 0.9rem;
	color: var(--brand-gray);
	line-height: 1.7;
  }

  /* ── BLOG ── */
  #blog { background: #fff; }

  .blog-card {
	border: 1px solid #f0ede8;
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	height: 100%;
  }

  .blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }

  .blog-card-img {
	width: 100%;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.5rem;
  }

  .blog-card-img.dog { background: #FDF0E8; }
  .blog-card-img.cat { background: #E6F5F3; }
  .blog-card-img.bird { background: #EDF0FD; }

  .blog-card-body { padding: 1.25rem; }

  .blog-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.15rem 0.6rem;
	border-radius: 20px;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
  }

  .blog-tag.o { background: var(--brand-o-pale); color: var(--brand-o); }
  .blog-tag.teal { background: var(--brand-teal-light); color: var(--brand-teal); }
  .blog-tag.purple { background: #eeecfd; color: #4a42b5; }

  .blog-card-body h5 {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
  }

  .blog-card-body p {
	font-size: 0.85rem;
	color: var(--brand-gray);
	margin-bottom: 1rem;
	line-height: 1.6;
  }

  .blog-card-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	color: #aaa;
  }

  /* ── CONTACTO ── */
  #contacto { background: var(--brand-light); }

  .contact-form-card {
	background: #fff;
	border-radius: 24px;
	padding: 2.5rem;
	box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  }

  .form-control, .form-select {
	border: 1.5px solid #ede9e3;
	border-radius: 12px;
	padding: 0.7rem 1rem;
	font-family: 'Nunito', sans-serif;
	font-size: 0.92rem;
  }

  .form-control:focus, .form-select:focus {
	border-color: var(--brand-o);
	box-shadow: 0 0 0 3px rgba(232,98,26,0.12);
  }

  .form-label {
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 0.4rem;
	color: var(--brand-dark);
  }

  .btn-submit {
	background: var(--brand-o);
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: 0.8rem 2rem;
	font-weight: 700;
	font-size: 1rem;
	width: 100%;
	transition: background 0.15s;
  }

  .btn-submit:hover { background: #c9521a; color: #fff; }

  .contact-info-box {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 1.5rem;
  }

  .contact-info-box .ci-icon {
	width: 44px; height: 44px;
	background: var(--brand-o-pale);
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	color: var(--brand-o);
	font-size: 1.1rem;
	flex-shrink: 0;
  }

  .contact-info-box strong { display: block; font-size: 0.9rem; font-weight: 700; }
  .contact-info-box span { font-size: 0.85rem; color: var(--brand-gray); }

  /* ── LOGIN MODAL ── */
  .modal-content {
	border-radius: 24px;
	border: none;
	overflow: hidden;
  }

  .modal-header {
	border-bottom: 1px solid #f0ede8;
	padding: 1.5rem 2rem 1rem;
  }

  .modal-body { padding: 1.5rem 2rem 2rem; }

  .modal-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
  }

  .auth-tabs .nav-link {
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--brand-gray) !important;
	padding: 0.4rem 1.2rem !important;
  }

  .auth-tabs .nav-link.active {
	background: var(--brand-o) !important;
	color: #fff !important;
  }

  /* ── PRIVATE SECTIONS (logged in) ── */
  #section-private { display: none; }
  body.logged-in #section-private { display: block; }
  body.logged-in #section-public-cta { display: none; }

  .profile-card {
	background: linear-gradient(135deg, var(--brand-o) 0%, #c9521a 100%);
	border-radius: 24px;
	color: #fff;
	padding: 2rem;
	position: relative;
	overflow: hidden;
  }

  .profile-card::before {
	content: '';
	position: absolute;
	right: -30px; top: -30px;
	width: 160px; height: 160px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
  }

  .profile-avatar {
	width: 72px; height: 72px;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 2rem;
	margin-bottom: 1rem;
  }

  .profile-card h4 {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 1.3rem;
	margin-bottom: 0.25rem;
  }

  .profile-card p { font-size: 0.85rem; opacity: 0.8; margin: 0; }

  .profile-stats {
	display: flex;
	gap: 1.5rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.2);
  }

  .profile-stat strong { display: block; font-size: 1.4rem; font-weight: 800; }
  .profile-stat small { font-size: 0.75rem; opacity: 0.75; }

  .pub-card {
	border: 1px solid #f0ede8;
	border-radius: 18px;
	padding: 1.1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	transition: box-shadow 0.15s;
	margin-bottom: 0.75rem;
  }

  .pub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

  .pub-thumb {
	width: 56px; height: 56px;
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.8rem;
	flex-shrink: 0;
  }

  .pub-thumb.perro { background: var(--brand-o-pale); }
  .pub-thumb.gato { background: var(--brand-teal-light); }

  .pub-card-info { flex: 1; }
  .pub-card-info strong { display: block; font-weight: 700; font-size: 0.95rem; }
  .pub-card-info small { color: var(--brand-gray); font-size: 0.8rem; }

  .pub-card-actions { display: flex; gap: 8px; }

  .btn-action {
	width: 34px; height: 34px;
	border-radius: 10px;
	border: 1px solid #f0ede8;
	background: #fff;
	display: flex; align-items: center; justify-content: center;
	color: var(--brand-gray);
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.15s;
  }

  .btn-action:hover { border-color: var(--brand-o); color: var(--brand-o); }

  .filter-bar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
  }

  .filter-chip {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 700;
	border: 1.5px solid #ede9e3;
	background: #fff;
	cursor: pointer;
	transition: all 0.15s;
	color: var(--brand-dark);
  }

  .filter-chip:hover, .filter-chip.active {
	border-color: var(--brand-o);
	background: var(--brand-o-pale);
	color: var(--brand-o);
  }

  /* ── FOOTER ── */
  footer {
	background: var(--brand-dark);
	color: #aaa;
	padding: 3rem 0 1.5rem;
  }

  footer .brand-footer {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0.8rem;
  }

  footer .brand-footer .paw-sm {
	width: 32px; height: 32px;
	background: var(--brand-o);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	font-size: 0.9rem;
  }

  footer p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

  footer h6 {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
  }

  footer ul { list-style: none; padding: 0; margin: 0; }

  footer ul li { margin-bottom: 0.5rem; }

  footer ul li a {
	color: #aaa;
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.15s;
  }

  footer ul li a:hover { color: var(--brand-o); }

  .footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
  }

  .footer-bottom p { margin: 0; font-size: 0.8rem; max-width: none; }

  .social-links { display: flex; gap: 10px; }

  .social-link {
	width: 36px; height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center;
	color: #aaa;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.15s;
  }

  .social-link:hover {
	border-color: var(--brand-o);
	color: var(--brand-o);
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
	.hero-image-box { margin-top: 3rem; }
	.hero-cta-row { flex-direction: column; }
	.btn-hero-primary, .btn-hero-secondary { text-align: center; }
	.nosotros-img-box { margin: 0 auto 2rem; }
	.contact-form-card { padding: 1.5rem; }
	.profile-stats { flex-wrap: wrap; gap: 1rem; }
	.filter-bar { gap: 6px; }
  }

  /* ── UTILS ── */
  .divider { height: 1px; background: #f0ede8; margin: 0; }

  .toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }