:root {
  --turquoise-500: #00acbb;
  --turquoise-600: #0098a5;
  --gray-900: #3a4753;
  --gray-700: #5d6a78;
  --gray-200: #dbe3ea;
  --gray-100: #f4f5f6;
  --gray-50: #fdfdfd;
  --footer: #deeaee;
  --brand: var(--turquoise-500);
  --brand-dark: var(--turquoise-600);
  --text: var(--gray-900);
  --muted: var(--gray-700);
  --bg-soft: var(--gray-100);
  --card-border: var(--gray-200);
  --line-height-text: 1.45;
  --heading-line-height: var(--line-height-text);
  --body-line-height: var(--line-height-text);
  --text-letter-spacing: 0.01em;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: var(--body-line-height);
  letter-spacing: var(--text-letter-spacing);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--heading-line-height);
  letter-spacing: var(--text-letter-spacing);
}

p,
button,
input,
textarea,
select,
label,
small {
  line-height: var(--body-line-height);
  letter-spacing: var(--text-letter-spacing);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #edf2f4;
}

.topbar-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0.2px;
  line-height: var(--body-line-height);
}

.auth-buttons {
  display: flex;
  gap: 12px;
}

.topbar .auth-buttons {
  display: none !important;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.96rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fill {
  background: var(--brand);
  color: #fff;
}

.btn-fill:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
}

.btn-outline:hover {
  background: #ebf9fb;
}

.hero-wrap {
  margin-top: 16px;
}

.hero-banner {
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 1024 / 409;
  height: auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #dfe8ec;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-track {
  height: 100%;
  display: flex;
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  margin: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(43, 56, 68, 0.12), rgba(43, 56, 68, 0.05));
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto !important;
  height: auto !important;
  padding: 0 8px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: none !important;
}

.hero-arrow i {
  display: none;
}

.hero-arrow::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 3.1rem;
  font-weight: 700;
  line-height: var(--body-line-height);
  color: var(--brand);
}

.hero-arrow-prev::before {
  content: "‹";
  color: #d7f3fb;
}

.hero-arrow-next::before {
  content: "›";
  color: #d7f3fb;
}

.hero-arrow-prev:hover::before {
  color: #c7eaf5;
}

.hero-arrow-next:hover::before {
  color: #c7eaf5;
}

.hero-arrow:hover {
  color: var(--brand-dark);
  transform: translateY(-50%);
}

.hero-arrow:focus,
.hero-arrow:focus-visible {
  outline: none;
}

.hero-arrow-prev {
  left: 12px;
}

.hero-arrow-next {
  right: 12px;
}

.hero-card {
  margin: 16px auto 0;
  max-width: 100%;
  border-radius: 22px;
  background: #eef1f2;
  text-align: center;
  padding: 18px 20px 22px;
}

.hero-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
}

.hero-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: #c6d4de;
  cursor: pointer;
  padding: 0;
}

.hero-indicator-dot.is-active {
  background: var(--brand);
}

.hero-card h1 {
  margin: 0;
  color: var(--brand);
  font-size: 2.85rem;
  line-height: var(--body-line-height);
  font-weight: 900;
}

.hero-card p {
  margin: 8px 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.features {
  margin-top: 28px;
  background: var(--bg-soft);
  padding: 48px 0 52px;
}

.news-section {
  background: #eef3f6;
}

.section-heading {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.section-heading h2 {
  font-size: 32px;
  margin: 0;
  font-weight: 900;
  line-height: var(--body-line-height);
}

.section-heading h2 span {
  color: var(--brand);
}

.section-heading p {
  margin: 10px auto 0;
  font-size: 1.12rem;
  color: #3d4d5b;
  max-width: 790px;
}

.quick-access-title {
  color: var(--text);
}

.quick-access-title span {
  color: var(--brand);
}

.notipets-title {
  color: var(--brand);
}

.notipets-subtitle {
  font-weight: 800;
  line-height: var(--body-line-height);
}

.notipets-subtitle span {
  display: block;
}

.notipets-subtitle span:last-child {
  color: var(--brand);
}

.news-grid-three {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  box-shadow: 0 8px 18px rgba(58, 71, 83, 0.12);
}

.news-card:focus-visible {
  outline: 3px solid #b4edf2;
  outline-offset: 2px;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.news-go-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 172, 187, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  margin-top: auto;
  align-self: flex-start;
}

.adopcion-highlight {
  color: var(--brand);
}

.news-content {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  flex: 1;
}

.news-meta {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.news-content h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  line-height: var(--body-line-height);
  font-weight: 900;
}

.news-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: var(--body-line-height);
}

.quick-access {
  background: #fff;
  padding: 44px 0;
}

.quick-access .section-heading p {
  font-weight: 800;
}

.quick-carousel {
  margin-top: 20px;
  overflow: hidden;
  padding-inline: 18px;
}

.quick-carousel-track {
  --scroll-distance: 0px;
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: quick-carousel-scroll 42s linear infinite;
}

.quick-carousel-set {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}

@keyframes quick-carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--scroll-distance)));
  }
}

.quick-carousel-card {
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
  width: 210px;
  flex: 0 0 210px;
  border: 1px solid var(--card-border);
  background: #fff;
  position: relative;
}

.quick-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 172, 187, 0.1);
  z-index: 1;
  pointer-events: none;
}

.quick-carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.quick-carousel-cta {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: var(--body-line-height);
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
}

.quick-carousel-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.site-footer {
  background: var(--footer);
  border-top: 1px solid #cfdee4;
}

.footer-main {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.8fr 1fr;
  padding: 36px 0;
}

.footer-col h4,
.footer-col h5 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 1.2rem;
  line-height: var(--body-line-height);
}

.footer-contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col p,
.footer-col a {
  display: block;
  margin: 0;
  color: #3f4d5a;
  font-weight: 600;
  line-height: var(--body-line-height);
}

.footer-col a:hover {
  color: var(--brand-dark);
}

.footer-contact-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.footer-contact-link i {
  color: var(--brand);
  font-size: 1.05rem;
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: 0 0 auto;
}

.footer-bottom {
  border-top: 1px solid #cfdee4;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
  font-size: inherit;
  line-height: var(--body-line-height);
  color: #495868;
  text-align: center;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: #d7e1e7;
}

.socials a:hover {
  background: #cad8e0;
}

.news-modal[hidden] {
  display: none;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 20px;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 56, 68, 0.55);
}

.news-modal__dialog {
  position: relative;
  width: min(540px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(43, 56, 68, 0.2);
  text-align: center;
}

.news-modal__dialog h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: var(--body-line-height);
}

.news-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .news-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-thumb {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .news-content h3 {
    font-size: 1.12rem;
    line-height: var(--body-line-height);
  }

  .news-content p {
    font-size: 0.95rem;
    line-height: var(--body-line-height);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .logo {
    font-size: 1.42rem;
  }

  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
  }

  .hero-banner {
    width: 100%;
    aspect-ratio: 1024 / 409;
    height: auto;
    min-height: 0;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-card h1 {
    font-size: 2.1rem;
  }

  .hero-card p {
    font-size: 1rem;
  }

  .news-grid-three,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .quick-carousel-card,
  .quick-carousel-card img {
    min-height: 220px;
  }

  .quick-carousel-card {
    width: 170px;
    flex-basis: 170px;
  }

}
