/* ============================================================
   ÁMATE — ESCUELA DE ARTE TEXTIL Y DESARROLLO CREATIVO
   main.css · Design system fiel a la identidad de marca
   Tipografía: Syne (display) + Crimson Pro (cuerpo)
   Colores: negro #0C0C0C · blanco #FFFFFF · carmín #C91B5A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* ── VARIABLES ── */
:root {
  /* Paleta de marca: 3 colores */
  --ink:          #0C0C0C;
  --paper:        #FFFFFF;
  --heart:        #C91B5A;
  --heart-deep:   #A0134A;
  --heart-pop:    #E0225F;
  --heart-glow:   rgba(201,27,90,0.12);
  --heart-subtle: rgba(201,27,90,0.06);

  /* Grises de apoyo */
  --warm-bg:   #F7F3EE;   /* canvas natural — secciones alternas */
  --ink-60:    #5C5450;
  --ink-30:    #A89E96;
  --line:      #E8E2DA;

  /* Tipografías */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Crimson Pro', Georgia, serif;

  /* Espaciado */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-6:  1.5rem;   --sp-8:  2rem;
  --sp-12: 3rem;     --sp-16: 4rem;     --sp-24: 6rem;

  /* Radios */
  --r-sm: 3px;  --r-md: 6px;  --r-lg: 12px;  --r-xl: 20px;  --r-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 4px rgba(12,12,12,0.07);
  --shadow-md:  0 4px 20px rgba(12,12,12,0.09);
  --shadow-lg:  0 8px 40px rgba(12,12,12,0.13);
  --shadow-pri: 0 4px 24px rgba(201,27,90,0.32);

  /* Transiciones */
  --tr-fast: 0.15s ease;  --tr-base: 0.25s ease;  --tr-slow: 0.4s ease;

  /* Layout */
  --max-w:    1200px;
  --header-h: 68px;
  --gutter:   1.5rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 18px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem,   4vw, 3rem);   }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.2rem); }
p  { font-size: clamp(1rem, 1.1vw, 1.1rem); line-height: 1.75; }
em { font-style: italic; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: var(--sp-24) 0; border-top: 4px solid var(--ink); }
.section-sm { padding: var(--sp-16) 0; border-top: 4px solid var(--ink); }

/* Sección oscura */
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .section-kicker { color: var(--ink-30); }
.section-dark .section-header p { color: var(--ink-30); }
.section-dark h2 { color: var(--paper); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -60px; left: 0;
  background: var(--heart); color: var(--paper);
  padding: 10px 20px; z-index: 9999;
  border-radius: 0 0 var(--r-md) 0;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  transition: top var(--tr-fast);
}
.skip-link:focus { top: 0; }

/* ── LOGO / WORDMARK ── */
.nav__logo {
  display: flex; align-items: center; text-decoration: none; flex-shrink: 0;
}
.nav__logo-img {
  display: block;
  height: 32px;
  width: auto;
}

/* Footer wordmark */
.footer-logo-img {
  display: block; height: 36px; width: auto;
  filter: brightness(0) invert(1); margin-bottom: var(--sp-4);
}

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  transition: box-shadow var(--tr-base);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__links { display: flex; align-items: center; gap: var(--sp-8); }
.nav__link {
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink-60);
  transition: color var(--tr-fast);
  position: relative; padding-bottom: 2px;
}
.nav__link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--heart); border-radius: var(--r-full);
  transition: width var(--tr-base);
}
.nav__link:hover, .nav__link.active { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

/* Hamburger */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: var(--r-full);
  transition: transform var(--tr-base), opacity var(--tr-base);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: var(--sp-6) var(--gutter) var(--sp-8);
  flex-direction: column; gap: var(--sp-4);
  z-index: 199; box-shadow: var(--shadow-lg);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1.25rem; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.nav__mobile .btn-primary { margin-top: var(--sp-4); text-align: center; }

/* ── HERO PRINCIPAL ── */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  padding: var(--sp-12) 0;
  background: var(--paper);
  overflow: hidden;
  position: relative;
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Foto hero — logo bordado en lino */
.hero__photo {
  display: flex; align-items: center; justify-content: center;
  animation: photo-entrance 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes photo-entrance {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.hero__photo-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.10),
    0 32px 64px rgba(0,0,0,0.08);
  display: block;
}

/* Contenido del hero */
.hero__content { animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--heart);
  margin-bottom: var(--sp-6);
}
.hero__kicker::before {
  content: ''; display: block;
  width: 24px; height: 2px;
  background: var(--heart); border-radius: var(--r-full); flex-shrink: 0;
}
.hero__desc {
  font-size: 1.2rem; line-height: 1.75;
  color: var(--ink-60);
  margin: var(--sp-6) 0 var(--sp-8);
  max-width: 40ch; font-style: italic;
}
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }

