/*
 Theme Name:   Astra Child
 Description:  Tema hijo premium con animaciones GSAP desarrollado para Cristina González.
 Author:       Zionfy
 Template:     astra
 Version:      1.0.0
*/

/* ── SISTEMA DE DISEÑO PREMIUM (ZIONFY STANDARD) ────────────────── */
:root {
  --black:    #000000;
  --white:    #ffffff;
  --g900:     #111111;
  --g700:     #333333;
  --g600:     #555555;
  --g500:     #666666;
  --g400:     #888888;
  --g300:     #aaaaaa;
  --g200:     #cccccc;
  --g100:     #e8e8e8;
  --g50:      #f5f2ec; /* Tono lino/crema de la marca */

  --serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:     'DM Sans', system-ui, -apple-system, sans-serif;

  --container: 1360px;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --header-h:  70px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.0, 0, 0.2, 1);
  --dur-fast:  180ms;
  --dur-base:  350ms;
  --dur-slow:  600ms;
}

/* ── RESET DE ESTILOS ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
.cg-body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── COMPONENTES: ETIQUETAS Y BOTONES ────────────────────────────── */
.cg-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--g400);
  display: block;
  margin-bottom: 0.5rem;
}
.cg-label--light { color: rgba(255,255,255,0.4); }

.cg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1em 2.25rem;
  border: none;
  transition: transform var(--dur-fast) var(--ease-expo), background var(--dur-fast);
  will-change: transform;
}
.cg-btn--primary { background: var(--black); color: var(--white); }
.cg-btn--primary:hover { background: var(--g700); transform: translateY(-2px); }
.cg-btn--ghost { background: transparent; color: var(--black); border: 1px solid var(--black); }
.cg-btn--ghost:hover { background: var(--black); color: var(--white); }
.cg-btn--lg { padding: 1.25rem 3rem; font-size: 0.875rem; }
.cg-btn--sm { padding: 0.6rem 1.2rem; font-size: 0.6875rem; }

.cg-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--g200);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast);
}
.cg-link-arrow:hover { border-color: var(--black); }

/* ── SECCIÓN: HEADER (MENÚ SUPERIOR) ────────────────────────────── */
.cg-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g100);
}
.cg-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cg-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cg-header__logo-img {
  width: 42px; height: 42px;
  object-fit: contain;
}
.cg-header__brand-name {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cg-header__nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.cg-header__nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
  transition: opacity var(--dur-fast);
}
.cg-header__nav a:hover { opacity: 0.6; }
.cg-header__nav-cta {
  font-weight: 700 !important;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
}

/* ── SECCIÓN 1: HERO (PORTADA PRINCIPAL) ────────────────────────── */
.cg-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--g50);
}
.cg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--g50);
}
.cg-hero__grain {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.cg-hero__content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}
.cg-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 1rem;
}
.cg-hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.cg-hero__title-line { display: block; }
.cg-hero__title-line--serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.cg-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--g700);
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.cg-hero__actions { display: flex; gap: 1.25rem; align-items: center; }
.cg-hero__logo-seal {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 32vw, 420px);
  opacity: 0.04;
  pointer-events: none;
}
.cg-hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cg-hero__scroll-text {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g400);
}
.cg-hero__scroll-line {
  width: 50px; height: 1px;
  background: var(--g300);
}

/* ── SECCIÓN 2: MANIFIESTO DE ESTILO ────────────────────────────── */
.cg-manifesto {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: var(--white);
  text-align: center;
}
.cg-manifesto__inner { max-width: 980px; margin: 0 auto; }
.cg-manifesto__header { margin-bottom: 2.5rem; }
.cg-manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.2vw, 3.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 2.5rem;
}
.cg-word--italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.cg-word--bold { font-weight: 700; }
.cg-manifesto__sub {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--g500);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* ── SECCIÓN 3: STYLING JOURNEY (ANIMACIÓN PINNED DE LA PERCHA) ── */
.cg-journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--g50);
  position: relative;
}
.cg-journey__stage-col {
  position: relative;
  background: var(--white);
  border-right: 1px solid var(--g100);
}
.cg-journey__stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cg-stage__hanger {
  width: 160px;
  z-index: 10;
  position: relative;
  transform-origin: top center;
}
.cg-stage__garment {
  position: absolute;
  width: 170px;
  top: 45%;
  transform: translateY(-50%) scale(0.9);
  opacity: 0;
  will-change: transform, opacity;
}
.cg-stage__accessories {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cg-stage__acc {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
}
.cg-stage__acc--bag     { width: 75px; bottom: 18%; left: 22%; }
.cg-stage__acc--glasses { width: 85px; top: 32%; right: 20%; }
.cg-stage__cta {
  text-align: center;
  position: absolute;
  bottom: 12%;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}
.cg-stage__cta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 0.25rem;
}
.cg-stage__cta-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.cg-stage__cta-title em { font-style: italic; font-weight: 400; }

/* Columna Derecha con Scroll */
.cg-journey__content { padding: 0 var(--gutter); }
.cg-journey__block {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}
.cg-journey__block-inner { max-width: 460px; }
.cg-journey__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--g200);
  display: block;
  margin-bottom: 0.5rem;
}
.cg-journey__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.cg-journey__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--g600);
  margin-bottom: 1.75rem;
}
.cg-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.cg-brand-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--white);
  border: 1px solid var(--g100);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
}

