* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f6f5f0;
  color: #173137;
  font-family: Arial,Helvetica,sans-serif;
  font-size: 16px;
}
a {
  text-decoration: none;
  color: inherit;
}
button,a {
  touch-action: manipulation;
}
/* Navegación y cabecera */
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(4vw,24px);
  background: #f6f5f0;
}
.brand {
  font-family: Georgia,serif;
  font-size: 1.8rem;
  letter-spacing: -.08em;
  font-weight: bold;
  white-space: nowrap;
}
.brand span:not(.brand-star) {
  color: #5a9d96;
}
.brand-star {
  font-size: 1.1rem;
  margin-left: 5px;
  color: #c7a972;
}
.site-header nav {
  display: flex;
  gap: 32px;
  font-size: .9rem;
}
.site-header nav a:hover,.admin-link:hover {
  color: #438a84;
}
.admin-link {
  font-size: .85rem;
  border-bottom: 1px solid #163f41;
  padding-bottom: 5px;
}
/* Portada */
.hero {
  min-height: 620px;
  background: #103940;
  color: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 53% 47%;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 115px 2vw 110px max(7vw,32px);
}
.eyebrow {
  font-size: .76rem;
  letter-spacing: .2em;
  font-weight: bold;
  color: #aad1c6;
}
.eyebrow.dark {
  color: #558782;
}
.hero h1,.breeds h2,.contact h2 {
  font-family: Georgia,serif;
  font-size: clamp(3.4rem,5.8vw,6rem);
  letter-spacing: -.055em;
  line-height: 1.05;
  font-weight: 400;
  max-width: 750px;
  margin: 32px 0 28px;
}
.hero em,.breeds em,.contact em {
  color: #b7d2c3;
  font-weight: 400;
}
.hero-copy>p:not(.eyebrow) {
  font-size: 1.13rem;
  line-height: 1.7;
  color: #d4e4df;
  max-width: 500px;
}
.button {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  background: #143f44;
  color: #fff;
  padding: 17px 22px;
  font-size: .95rem;
  font-weight: bold;
  margin-top: 22px;
}
.button.light {
  background: #e7ebdd;
  color: #173b3d;
}
.button:hover {
  opacity: .85;
}
.hero-art {
  position: relative;
  min-height: 500px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url('/hero-cat.jpg') center center/cover no-repeat;
}
.hero-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#103940 0%,transparent 26%);
}
.hero-index {
  position: absolute;
  right: 5vw;
  bottom: 29px;
  font-size: .74rem;
  letter-spacing: .09em;
  color: #c4d7d1;
}
/* Catálogo y blog */
.section {
  padding: 95px max(7vw,28px) 110px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}