/* ── HERO COMPACTO (páginas interiores) ── */
.hero-compact {
  background: var(--ink); padding: var(--sp-16) 0 var(--sp-12);
  text-align: center; position: relative; overflow: hidden;
}
.hero-compact::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201,27,90,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero-compact h1 { color: var(--paper); margin-bottom: var(--sp-4); position: relative; z-index: 1; }
.hero-compact .lead {
  color: var(--ink-30); font-size: 1.2rem;
  max-width: 46ch; margin: 0 auto; font-style: italic; position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60);
  margin-bottom: var(--sp-4); position: relative; z-index: 1;
}
.breadcrumb a { color: var(--heart); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto var(--sp-12); }
.section-kicker {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--heart); margin-bottom: var(--sp-3);
}
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p { color: var(--ink-60); font-style: italic; }

/* ── PLACEHOLDERS ── */
.img-placeholder {
  background: var(--warm-bg); border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3); color: var(--ink-30); font-size: 0.8125rem; text-align: center;
  padding: var(--sp-8);
}

/* ── ANIMACIONES SCROLL ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
.footer {
  background: var(--ink); border-top: 1px solid #181818;
  padding: var(--sp-16) 0 var(--sp-8); color: var(--paper);
  position: relative; overflow: hidden;
}
/* Marca de agua: hoja de variantes del logo (logo_amate.svg).
   La mitad superior del SVG (0–389pt de 612×792) son las 3 variantes
   blancas sobre fondo oscuro — se recorta con background-size fijo
   y se desvanece con mask para que no se vea el borde del pliego.
   Se activa solo en ≥768px (responsive.css) para no descargar 356KB en móvil. */
.footer > .container { position: relative; z-index: 1; }
.footer__grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr;
  gap: var(--sp-12); margin-bottom: var(--sp-12);
}
.footer__tagline {
  color: var(--ink-30); font-size: 1rem; line-height: 1.7;
  max-width: 28ch; margin-top: var(--sp-2); font-style: italic;
}
.footer__col-title {
  font-family: var(--font-display); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-60); margin-bottom: var(--sp-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { color: var(--ink-30); font-size: 0.9375rem; transition: color var(--tr-fast); }
.footer__links a:hover { color: var(--heart); }
.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: #181818; border: 1px solid #282828;
  border-radius: var(--r-md); color: var(--ink-30);
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
}
.footer__social a:hover { background: var(--heart); color: var(--paper); border-color: var(--heart); }
.footer__bottom {
  padding-top: var(--sp-8); border-top: 1px solid #181818;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
}
.footer__copy { color: var(--ink-60); font-size: 0.875rem; }
.footer__legal { display: flex; gap: var(--sp-6); }
.footer__legal a { color: var(--ink-60); font-size: 0.875rem; transition: color var(--tr-fast); }
.footer__legal a:hover { color: var(--ink-30); }

/* ── GALERÍA TALLER ── */
.taller-strip {
  background: var(--warm-bg);
  padding: var(--sp-8) 0;
  overflow: hidden;
  border-top: 4px solid var(--ink);
}
.taller-strip__inner {
  display: flex;
  gap: var(--sp-4);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.taller-strip__img {
  flex: 1;
  width: 0;
  height: 340px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.taller-strip__img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 1;
  position: relative;
}
.taller-strip__img--tall { flex: 0.75; }

/* Tarjeta de texto dentro del strip — ancla las fotos al taller real */
.taller-strip__caption {
  flex: 0.9;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--sp-3);
}
.taller-strip__caption .section-kicker { margin-bottom: 0; }
.taller-strip__caption p:not(.section-kicker) {
  color: var(--ink-30);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

/* ── FOCUS ── */
:focus-visible { outline: 2px solid var(--heart); outline-offset: 3px; border-radius: var(--r-sm); }
