:root {
  --wine: #642a86;
  --wine-deep: #3e1658;
  --wine-hot: #7d3aa6;
  --rose: #e6d4f2;
  --ink: #1c1214;
  --muted: #4e4044;
  --paper: #f3eee9;
  --card: #fffcfa;
  --night: #070707;
  --night-2: #12090b;
  --line: rgba(36, 16, 20, 0.12);
  --header: 4.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--wine); }
button, summary { font: inherit; }
.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;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: white;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}
.skip:focus { top: 0.75rem; }
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--wine);
}
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

.container {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
section { scroll-margin-top: calc(var(--header) + 0.75rem); }
.section { padding: clamp(4.5rem, 9vw, 7.25rem) 0; }

.kicker {
  margin: 0 0 0.9rem;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section h2 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); max-width: 12em; }
.lede-dark { color: var(--muted); font-size: 1.125rem; max-width: 38rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--wine);
  color: #fff8f6;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.98rem;
  border: 0;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--wine-hot); color: white; }
.btn:active { background: var(--wine-deep); }
.btn .material-symbols-outlined { font-size: 1.1rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
  color: white;
  background: linear-gradient(#070707, rgba(7, 7, 7, 0.55) 72%, transparent);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wordmark {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.site-header .wordmark {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.site-header.is-past-hero .wordmark,
.site-header.is-open .wordmark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin: 0;
}
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: color 0.2s ease, background-size 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="true"] {
  color: white;
  background-size: 100% 1px;
}
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: white;
  cursor: pointer;
  place-items: center;
}
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  padding-top: var(--header);
  padding-left: max(var(--gutter), calc((100% - var(--content)) / 2));
  background:
    radial-gradient(70% 55% at 12% 78%, rgba(100, 42, 134, 0.42), transparent 60%),
    var(--night);
  color: #fff8f6;
}
.hero-copy { padding: 2rem 1.5rem 2.5rem 0; max-width: 38rem; }
.hero .wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
}
.hero .wordmark::after {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--wine-hot);
}
.hero h1 {
  font-size: clamp(3.6rem, 5.6vw, 6rem);
  line-height: 0.9;
  font-weight: 500;
}
.hero .bajada {
  margin: 1.4rem 0 0;
  max-width: 34ch;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 247, 244, 0.78);
}
.hero .btn { margin-top: 1.8rem; }
.hero-media {
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-media img {
  width: 100%;
  height: calc(100svh - var(--header));
  object-fit: contain;
  object-position: center bottom;
}

/* Propuesta */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.prose p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}
.doubt {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--wine);
  color: #fff8f6;
  padding: clamp(2.8rem, 7vw, 5rem) var(--gutter);
}
.doubt p {
  width: min(16em, 100%);
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
#propuesta { padding-bottom: 0; }

/* Profesor */
.about {
  background: #efe7e1;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}
.portrait {
  margin: 0;
  position: relative;
  background: linear-gradient(165deg, var(--wine-hot), var(--wine) 45%, var(--wine-deep));
  border-radius: 1.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, var(--wine-hot), var(--wine) 45%, var(--wine-deep));
}
.about-copy .bio {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}
.about-copy blockquote {
  margin: 1.75rem 0 0;
  padding: 0 0 0 1.15rem;
  border-left: 2px solid var(--wine);
}
.about-copy blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Clases */
.classes .section-intro { margin: 1rem 0 0; }
.class-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.25rem;
}
.class-card {
  background: var(--card);
  border: 1px solid rgba(28, 18, 20, 0.06);
  border-radius: 1.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(28, 18, 20, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(62, 22, 88, 0.14);
}
.class-media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(165deg, var(--wine-hot), var(--wine) 46%, var(--wine-deep));
}
.class-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.class-media:has(img)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(28, 6, 12, 0.62));
}
.class-media span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(2rem, 2.6vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff7f4;
}
.class-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem 1.2rem 1.3rem;
  flex: 1;
}
.class-kicker {
  margin: 0;
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.class-body h3 { font-size: 1.7rem; }
.teacher {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}
.teacher span {
  color: var(--wine);
  font-weight: 600;
}
.when {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.when span { color: var(--muted); font-size: 0.95rem; }
.when strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}
.when em { font-style: normal; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; margin-left: 0.2rem; }
.place {
  margin: 0;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.98rem;
  font-style: normal;
}
.place .material-symbols-outlined { color: var(--wine); margin-top: 0.15rem; }
.place strong { color: var(--ink); font-weight: 600; }
.class-body .btn { margin-top: auto; align-self: flex-start; }
.note { margin: 0; color: var(--muted); }
.role-list { display: grid; gap: 0.4rem; }
.role-list li {
  position: relative;
  padding-left: 1rem;
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--wine);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li {
  border: 1px solid rgba(100, 42, 134, 0.28);
  color: var(--wine-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

/* FAQ */
.faq { background: #f7f4f1; }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}
.faq-item summary:hover h3 { color: var(--wine); }
.faq-item summary .material-symbols-outlined {
  flex: none;
  color: var(--wine);
  transition: transform 0.2s ease;
}
.faq-item[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.faq-item p {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--muted);
}
.faq-item strong { color: var(--ink); font-weight: 600; }

/* Contacto */
.contact {
  background: var(--night-2);
  color: #f6f1ec;
}
.contact .kicker { color: var(--rose); }
.contact h2 { color: #fff8f6; }
.contact .section-intro { margin: 1rem 0 0; color: rgba(255, 247, 244, 0.72); max-width: 36rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 2.25rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 6rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover {
  background: rgba(100, 42, 134, 0.45);
  border-color: rgba(243, 208, 214, 0.55);
  color: white;
  transform: translateY(-2px);
}
.icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: white;
  flex: none;
}
.icon-wrap svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.contact-card small {
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 247, 244, 0.62);
}
.contact-card strong { font-weight: 500; font-size: 1.05rem; }

.site-footer {
  background: var(--night-2);
  color: #f6f1ec;
  padding: clamp(3.5rem, 8vw, 6rem) 0 1.75rem;
}
.signoff {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 10em;
}
.signoff em {
  font-style: italic;
  font-weight: 460;
  color: var(--rose);
}
.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 247, 244, 0.62);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--header) 0 0 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 1.5rem max(var(--gutter), calc((100% - var(--content)) / 2)) 2rem;
    background: #10080a;
    overflow: auto;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a:not(.btn) {
    font-family: var(--serif);
    font-size: clamp(2rem, 8vw, 2.8rem);
    color: white;
    line-height: 1.15;
    background-image: none;
  }
  .nav-links li:last-child { margin-top: 0.8rem; }
  .class-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-left: 0;
    padding-bottom: 0;
  }
  .hero-copy {
    padding: 1.15rem var(--gutter) 0.35rem;
    max-width: none;
  }
  .hero-media {
    flex: 1;
    min-height: 46svh;
  }
  .hero-media img {
    width: 100%;
    height: 100%;
    min-height: 46svh;
    object-fit: cover;
    object-position: center 40%;
  }
  .split, .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .class-grid { grid-template-columns: 1fr; }
  .class-media { aspect-ratio: 16 / 10; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 4.6rem); }
  .colophon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .class-card:hover, .contact-card:hover { transform: none; }
}

