/* ============================================================
   SOFIA DOCTEUR — Design System
   Diseñadora de marcas e identidades visuales · Buenos Aires
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Carattere&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Colors — Identidad real de Sofia Docteur */
  --paper:            #F5F0EA;
  --cream:            #FAF7F3;
  --surface-tint:     #EDE8E0;
  --surface-low:      #E6E0D8;
  --ink:              #462715;
  --primary:          #b35587;
  --primary-deep:     #8a3a64;
  --primary-light:    #db8aae;
  --sage:             #aaac9c;
  --nude:             #dacbbf;
  --secondary:        #6b4e3d;
  --tertiary:         #9e7e6e;
  --outline-variant:  rgba(70, 39, 21, 0.10);
  --ambient:          rgba(70, 39, 21, 0.08);
  --ambient-deep:     rgba(70, 39, 21, 0.18);

  /* Typography — Fuentes reales de la marca
     Campaign: titulares principales (instalar localmente o subir como webfont)
     Carattere: palabras clave decorativas y acentos
     Montserrat: cuerpo de texto */
  --font-display:  'Campaign', 'Playfair Display', Georgia, serif;
  --font-serif:    'Campaign', 'Playfair Display', Georgia, serif;
  --font-accent:   'Carattere', cursive;
  --font-sans:     'Montserrat', system-ui, sans-serif;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Border radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 999px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

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

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

ul { list-style: none; }

/* === TYPOGRAPHY SCALE === */
.label-md {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.body-md {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--secondary);
}

.body-lg {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

/* Karaktere para palabras clave decorativas en titulares */
h1 em, h2 em, .hero-title em, .page-hero-title em, .headline-lg em, .headline-md em {
  font-family: var(--font-accent);
  font-style: normal;
  font-size: 1.15em;
  color: var(--primary);
  letter-spacing: 0.01em;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.section {
  padding: var(--sp-24) 0;
}

.section-sm {
  padding: var(--sp-16) 0;
}

/* === CURSOR === */
.cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  mix-blend-mode: multiply;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  background-color: rgba(192, 122, 154, 0.08);
  border-color: var(--primary-deep);
}

/* === PAGE TRANSITION === */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 8888;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.is-entering {
  transform: translateY(0%);
}

.page-transition.is-leaving {
  transform: translateY(-100%);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: var(--sp-6) 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(237, 234, 224, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--sp-4) 0;
  box-shadow: 0 1px 0 var(--outline-variant);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  border: 1px solid var(--primary);
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .nav-cta::after { display: none; }

.nav-links .nav-cta:hover {
  background: var(--primary);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: var(--sp-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-mobile.is-open { transform: translateX(0); }

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-mobile a:hover {
  opacity: 1;
  color: var(--primary);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--cream);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 8px 24px rgba(179, 85, 135, 0.30);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--outline-variant);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-light:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* === PAGE HERO === */
.page-hero {
  padding: calc(80px + var(--sp-24)) 0 var(--sp-16);
  border-bottom: 1px solid var(--outline-variant);
}

.page-hero-eyebrow {
  margin-bottom: var(--sp-4);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.page-hero-sub {
  max-width: 520px;
  color: var(--secondary);
}

/* === HOME HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  padding: var(--sp-24) var(--sp-8) var(--sp-24) max(var(--sp-8), calc((100vw - 1180px) / 2 + var(--sp-8)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-8);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-sub {
  max-width: 440px;
  color: var(--secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.hero-scroll-hint {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.hero-image {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--paper) 0%, transparent 30%);
}

/* === MARQUEE / RIBBON === */
.marquee-section {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: var(--sp-12);
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--tertiary);
  flex-shrink: 0;
}

.marquee-track .dot {
  color: var(--primary);
  font-style: normal;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === SERVICES STRIP (homepage) === */
.services-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--outline-variant);
}

.service-strip-item {
  padding: var(--sp-10) var(--sp-8);
  border-right: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  transition: background 0.25s ease;
}

.service-strip-item:hover { background: var(--surface-tint); }

.service-strip-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(192, 122, 154, 0.25);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.service-strip-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.service-strip-desc {
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 1.6;
}

/* === SERVICES STACK (services page) === */
.services-stack {
  border-top: 1px solid var(--outline-variant);
}

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--outline-variant);
  transition: background 0.2s ease;
  cursor: none;
}

.service-row:hover { background: var(--surface-tint); margin: 0 calc(-1 * var(--sp-8)); padding-left: var(--sp-8); padding-right: var(--sp-8); border-radius: var(--r-md); }

.service-num {
  padding-top: 0.35rem;
  color: var(--primary);
}

.service-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--secondary);
  max-width: 580px;
  line-height: 1.7;
}

.service-arrow {
  font-size: 1.2rem;
  color: var(--tertiary);
  padding-top: 0.4rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-row:hover .service-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* === PORTFOLIO GRID === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: none;
}

.portfolio-thumb {
  aspect-ratio: 4/5;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-thumb { transform: scale(1.04); }

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6);
  background: linear-gradient(to top, rgba(42, 36, 32, 0.75) 0%, transparent 100%);
  color: var(--cream);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay .label-md {
  color: rgba(244, 240, 232, 0.65);
  margin-bottom: var(--sp-2);
}

