/* =========================================================
   GOYAN STUDIOS - ESTILOS
   ========================================================= */

:root {
  --bg: #fff8f1;
  --bg-soft: #f5eadf;
  --bg-card: rgba(255, 252, 248, 0.9);
  --text: #3b302b;
  --muted: #7b6960;
  --primary: #a8424b;
  --primary-dark: #772c34;
  --accent: #5f7f65;
  --accent-2: #d49355;
  --rose-soft: #f5d8d5;
  --border: rgba(80, 58, 49, 0.16);
  --shadow: 0 18px 42px rgba(83, 55, 44, 0.13);
  --radius: 8px;
  --container: 1120px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(168, 66, 75, 0.07), transparent 32%),
    linear-gradient(315deg, rgba(95, 127, 101, 0.11), transparent 36%),
    var(--bg);
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.section {
  padding: 76px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-soft {
  background: linear-gradient(180deg, rgba(245, 234, 223, 0.95), rgba(255, 248, 241, 0.65));
}

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 248, 241, 0.94);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(83, 55, 44, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-text {
  font-size: 1.12rem;
}

.brand-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text);
  background: rgba(168, 66, 75, 0.1);
}

.nav-menu .nav-cta {
  color: #fffdf9;
  background: var(--primary);
  font-weight: 850;
}

.nav-menu .nav-cta:hover {
  color: #fffdf9;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.86);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 50px);
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.98), rgba(255, 248, 241, 0.82) 56%, rgba(255, 248, 241, 0.45)),
    url("../img/coleccion-especiada.jpeg") center right / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.category-heading h2,
.section-heading h2,
.contact-card h2 {
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.1vw, 4.4rem);
}

.hero-description {
  max-width: 670px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.72;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fffdf9;
  background: var(--primary);
  box-shadow: 0 16px 35px rgba(168, 66, 75, 0.24);
}

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

.btn-secondary {
  color: var(--text);
  background: rgba(255, 252, 248, 0.76);
  border-color: var(--border);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 248, 0.76);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: clamp(320px, 40vw, 460px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.floating-card strong {
  font-size: 1.15rem;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.floating-card-top {
  top: 18px;
  left: -18px;
}

.floating-card-bottom {
  right: -18px;
  bottom: 18px;
}

/* =========================================================
   APARTADOS
   ========================================================= */
.category-heading,
.section-heading {
  max-width: 840px;
  margin-bottom: 42px;
}

.category-heading {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.category-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--primary), var(--accent-2));
}

.category-heading h2,
.section-heading h2,
.contact-card h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
}

.category-heading p,
.section-heading p,
.category-copy p,
.faq-answer p,
.contact-card p {
  color: var(--muted);
  line-height: 1.68;
}

.category-heading p {
  max-width: 760px;
  margin-top: 4px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 920px;
  margin-top: 10px;
}

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(255, 243, 223, 0.7)),
    var(--bg-card);
  box-shadow: 0 12px 30px rgba(83, 55, 44, 0.09);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 66, 75, 0.34);
  background: rgba(255, 252, 248, 0.98);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  max-height: none;
  object-fit: cover;
}

.category-card-featured {
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 285px;
}

.category-card-featured img {
  min-height: 285px;
}

.category-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
}

.category-copy span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  margin-bottom: 8px;
  border: 1px solid rgba(168, 66, 75, 0.18);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(245, 216, 213, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.category-copy h3 {
  max-width: 540px;
  margin-bottom: 7px;
  font-size: clamp(1.16rem, 1.7vw, 1.38rem);
  line-height: 1.12;
}

.category-card-featured .category-copy h3 {
  font-size: clamp(1.34rem, 2.2vw, 1.85rem);
}

.mini-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  list-style: none;
}

.mini-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
}

.text-link {
  width: fit-content;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 850;
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  color: var(--primary-dark);
}

.placeholder-panel {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(168, 66, 75, 0.12), rgba(95, 127, 101, 0.15)),
    rgba(255, 243, 223, 0.86);
}

.placeholder-panel span {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 248, 0.72);
  font-weight: 850;
}

/* =========================================================
   FAQ Y CONTACTO
   ========================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  font-size: 1.45rem;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 22px 22px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(168, 66, 75, 0.13), rgba(95, 127, 101, 0.14)),
    rgba(255, 252, 248, 0.9);
}

.contact-card p {
  max-width: 720px;
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid a:hover {
  color: var(--text);
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-menu a {
    padding: 0 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 248, 241, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
  }

  .hero-grid,
  .category-grid,
  .faq-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual img {
    height: 360px;
  }

  .category-card {
    grid-template-columns: 190px 1fr;
  }

  .category-card-featured {
    grid-template-columns: 260px 1fr;
  }

  .category-card-featured img {
    height: 100%;
    min-height: 260px;
    max-height: none;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
    background:
      linear-gradient(180deg, rgba(255, 248, 241, 0.99), rgba(255, 248, 241, 0.9) 72%, rgba(255, 248, 241, 0.68)),
      url("../img/coleccion-especiada.jpeg") center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .hero-description {
    margin-top: 20px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-visual {
    display: grid;
    gap: 10px;
  }

  .hero-visual img {
    height: 270px;
  }

  .floating-card {
    position: static;
  }

  .category-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .category-card img,
  .placeholder-panel {
    min-height: 0;
    height: 210px;
    max-height: 210px;
  }

  .category-card-featured img {
    height: 230px;
    max-height: 230px;
  }

  .category-copy {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