.section-heading h2 {
  font-family: Georgia,serif;
  font-size: clamp(2.4rem,4vw,4.3rem);
  font-weight: 400;
  letter-spacing: -.04em;
  margin: 12px 0 0;
}
.section-heading>p {
  max-width: 300px;
  line-height: 1.6;
  color: #637074;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.card,.post-card {
  background: #fff;
  overflow: hidden;
}
.card-image {
  aspect-ratio: 4/3;
  background: #dfe9e6;
  display: grid;
  place-items: center;
  color: #60847e;
  font-family: Georgia,serif;
}
.card-image img,.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-content {
  padding: 24px;
}
.pill {
  display: inline-block;
  background: #e6eee7;
  color: #326557;
  border-radius: 40px;
  padding: 7px 11px;
  font-size: .78rem;
}
.card h3 {
  font-family: Georgia,serif;
  font-size: 2rem;
  margin: 20px 0 5px;
}
.card p {
  color: #637074;
}
.card-more {
  display: block;
  border-top: 1px solid #e4e9e5;
  margin-top: 26px;
  padding-top: 16px;
  font-size: .9rem;
  font-weight: bold;
}
.empty {
  text-align: center;
  border: 1px solid #d8e0db;
  background: #ecf0e9;
  padding: 70px 20px;
}
.empty-mark {
  font-size: 2.5rem;
  color: #638d84;
}
.empty h3 {
  font-family: Georgia,serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 12px 0;
}
.empty p {
  color: #66746f;
}
/* Razas */
.breeds {
  background: #1b4449;
  color: #fff;
  padding: 95px max(7vw,28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
}
.breeds h2 {
  font-size: clamp(2.8rem,4vw,4.8rem);
  margin-top: 25px;
}
.breed-list>div {
  display: grid;
  grid-template-columns: 55px 1fr 30px;
  align-items: center;
  border-bottom: 1px solid #668285;
  padding: 16px 0;
}
.breed-list strong {
  font-family: Georgia,serif;
  font-size: clamp(1.4rem,2.2vw,2.4rem);
  font-weight: 400;
}
.breed-list span {
  color: #aac6b8;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.post-card img {
  aspect-ratio: 3/2;
}
.post-card>div {
  padding: 25px;
}
.post-card h3 {
  font: normal 1.7rem Georgia,serif;
  line-height: 1.2;
  margin: 15px 0;
}
.post-card p {
  color: #64716d;
  line-height: 1.6;
}
.post-card span:last-child {
  font-weight: bold;
}
/* Contacto y pie */
.contact {
  background: #dce9e3;
  text-align: center;
  padding: 100px 24px;
}
.contact .eyebrow {
  color: #45827c;
}
.contact h2 {
  margin: 20px auto;
  font-size: clamp(2.8rem,5vw,5.5rem);
}
.contact em {
  color: #4c8b82;
}
.contact>p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px auto;
  line-height: 1.65;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #143f44;
  color: #fff;
  transition: opacity .2s ease, transform .2s ease;
}
.contact-icon:hover {
  opacity: .85;
  transform: translateY(-2px);
}
.contact-icon:focus-visible {
  outline: 3px solid #143f44;
  outline-offset: 4px;
}
.contact-icon svg {
  width: 28px;
  height: 28px;
}
.contact-instagram {
  background: transparent;
  color: #143f44;
  border: 2px solid #143f44;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px max(7vw,28px);
  background: #10383f;
  color: #d8e8e2;
  font-size: .88rem;
}
footer span:first-child {
  font-family: Georgia,serif;
  font-size: 1.2rem;
}
.notice {
  padding: 25px;
  background: #fff;
}
/* Páginas de detalle */
.detail,.article {
  max-width: 1240px;
  margin: auto;
  padding: 44px 28px 100px;
}
.back {
  display: inline-block;
  margin-bottom: 35px;
  border-bottom: 1px solid;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}