.portfolio-overlay .headline-md { color: var(--cream); }

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--secondary);
  cursor: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* === PORTFOLIO HOME TEASER === */
.portfolio-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.portfolio-teaser-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: none;
}

.portfolio-teaser-item .portfolio-thumb { aspect-ratio: 3/4; }
.portfolio-teaser-item:first-child .portfolio-thumb { aspect-ratio: 4/5; }

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.testimonial-card {
  background: var(--surface-tint);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--tertiary);
}

/* === PULL QUOTE === */
.pull-quote {
  border-left: 2px solid var(--primary);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-8) 0;
  background: var(--surface-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.pull-quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.pull-quote-source {
  font-size: 0.8rem;
  color: var(--tertiary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* === QUOTE BLOCK === */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.quote-author {
  color: var(--secondary);
}

/* === VALUES GRID === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.value-card {
  padding: var(--sp-8);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.value-card:hover {
  box-shadow: 0 12px 40px var(--ambient);
  transform: translateY(-3px);
}

.value-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #E8A4C8);
  margin-bottom: var(--sp-6);
}

.value-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

/* === PROCESS GRID === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.process-step {
  padding: var(--sp-6) 0;
  border-top: 2px solid var(--outline-variant);
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.process-step:hover::before { width: 100%; }

.process-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(192, 122, 154, 0.2);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

/* === ABOUT GRID === */
.about-intro-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: calc(80px + var(--sp-8));
}

.about-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--r-xl);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === EDITORIAL LIST === */
.editorial-list {
  padding-left: 0;
}

.editorial-list li {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--outline-variant);
  padding-left: var(--sp-6);
  position: relative;
}

.editorial-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.85rem;
}

/* === CONTACT GRID === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info-item {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--outline-variant);
}

.contact-info-label {
  margin-bottom: var(--sp-2);
  color: var(--tertiary);
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--sp-6);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem var(--sp-5);
  background: var(--surface-tint);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 122, 154, 0.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--tertiary);
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-20) var(--sp-16);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(192, 122, 154, 0.15) 0%, transparent 70%);
}

.cta-banner > * { position: relative; }

.cta-banner .headline-lg {
  color: var(--cream);
  margin-bottom: var(--sp-4);
}

.cta-banner .body-lg {
  color: rgba(244, 240, 232, 0.65);
  margin-bottom: var(--sp-8);
}

/* === COURSE CARD === */
.course-card {
  background: var(--ink);
  padding: var(--sp-12);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201, 160, 200, 0.2) 0%, transparent 60%);
}

.course-card > * { position: relative; }

.course-card-num {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(201, 160, 200, 0.18);
  line-height: 1;
}

.course-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}

.course-card-modules {
  font-size: 0.82rem;
  color: rgba(244, 240, 232, 0.4);
  letter-spacing: 0.08em;
}

/* === FOOTER === */
.footer {
  background: var(--surface-low);
  border-top: 1px solid var(--outline-variant);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--outline-variant);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--primary);
  margin-bottom: var(--sp-4);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.65;
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: var(--sp-5);
}

.footer-links li { margin-bottom: var(--sp-3); }

.footer-links a {
  font-size: 0.88rem;
  color: var(--secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--tertiary);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* === PORTFOLIO POR PROYECTOS === */
.proyecto-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

/* === GRADIENT BACKGROUNDS — inspirados en la paleta de Sofia === */
.g1 { background: linear-gradient(135deg, #f5d5e8 0%, #e8a8cc 40%, #db8aae 100%); }
.g2 { background: linear-gradient(135deg, #e8ddd4 0%, #dacbbf 50%, #cfc0b4 100%); }
.g3 { background: linear-gradient(135deg, #c5c7b8 0%, #aaac9c 50%, #909280 100%); }
.g4 { background: linear-gradient(135deg, #7a3a6a 0%, #b35587 50%, #db8aae 100%); }
.g5 { background: linear-gradient(135deg, #f0e8e0 0%, #e8d8cc 50%, #dacbbf 100%); }
.g6 { background: linear-gradient(135deg, #5a2010 0%, #462715 50%, #2e1a0e 100%); }

/* === DIVIDER LINE === */
.divider {
  width: 40px;
  height: 1px;
  background: var(--primary);
  margin: var(--sp-8) 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: calc(80px + var(--sp-16)) var(--sp-8) var(--sp-12); }
  .hero-image { height: 55vw; }
  .hero-image-overlay { background: linear-gradient(to bottom, var(--paper) 0%, transparent 20%); }
  .services-strip { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item[style*="span 2"] { grid-column: span 1 !important; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .about-intro-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about-photo-wrap { position: static; max-width: 360px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-6); }
  .section { padding: var(--sp-16) 0; }
  .section-sm { padding: var(--sp-10) 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .services-strip { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-teaser { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .cta-banner { padding: var(--sp-12) var(--sp-8); }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-arrow { display: none; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

@media (max-width: 480px) {
  .page-hero-title { font-size: 2.5rem; }
  .hero-title { font-size: 2.2rem; }
  .headline-lg { font-size: 1.9rem; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