/* ── SECCIÓN 4: ESCAPARATE DE PRODUCTOS (WOOCOMMERCE GRID) ──────── */
.cg-products {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: var(--g50);
}
.cg-products__header {
  max-width: var(--container);
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.cg-products__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
  margin: 0.5rem 0 1rem;
}
.cg-products__title em { font-style: italic; color: var(--g400); font-weight: 400; }
.cg-products__sub { font-size: 1rem; color: var(--g600); max-width: 520px; }

.cg-products__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.cg-product {
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--g100);
  transition: transform var(--dur-base) var(--ease-expo);
}
.cg-product:hover { transform: translateY(-4px); }
.cg-product--large { grid-column: span 2; }
.cg-product__link { display: block; width: 100%; }
.cg-product__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--g50);
}
.cg-product__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ph-bg, #f5f2ec);
  color: var(--ph-c, #111111);
}
.ph-icon { width: 56px; height: auto; opacity: 0.7; }
.cg-product__hover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.cg-product__img-wrap:hover .cg-product__hover-overlay { opacity: 1; }
.cg-product__info {
  padding-top: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.cg-product__brand {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g400);
}
.cg-product__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
}
.cg-product__desc {
  font-size: 0.8125rem;
  color: var(--g500);
  line-height: 1.4;
}
.cg-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
}
.cg-product__price { font-size: 1.0625rem; font-weight: 800; }
.cg-btn--product {
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  background: var(--black);
  color: var(--white);
}
.cg-btn--product:hover { background: var(--g700); }
.cg-products__footer { text-align: center; margin-top: 4rem; }

/* ── SECCIÓN 5: FAQ (ACORDEONES DE PREGUNTAS FRECUENTES) ────────── */
.cg-faq {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: var(--white);
}
.cg-faq__inner { max-width: 960px; margin: 0 auto; }
.cg-faq__header { margin-bottom: 3.5rem; }
.cg-faq__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
}
.cg-faq__title em { font-style: italic; color: var(--g400); font-weight: 400; }

.cg-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.cg-faq__item {
  border-bottom: 1px solid var(--g100);
  padding: 0.25rem 0;
}
.cg-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.cg-faq__q::-webkit-details-marker { display: none; }
.cg-faq__icon { transition: transform var(--dur-base) var(--ease-expo); }
.cg-faq__item[open] .cg-faq__icon { transform: rotate(180deg); }
.cg-faq__a { padding: 0 0 1.25rem 0; font-size: 0.875rem; line-height: 1.6; color: var(--g500); }

/* ── SECCIÓN 6: FOOTER & NEWSLETTER ─────────────────────────────── */
.cg-footer {
  background: var(--black);
  color: var(--white);
}
.cg-newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: clamp(4.5rem, 9vw, 7rem) var(--gutter);
}
.cg-newsletter__inner { max-width: 580px; margin: 0 auto; text-align: center; }
.cg-newsletter__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.0;
  margin: 0.5rem 0 1.25rem;
}
.cg-newsletter__title em { font-style: italic; color: rgba(255,255,255,0.45); font-weight: 400; }
.cg-newsletter__desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.cg-newsletter__form { margin-top: 2.25rem; }
.cg-newsletter__field {
  display: flex;
  border: 1px solid rgba(255,255,255,0.2);
  height: 52px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.cg-newsletter__field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 1.25rem;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
}
.cg-newsletter__field input::placeholder { color: rgba(255,255,255,0.3); }
.cg-btn--newsletter {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 0 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cg-btn--newsletter:hover { background: var(--g100); }
.cg-newsletter__privacy { font-size: 0.6875rem; color: rgba(255,255,255,0.3); }
.cg-newsletter__privacy a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* Footer Base */
.cg-footer__bottom {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  max-width: var(--container);
  margin: 0 auto;
}
.cg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cg-footer__col--brand img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 1.25rem; }
.cg-footer__about { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.cg-social { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.cg-social__link { color: rgba(255,255,255,0.4); transition: color var(--dur-fast); }
.cg-social__link:hover { color: var(--white); }

.cg-footer__col-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.cg-footer__nav { display: flex; flex-direction: column; gap: 0.875rem; }
.cg-footer__nav a { font-size: 0.8125rem; color: rgba(255,255,255,0.6); transition: color var(--dur-fast); }
.cg-footer__nav a:hover { color: var(--white); }

.cg-footer__address {
  font-style: normal;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.cg-footer__address a { color: rgba(255,255,255,0.5); }
.cg-footer__address a:hover { color: var(--white); }

.cg-footer__legal {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 1rem;
}
.cg-footer__legal a { color: rgba(255,255,255,0.4); margin-left: 0.5rem; }
.cg-footer__legal a:hover { color: var(--white); }

/* ── RESPONSIVE Y ADAPTACIÓN DISPOSITIVOS ───────────────────────── */
@media (max-width: 1024px) {
  .cg-products__grid { grid-template-columns: repeat(2, 1fr); }
  .cg-faq__grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .cg-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .cg-header__nav { display: none; } /* Ocultar menú normal en móvil */
  .cg-journey { grid-template-columns: 1fr; }
  .cg-journey__stage-col { display: none; } /* Desactivamos el panel pegajoso en móvil por UX */
  .cg-product--large { grid-column: span 1; }
  .cg-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cg-footer__legal { flex-direction: column; text-align: center; gap: 0.5rem; }
}
@media (max-width: 480px) {
  .cg-hero__title { font-size: clamp(2.75rem, 15vw, 4.5rem); }
  .cg-products__grid { grid-template-columns: 1fr; }
  .cg-hero__actions { flex-direction: column; width: 100%; align-items: stretch; }
  .cg-btn { justify-content: center; }
}