/* =========================================
   LOOP-I — ESTILOS COMPLETOS
   ========================================= */

:root {
  --purple: #662483;
  --purple-dark: #361344;
  --purple-mid: #951b81;
  --lavender: #f8f2f9;
  --ink: #291630;
  --muted: #695a6d;
  --line: #e9ddeb;
  --white: #ffffff;

  --brand-start: #662483;
  --brand-end: #951b81;
  --brand-gradient: linear-gradient(
    120deg,
    var(--brand-start),
    var(--brand-end)
  );

  --container: 1200px;
  --header-height: 90px;
}

/* BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

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

button {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: #ead1e7;
  color: var(--purple-dark);
}

:focus-visible {
  outline: 3px solid var(--brand-end);
  outline-offset: 6px;
}

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

.section {
  padding-block: 112px;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--purple);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.4vw, 3.65rem);
  font-weight: 600;
}

h2 span {
  color: var(--purple);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 20px;
  padding: 10px 20px;
  color: var(--purple-dark);
  background: white;
}

.skip-link:focus {
  top: 10px;
}

/* ENCABEZADO */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-fallback {
  color: var(--purple);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}

.brand-point {
  color: var(--brand-end);
}

.brand-image {
  width: 135px;
  max-height: 56px;
  object-fit: contain;
  object-position: left;
}

#navigation {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.9rem;
}

#navigation a:not(.nav-contact) {
  padding-block: 12px;
}

#navigation a:hover,
#navigation a[aria-current="location"] {
  color: var(--brand-end);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 10px 19px;
  color: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-contact:hover {
  background: var(--lavender);
}

.menu-toggle {
  display: none;
  padding: 12px;
  color: var(--purple-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* PORTADA */

.hero {
  overflow: hidden;
  background: linear-gradient(
    105deg,
    #ffffff 40%,
    #faf3f9
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 40px;
  padding-block: 77px 64px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.7rem, 6.3vw, 5.8rem);
  font-weight: 600;
}

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

.hero-description {
  max-width: 445px;
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.8;
}

/* Degradado de texto solo donde es compatible */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 span,
  .products h2 span,
  .about h2 span {
    background-image: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}

/* BOTONES */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 100%;
  padding: 15px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--brand-gradient);
}

.button-primary:hover {
  background: linear-gradient(
    120deg,
    #541d6c,
    #7d176c
  );
}

.button span {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
}

.button-light {
  min-width: 175px;
  color: var(--purple);
  background: white;
}

.button-light:hover {
  background: #f5e7f3;
}

/* COMPOSICIÓN ABSTRACTA DE LA PORTADA */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 460px;
  isolation: isolate;
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#6624830b 1px, transparent 1px),
    linear-gradient(90deg, #951b810b 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse,
    #000,
    transparent 70%
  );
  mask-image: radial-gradient(
    ellipse,
    #000,
    transparent 70%
  );
}

.orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 40px solid transparent;
  border-radius: 50%;
  box-shadow:
    inset 4px 2px 9px #ffffff80,
    5px 14px 24px #66248323;
}

.orbit-one {
  top: 8%;
  left: 8%;
  border-color: var(--brand-start);
  background: linear-gradient(
    140deg,
    #951b8122,
    #66248308
  );
  transform: rotate(-32deg) scaleX(0.66);
}

.orbit-two {
  top: 20%;
  right: 0;
  border-color: var(--brand-end);
  transform: rotate(32deg) scaleX(0.66);
}

.orbit-three {
  z-index: -1;
  bottom: 3%;
  left: 25%;
  width: 240px;
  height: 240px;
  border-width: 26px;
  border-color: #d5abd3;
  transform: rotate(62deg) scaleX(0.65);
}

.art-core {
  z-index: 2;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 25%,
    #f9edf7,
    #d5abd3 30%,
    #951b81 62%,
    #662483 85%
  );
  box-shadow: 18px 22px 42px #66248325;
}

.art-label {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--purple);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.hero-bottom a {
  color: var(--purple);
}

.hero-bottom a span {
  margin-left: 18px;
}

/* PRODUCTOS */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 48px;
}

.section-heading > p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
}

.pet-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pet-intro {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 48px;
  color: white;
  background: var(--brand-gradient);
}

.pet-intro::after {
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 330px;
  height: 330px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow:
    0 0 0 42px #ffffff04,
    0 0 0 84px #ffffff03;
  content: "";
  pointer-events: none;
}

.status {
  display: inline-block;
  margin-bottom: 62px;
  padding: 6px 13px;
  color: white;
  background: #ffffff12;
  border: 1px solid #ffffff66;
  border-radius: 50px;
  font-size: 0.875rem;
}

.product-category {
  margin-bottom: 12px;
  color: #f5e7f3;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.pet-intro h3 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 4vw, 3.7rem);
  font-weight: 500;
}

.pet-tagline {
  margin-bottom: 40px;
  color: #f5e7f3;
  font-size: 1.3rem;
  line-height: 1.45;
}

.pet-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 20px;
  background: #ffffff40;
}

.pet-note {
  margin: 0;
  color: #f5e7f3;
  font-size: 0.875rem;
}