.credit {
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 247, 244, 0.62);
}
.credit a {
  color: var(--rose);
  font-weight: 600;
  text-decoration: none;
}
.credit a:hover { text-decoration: underline; }

body.panel {
  margin: 0;
  background: #e7e0da;
  color: var(--ink);
}
.panel-wrap {
  width: min(32rem, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(36, 16, 20, 0.06);
}
.panel button,
.panel input,
.panel textarea {
  font-family: inherit;
}
.appbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: calc(0.35rem + env(safe-area-inset-top)) 0.85rem 0.35rem 0.35rem;
  background: var(--night);
  color: #fff8f6;
}
.appbar strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.2;
  padding-left: 0.55rem;
}
.app-menu { position: relative; margin-left: auto; }
.app-menu summary {
  list-style: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 999px;
}
.app-menu summary::-webkit-details-marker { display: none; }
.app-menu summary .icon-close { display: none; }
.app-menu[open] summary .icon-menu { display: none; }
.app-menu[open] summary .icon-close { display: inline; }
.app-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 6;
  min-width: 12.5rem;
  padding: 0.35rem;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 12, 18, 0.18);
}
.appbar .app-menu-panel a,
.appbar .app-menu-panel button {
  width: 100%;
  min-height: 3rem;
  justify-content: flex-start;
  padding: 0 0.9rem;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}