.detail-image {
  aspect-ratio: 4/5;
  background: #dfe9e6;
  display: grid;
  place-items: center;
  font: 2rem Georgia,serif;
  color: #688780;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}
.detail-gallery a { aspect-ratio: 1; overflow: hidden; background: #dfe9e6; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-info {
  padding-top: 40px;
}
.detail h1,.article h1 {
  font: normal clamp(3rem,6vw,6rem) Georgia,serif;
  letter-spacing: -.05em;
  margin: 20px 0;
}
.detail-description,.article-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.detail dl {
  margin: 40px 0;
}
.detail dl div {
  display: flex;
  border-top: 1px solid #ccd8d1;
  padding: 16px 0;
  gap: 20px;
}
.detail dt {
  min-width: 125px;
  color: #668078;
}
.detail dd {
  margin: 0;
}
.article {
  max-width: 850px;
}
.article-image {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  margin: 25px 0;
}
.article-body {
  font-size: 1.1rem;
  line-height: 1.85;
  white-space: pre-wrap;
}
.article-body p {
  margin: 25px 0;
}
/* Panel de administración */
.admin {
  min-height: 100vh;
  background: #f6f5f0;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px max(5vw,24px);
  border-bottom: 1px solid #dce3df;
}
.admin-wrap {
  max-width: 1050px;
  margin: 60px auto;
  padding: 0 24px;
}
.admin-title h1 {
  font: normal 3.5rem Georgia,serif;
  margin: 12px 0;
}
.admin-title p:last-child {
  color: #65716e;
}
.admin-wrap [role=tablist] {
  margin: 35px 0 20px;
}
.admin-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.admin-section h2 {
  font: normal 2rem Georgia,serif;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid #dce3df;
  background: #fff;
  margin: 9px 0;
}
.admin-thumb {
  width: 70px;
  height: 70px;
  background: #e4ebe5;
  display: grid;
  place-items: center;
  flex: none;
}
.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-row strong,.admin-row small {
  display: block;
}
.admin-row small {
  margin-top: 7px;
  color: #6e7774;
}
.row-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.admin-empty {
  background: #e9eee9;
  padding: 40px;
  text-align: center;
  color: #66736c;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .9rem;
  font-weight: 600;
}
.form-fields {
  display: grid;
  gap: 17px;
  padding: 8px 0;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.publish-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}
.upload-preview img {
  width: 90px;
  height: 90px;
  object-fit: cover;
}
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 14px; width: 100%; }
.admin-photo { display: flex; flex-direction: column; align-items: start; gap: 7px; }
.admin-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.admin-photo span { font-weight: 700; color: #173b3d; }
.admin-photo button { font: inherit; font-size: .82rem; cursor: pointer; }
.form-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding-top: 10px;
}
.admin-locked {
  max-width: 650px;
  margin: 15vh auto;
  padding: 30px;
}
.admin-locked h1 {
  font: normal 3rem Georgia,serif;
}
/* Diseño para pantallas pequeñas */
@media(max-width:760px) {
  .site-header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 22px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    font-size: .82rem;
  }
  .admin-link {
    font-size: .78rem;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    padding: 70px 25px 45px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-art {
    height: 370px;
    min-height: 0;
  }
  .hero-art: after {
    background: linear-gradient(#103940,transparent 25%);
  }
  .hero-index {
    position: static;
    display: block;
    padding: 15px 25px;
  }
  .section {
    padding: 65px 24px;
  }
  .section-heading {
    display: block;
  }
  .section-heading>p {
    max-width: 100%;
  }
  .grid,.post-grid,.breeds,.detail-grid {
    grid-template-columns: 1fr;
  }
  .breeds {
    padding: 70px 24px;
    gap: 30px;
  }
  .contact {
    padding: 70px 24px;
  }
  footer {
    flex-wrap: wrap;
  }
  .detail-info {
    padding-top: 0;
  }
  .detail,.article {
    padding: 30px 24px 70px;
  }
  .admin-wrap {
    margin: 35px auto;
  }
  .admin-title h1 {
    font-size: 2.7rem;
  }
  .admin-row {
    flex-wrap: wrap;
  }
  .row-actions {
    width: 100%;
    justify-content: end;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
}
.cat-price {
  font-weight: 700;
  color: #173b3d!important;
  margin: 12px 0 0;
}
/* Plain JavaScript administration controls */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 35px 0 20px;
  border-bottom: 1px solid #dce3df;
}
.admin-tabs button {
  background: transparent;
  border: 0;
  padding: 12px 17px;
  font: inherit;
  cursor: pointer;
  color: #526761;
}
.admin-tabs button[aria-selected=true] {
  border-bottom: 3px solid #1c5a5b;
  color: #173137;
  font-weight: bold;
}
button.action {
  background: #153b41;
  color: white;
  border: 1px solid #153b41;
  padding: 10px 18px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  border-radius: 6px;
}
button.action.secondary {
  background: white;
  color: #173137;
  border-color: #b9c6bf;
}
button.action.danger {
  background: #9a2936;
  border-color: #9a2936;
}
button.action:disabled {
  opacity: .5;
  cursor: wait;
}
[hidden] {
  display: none!important;
}
dialog {
  border: 1px solid #dce3df;
  border-radius: 12px;
  width: min(650px,calc(100% - 28px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  background: white;
  color: #173137;
  box-shadow: 0 20px 80px #0d252744;
}
dialog::backdrop {
  background: #102d31aa;
}
dialog h2 {
  font: normal 2rem Georgia,serif;
  margin: 0 0 20px;
}
#form-fields {
  display: grid;
  gap: 17px;
}
.field input,.field select,.field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #bccbc5;
  border-radius: 6px;
  background: #fff;
  color: #173137;
}
.field textarea {
  resize: vertical;
}
.publish-row input {
  width: 19px;
  height: 19px;
}
.form-actions {
  margin-top: 24px;
}
#notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #153b41;
  color: white;
  padding: 14px 20px;
  border-radius: 6px;
  max-width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#notice.visible {
  opacity: 1;
}
#notice.error {
  background: #9a2936;
}
@media(max-width:760px) {
  dialog {
    padding: 20px;
  }
  .admin-row {
    gap: 12px;
  }
}
