/* Unity Estilo Total — hoja de estilos
   Organizada por bloques: variables, header, hero, about, courses, gallery, visit, footer */

:root {
    --bg: #FBF7F4;
    --bg-soft: #F4E9E4;
    --card: #FFFFFF;
    --ink: #1B1917;
    --ink-dim: #756C67;
    --gold: #AD8A52;
    --gold-deep: #8C6E3C;
    --pink: #E7ABB8;
    --line: rgba(27,25,23,0.12);
    --font-mark: 'Montserrat', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-padding-top: 84px; scroll-behavior: smooth; }
  html, body { height: 100%; margin: 0; }
  body {
    background:
      radial-gradient(circle at top left, rgba(231,171,184,0.18), transparent 26%),
      radial-gradient(circle at bottom right, rgba(173,138,82,0.12), transparent 22%),
      var(--bg);
    color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
  .btn, nav.topnav a, .highlight-item, .course-card, .info-card, .hero-photo { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }

  header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(251,247,244,0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1080px; margin: 0 auto; gap: 16px; flex-wrap: wrap; }
  .brandmark { display: flex; align-items: center; gap: 10px; }
  .brandmark svg { width: 30px; height: 34px; }
  .brand-text { font-family: var(--font-mark); font-weight: 800; letter-spacing: 0.04em; font-size: 1.15rem; }
  .brand-sub { font-family: var(--font-display); font-style: italic; color: var(--gold-deep); font-size: 0.85rem; display: block; letter-spacing: 0.03em; }
  nav.topnav { display: flex; gap: 24px; font-size: 0.9rem; color: var(--ink-dim); }
  nav.topnav a { text-decoration: none; position: relative; }
  nav.topnav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
  nav.topnav a:hover { color: var(--ink); }
  nav.topnav a:hover::after { transform: scaleX(1); }

  section { padding: 84px 0; }
  @media (max-width: 640px) { section { padding: 52px 0; } }

  .hero { padding-top: 64px; position: relative; overflow: hidden; }
  .hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -150px; top: -120px; border: 1px solid rgba(173,138,82,0.18); border-radius: 50%; pointer-events: none; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
  @media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero-tag { font-family: var(--font-display); font-style: italic; color: var(--gold-deep); font-size: 1.15rem; margin: 0 0 14px; }
  h1.hero-title { font-family: var(--font-mark); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.01em; }
  p.hero-sub { color: var(--ink-dim); font-size: 1.05rem; max-width: 46ch; margin: 0 0 28px; }
  .cat-line { font-size: 0.88rem; color: var(--ink-dim); letter-spacing: 0.03em; margin: 0 0 30px; }
  .cat-line b { color: var(--ink); font-weight: 600; }
  .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; text-decoration: none; border: 1px solid transparent; box-shadow: 0 8px 18px rgba(27,25,23,0.08); }
  .btn:hover { transform: translateY(-1px); }
  .btn-solid { background: linear-gradient(135deg, var(--ink), #302b25); color: var(--bg); }
  .btn-outline { border-color: rgba(27,25,23,0.55); color: var(--ink); background: rgba(255,255,255,0.25); }

  .hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .hero-badges span {
    display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.55);
    border: 1px solid rgba(27,25,23,0.08); color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  }

  .flourish-wrap { display: flex; justify-content: center; }
  .flourish-wrap svg { width: 200px; height: 240px; }
  .hero-photo {
    position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(27,25,23,0.16); border: 1px solid rgba(27,25,23,0.06);
    isolation: isolate;
  }
  .hero-photo::before {
    content: ""; position: absolute; inset: 18px auto auto 18px; width: 140px; height: 140px; border-radius: 50%;
    background: rgba(231,171,184,0.26); filter: blur(12px); z-index: 0; pointer-events: none;
  }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; position: relative; z-index: 1; }
  .hero-photo img { object-position: center 28%; }
  .hero-card {
    position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; flex-direction: column; gap: 4px; max-width: 170px;
    background: rgba(251,247,244,0.82); backdrop-filter: blur(8px); border: 1px solid rgba(27,25,23,0.08); border-radius: 14px; padding: 12px 14px;
    box-shadow: 0 12px 30px rgba(27,25,23,0.12);
  }
  .hero-card strong { font-size: 1.2rem; font-family: var(--font-mark); }
  .hero-card span { font-size: 0.72rem; line-height: 1.4; color: var(--ink-dim); }

  .highlights { padding-top: 28px; padding-bottom: 10px; }
  .highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
  @media (max-width: 760px) { .highlight-grid { grid-template-columns: 1fr; } }
  .highlight-item {
    background: rgba(255,255,255,0.75); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; box-shadow: 0 10px 26px rgba(27,25,23,0.04);
  }
  .highlight-item:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(27,25,23,0.08); }
  .highlight-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(173,138,82,0.14), rgba(231,171,184,0.18)); color: var(--gold-deep); font-size: 0.8rem; font-weight: 700;
  }
  .highlight-item h3 { margin: 0 0 8px; font-family: var(--font-mark); font-size: 1.15rem; }
  .highlight-item p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

  /* SHOWCASE BANNER */
  .banner-strip { overflow: hidden; }
  .banner-strip img { width: 100%; height: clamp(180px, 28vw, 360px); object-fit: cover; object-position: center 48%; }

  /* GALLERY */
  .gallery-grid { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; gap: 24px; }
  @media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }
  .gallery-grid figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 12px 28px rgba(27,25,23,0.08); }
  .gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-grid figure.tall img { aspect-ratio: 4/5; object-position: center 35%; }

  /* COURSES HEAD */
  .courses-head-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
  @media (max-width: 760px) { .courses-head-grid { grid-template-columns: 1fr; } }
  .courses-head-grid figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 32px rgba(27,25,23,0.12); }
  .courses-head-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 42%; }

  /* VISIT PHOTO */
  .visit-photo { margin-bottom: 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 32px rgba(27,25,23,0.1); }
  .visit-photo img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; object-position: center 52%; }

  /* ABOUT */
  .about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  @media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
  .quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin: 0; line-height: 1.3; }
  .quote span { color: var(--gold-deep); }
  .stat-list { display: flex; flex-direction: column; gap: 20px; }
  .stat { border-top: 1px solid var(--line); padding-top: 12px; }
  .stat .num { font-family: var(--font-mark); font-weight: 800; font-size: 1.5rem; color: var(--gold-deep); }
  .stat .lbl { color: var(--ink-dim); font-size: 0.9rem; }

  /* COURSES */
  h2.section-title { font-family: var(--font-mark); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin: 0 0 10px; letter-spacing: -0.01em; }
  p.section-lede { color: var(--ink-dim); font-size: 1rem; margin: 0 0 40px; }
  .course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  @media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }
  .course-card { background: var(--card); padding: 32px 28px; border-top: 3px solid var(--c-accent, var(--gold)); display: flex; flex-direction: column; }
  .course-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(27,25,23,0.06); }
  .course-icon { width: 38px; height: 38px; margin-bottom: 18px; }
  .course-card h3 { font-family: var(--font-mark); font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; }
  .course-card p { color: var(--ink-dim); font-size: 0.94rem; margin: 0 0 16px; }
  .course-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--ink-dim); border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 14px; }
  .course-meta b { color: var(--ink); font-weight: 600; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .skill-tags span { font-size: 0.76rem; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; }
  .course-flyer { margin: 20px auto 0; width: min(100%, 340px); margin-top: auto; padding-top: 20px; }
  .course-flyer img { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; object-position: center top; margin: 0 auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: 0 10px 24px rgba(27,25,23,0.10); transition: transform 0.25s ease; }
  .course-flyer:hover img { transform: scale(1.02); }
  .flyer-barberia img { object-position: center 16%; }
  .flyer-peluqueria img { object-position: center 14%; }
  .flyer-unas img { object-position: center 12%; }
  .flyer-color img { object-position: center 15%; }
  .course-flyer figcaption { text-align: center; font-size: 0.78rem; color: var(--ink-dim); margin-top: 8px; }

  .schedule-note { background: var(--bg-soft); border: 1px solid var(--line); padding: 28px 30px; border-radius: 3px; margin-top: 44px; display: flex; gap: 18px; align-items: flex-start; }
  .schedule-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-deep); margin-top: 6px; flex-shrink: 0; }
  .schedule-note h4 { margin: 0 0 6px; font-family: var(--font-mark); font-weight: 700; font-size: 1rem; }
  .schedule-note p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

  /* VISIT */
  .visit { border-top: 1px solid var(--line); }
  .visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  @media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
  .info-card { background: var(--card); border: 1px solid var(--line); padding: 26px 28px; border-radius: 18px; box-shadow: 0 10px 24px rgba(27,25,23,0.04); }
  .info-card:hover { transform: translateY(-2px); }
  .info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
  .info-row:last-child { margin-bottom: 0; }
  .info-row svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold-deep); }
  .info-row b { display: block; font-size: 0.95rem; }
  .info-row span.small { color: var(--ink-dim); font-size: 0.88rem; }

  .feedback-box p { color: var(--ink-dim); font-size: 0.94rem; }
  .feedback-box a.btn { margin-top: 10px; }

  footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--ink-dim); font-size: 0.84rem; }
  .foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

  @media (max-width: 640px) {
    .topbar { padding: 13px 18px; }
    nav.topnav { gap: 14px; font-size: 0.8rem; }
    .hero { padding-top: 42px; }
    .hero-photo { border-radius: 16px; }
    .hero-photo img { aspect-ratio: 1/1.08; object-position: center 25%; }
    .hero-card { right: 12px; bottom: 12px; max-width: 150px; padding: 10px 12px; }
    .banner-strip img { height: 180px; }
    .course-flyer img { aspect-ratio: 9/16; }
    .courses-head-grid img { aspect-ratio: 16/10; object-position: center 38%; }
    .gallery-grid figure { border-radius: 14px; }
    .hero::after { width: 240px; height: 240px; right: -120px; top: -80px; }
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #17130F; --bg-soft: #221B15; --card: #1F1914;
      --ink: #F5EFE9; --ink-dim: #B9AFA6; --line: rgba(245,239,233,0.14);
    }
  }