.appbar .app-menu-panel a:hover,
.appbar .app-menu-panel button:hover { background: var(--rose); }
.app-menu-panel form { margin: 0; }
.appbar-end {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.appbar a,
.appbar button {
  color: #fff8f6;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.appbar form { margin: 0; }
.appbar-back {
  width: 2.75rem;
  justify-content: center;
  padding: 0;
}
.panel-main { padding: 0.4rem 1rem 2.5rem; }
.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
}
.login h1 { font-size: clamp(2.4rem, 9vw, 3.1rem); margin-bottom: 0.45rem; }
.bajada-panel { margin: 0 0 1.4rem; color: var(--muted); }
.campo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}
.campo span { font-weight: 600; font-size: 0.98rem; }
.campo small,
.ayuda-bloque {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.ayuda-bloque { margin: 0.35rem 0 1rem; }
.campo input,
.campo textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(36, 16, 20, 0.14);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.campo textarea { min-height: 7.5rem; resize: vertical; line-height: 1.45; }
.campo input:focus,
.campo textarea:focus {
  outline: 3px solid rgba(100, 42, 134, 0.28);
  border-color: var(--wine);
}
.grupo-form {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 1.35rem 0 0.75rem;
}
.atajos { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: -0.25rem 0 1rem; }
.atajos button {
  min-height: 2.6rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(36, 16, 20, 0.14);
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
}
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.segmento label {
  position: relative;
  min-height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1.5px solid rgba(36, 16, 20, 0.14);
  background: #fff;
  font-weight: 600;
}
.segmento input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.segmento label:has(input:checked) {
  background: var(--wine);
  color: #fff8f6;
  border-color: var(--wine);
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  margin: 0.4rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(36, 16, 20, 0.14);
  border-radius: 14px;
  font-weight: 600;
}
.switch input { width: 1.35rem; height: 1.35rem; accent-color: var(--wine); }
.vista { width: min(15rem, 72%); margin: 0.2rem auto 0.2rem; }
.panel .vista .class-media {
  aspect-ratio: 1;
  border-radius: 1.15rem;
  overflow: hidden;
}
.panel .vista .class-media span { font-size: 1.85rem; }
.foto-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.3rem;
  margin: 0.85rem 0 0.35rem;
  border-radius: 999px;
  background: var(--wine);
  color: #fff8f6;
  font-weight: 600;
}
.foto-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.btn-block { width: 100%; min-height: 3.4rem; }
.panel .btn.secundario {
  width: 100%;
  margin: 0.85rem 0 0.4rem;
  background: transparent;
  color: var(--wine);
  border: 1.5px solid var(--wine);
}
.guardar {
  margin: 0.6rem 0 0;
  padding: 0.2rem 0 calc(0.4rem + env(safe-area-inset-bottom));
}
.bloque h2 { font-size: 2rem; margin: 0.35rem 0 0.8rem; }
.bloque { padding-top: 1.15rem; }
.vacio { margin: 0 0 0.2rem; color: var(--muted); }
.lista { display: flex; flex-direction: column; gap: 0.55rem; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  background: #fff;
  border: 1.5px solid rgba(36, 16, 20, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.item.is-oculta { opacity: 0.62; }
.fila {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.7rem;
  padding: 0.65rem;
  color: inherit;
  text-decoration: none;
}
.fila strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0;
  line-height: 1.25;
}
.fila small { color: var(--muted); font-size: 0.86rem; }
.thumb {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0.2rem;
  text-align: center;
  line-height: 1.05;
  font-size: 0.68rem;
  color: #fff7f4;
  font-family: var(--serif);
  background: linear-gradient(165deg, var(--wine-hot), var(--wine) 46%, var(--wine-deep));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.mover { display: flex; flex-direction: column; border-left: 1px solid rgba(36, 16, 20, 0.08); }
.mover form { flex: 1; display: flex; }
.mover button {
  width: 2.8rem;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--wine);
}
.mover button:disabled { color: rgba(36, 16, 20, 0.25); }
.error,
.ok {
  margin: 0.9rem 0 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  line-height: 1.4;
}
.error { background: #f8e4e4; color: #6d2030; }
.ok { background: #e7f3e4; color: #1d4d32; }
.borrar { margin: 0.4rem 0 1rem; text-align: center; }
.borrar button {
  min-height: 3rem;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: #8d2438;
  font-weight: 600;
  font-size: 1rem;
}
.menu-admin {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 0 2rem;
}
.menu-admin a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  border: 1.5px solid rgba(36, 16, 20, 0.1);
}
.menu-admin strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0;
}
.menu-admin small { color: var(--muted); font-size: 0.88rem; }
.fila.solo { grid-template-columns: 1fr; }
.panel .retrato { width: min(12rem, 58%); margin: 0.2rem auto 0.6rem; }
.panel .retrato .portrait { border-radius: 1.15rem; }