.pet-details {
  min-width: 0;
  padding: 46px 50px;
}

.pet-description {
  font-size: 1.07rem;
  line-height: 1.8;
}

.features {
  margin: 30px 0;
}

.features > div {
  position: relative;
  padding: 19px 0 19px 42px;
  border-top: 1px solid var(--line);
}

.features dt {
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-number {
  position: absolute;
  top: 20px;
  left: 0;
  color: var(--purple);
  font-size: 0.875rem;
}

.features dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.development-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* SOBRE NOSOTROS */

.about {
  background: var(--lavender);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.about-grid > div {
  min-width: 0;
}

.about-lead {
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.6;
}

.about-copy > p:not(.about-lead) {
  color: var(--muted);
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-left: 24px;
  border-left: 2px solid var(--brand-end);
  font-size: 0.9rem;
  font-weight: 600;
}

/* CONTACTO */

.contact {
  color: white;
  background: var(--brand-gradient);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
}

.contact-grid > div {
  min-width: 0;
}

.contact .eyebrow {
  color: #f5e7f3;
}

.contact h2 {
  font-size: clamp(2.5rem, 4.4vw, 3.55rem);
}

.contact h2 span {
  color: #f0cdea;
}

.contact-copy p {
  max-width: 365px;
  color: #f5e7f3;
}

.email-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 24px 0 28px;
  border-bottom: 1px solid #e6b9df;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: #f0cdea;
}

/* PIE DE PÁGINA */

.site-footer {
  padding-block: 50px 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 42px;
}

.footer-top p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
}

.footer-top nav a:hover,
.footer-bottom a:hover {
  color: var(--brand-end);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.footer-bottom a span {
  margin-left: 12px;
}

/* PANTALLAS GRANDES */

@media (min-width: 1500px) {
  .hero-grid {
    padding-block: 100px 80px;
  }
}

/* TABLETS Y LAPTOPS PEQUEÑAS */

@media (max-width: 1000px) {
  .container {
    width: calc(100% - 56px);
  }

  .hero-grid {
    gap: 15px;
  }

  .hero-art {
    height: 390px;
    transform: scale(0.85);
    transform-origin: center right;
  }

  .section {
    padding-block: 85px;
  }

  .pet-intro,
  .pet-details {
    padding: 35px;
  }

  .about-grid,
  .contact-grid {
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 6.5vw, 4.5rem);
  }

  #navigation {
    gap: 22px;
  }
}

/* CELULARES */

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 17px;
  }

  .brand-fallback {
    font-size: 2rem;
  }

  .brand-image {
    width: 115px;
    max-height: 42px;
  }

  .menu-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .menu-lines {
    width: 20px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .menu-toggle[aria-expanded="true"] .menu-lines {
    transform: rotate(-45deg);
  }

  #navigation {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-top: 18px;
    font-size: 0.875rem;
  }

  body.js #navigation {
    display: none;
  }

  body.js #navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }

  #navigation a {
    padding: 10px;
  }

  .nav-contact {
    justify-content: space-between;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 50px 35px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 9.7vw, 4.65rem);
  }

  .hero-description {
    max-width: 480px;
  }

  .hero .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 400px);
    height: 300px;
    margin-top: 16px;
    transform: none;
  }

  .orbit {
    width: 235px;
    height: 235px;
    border-width: 28px;
  }

  .orbit-one {
    top: 0;
    left: 10%;
  }

  .orbit-two {
    top: 14%;
    right: 3%;
  }

  .orbit-three {
    bottom: 3%;
    left: 30%;
    width: 180px;
    height: 180px;
    border-width: 20px;
  }

  .art-core {
    width: 125px;
    height: 125px;
  }

  .art-label {
    right: 15px;
    font-size: 0.75rem;
  }

  .hero-bottom {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }

  .section {
    padding-block: 65px;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    max-width: 500px;
    margin-top: 24px;
  }

  .eyebrow {
    margin-bottom: 19px;
  }

  .pet-card {
    grid-template-columns: 1fr;
  }

  .pet-intro,
  .pet-details {
    padding: 30px;
  }

  .status {
    margin-bottom: 35px;
  }

  .pet-intro h3 {
    font-size: clamp(2.4rem, 10vw, 3rem);
  }

  .pet-tagline {
    margin-bottom: 28px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-lead {
    font-size: 1.25rem;
  }

  .contact-copy p {
    max-width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 30px;
  }

  .footer-top nav {
    flex-wrap: wrap;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .button {
    gap: 20px;
  }

  .site-footer {
    padding-top: 38px;
  }
}

/* CELULARES PEQUEÑOS */

@media (max-width: 380px) {
  .container {
    width: calc(100% - 32px);
  }

  h2,
  .contact h2 {
    font-size: 2.15rem;
  }

  .pet-intro,
  .pet-details {
    padding: 24px;
  }

  .button {
    gap: 14px;
    padding: 14px 16px;
    font-size: 0.875rem;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .hero h1 span,
  .products h2 span,
  .about h2 span {
    background: none;
    color: CanvasText;
  }

  .button,
  .status {
    border: 1px solid ButtonText;
  }
}
