/* Academia Mariana — blanco, dorado y negro de detalle */

:root {
  --gold: #C9A962;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B4B;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --ivory: #FBF7F0;
  --cream: #F7F3EC;
  --muted: #6A645C;
  --line: rgba(166, 139, 75, 0.45);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --ease: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 0.95; }

.container { width: min(1240px, 92%); margin: 0 auto; }

.section { padding: 5.5rem 0; }
.section--cream { background: var(--cream); }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.subtitle {
  max-width: 36rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.gold-line {
  width: 72px;
  height: 1px;
  margin: 1.35rem 0 1.5rem;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--ease);
}

.btn--gold {
  background: linear-gradient(180deg, #e4c77a, #b8923e);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(166, 139, 75, 0.28);
}

.btn--gold:hover { transform: translateY(-2px); }

.btn--large { padding: 1.05rem 2.1rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(201, 169, 98, 0.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.6rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav__logo span { color: var(--gold-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a:not(.btn) {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__links a:not(.btn):hover { color: var(--gold-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.hero {
  background: var(--ivory);
  padding: 3.2rem 0 4.2rem;
  text-align: center;
}

.hero__inner { max-width: 820px; }

.hero__mark svg {
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.hero__mark::after {
  content: "";
  display: block;
  width: 180px;
  height: 1px;
  margin: 0.7rem auto 0.85rem;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.hero__brand {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

.hero h1 .gold { color: var(--gold-dark); }

.hero__line { font-size: 0.72em; margin-bottom: 0.06em; }

.hero__last {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  margin-top: 0.04em;
}

.hero__ytu { font-size: 0.62em; }

.hero__lead {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: var(--ink);
  font-size: 1.12rem;
}

.hero .btn span {
  margin-left: 0.45rem;
  font-size: 1rem;
}

.hero__result {
  display: block;
  width: min(260px, 78%);
  height: auto;
  margin: 1.75rem auto 0;
  border: 1px solid var(--gold);
}

#inicio, #mariana, #formacion, #catalogo { scroll-margin-top: 5rem; }

.presentacion { padding-top: 4rem; padding-bottom: 3.5rem; }

.presentacion__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.presentacion__photo {
  width: 260px;
  height: 330px;
  object-fit: cover;
  object-position: center 12%;
  border: 1px solid var(--gold);
}

.presentacion__divider {
  width: min(420px, 70%);
  height: 1px;
  margin: 2.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.presentacion__text { text-align: left; }

.presentacion__text h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.9;
  text-transform: none;
}

.presentacion__text h2 .gold { color: var(--gold-dark); }

.presentacion__text .gold-line { margin-left: 0; }

.presentacion__text p {
  margin: 0 0 0.95rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.presentacion__text strong { color: var(--gold-dark); font-weight: 600; }

.presentacion__close {
  font-family: var(--font-display);
  font-size: 1.45rem !important;
  line-height: 1.25;
}

.intro { text-align: center; margin-bottom: 2.75rem; }
.intro .gold-line { margin-left: auto; margin-right: auto; }
.intro .subtitle { margin-left: auto; margin-right: auto; }

.experience__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 7vw, 5.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.experience__title .gold { color: var(--gold-dark); }

.experience__title + .gold-line { width: 220px; }

.experience__lead,
.experience__note {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.12rem;
}

.experience__lead { margin-bottom: 1.35rem; }

.experience__lead strong,
.experience__note strong {
  color: var(--gold-dark);
  font-weight: 600;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.socials a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
}

.diplomas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.diploma {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--gold);
  padding: 1.35rem 1rem 1rem;
}

.diploma__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.diploma__title {
  min-height: 2.7em;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--gold-dark);
}

.diploma .gold-line {
  width: 42px;
  margin: 0.65rem auto 0.75rem;
}

.diploma p {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.55;
}

.diploma p strong {
  color: var(--gold-dark);
  font-weight: 600;
}

.diploma__cert {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0;
  padding-top: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.diploma__cert img {
  width: 100%;
  height: auto;
}

.diploma__cert:hover,
.diploma__cert:focus-visible {
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
  outline: none;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 26, 26, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
}

.cert-lightbox[hidden] { display: none; }

.cert-lightbox figure { max-width: min(980px, 100%); }

.cert-lightbox img {
  max-height: calc(100vh - 8rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  background: var(--white);
}

.cert-lightbox figcaption {
  color: var(--gold-light);
  text-align: center;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cert-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.offer {
  background: var(--ivory);
  border: 1px solid var(--gold);
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.offer__kicker::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 0.85rem auto 0;
  background: var(--gold-dark);
}

.offer h3 {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  letter-spacing: 0.02em;
  margin-bottom: 1.15rem;
}

.offer h3 .gold { color: var(--gold-dark); }

.offer p {
  color: var(--ink);
  font-size: 1rem;
  max-width: 22rem;
}

.offer p strong {
  color: var(--gold-dark);
  font-weight: 600;
}

.offer__price {
  margin: 1.35rem 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.offer__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.85rem 1.6rem 0.85rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d48a, #c6a04a 45%, #a48432);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(166, 139, 75, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pill span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0;
}

.pill:hover { transform: translateY(-2px); }

.footer {
  background: var(--white);
  border-top: 1px solid rgba(201, 169, 98, 0.35);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.footer p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
}

.footer__links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__legal {
  margin-top: 1.4rem;
  font-size: 0.75rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .diplomas { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .offers { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-width: 760px) {
  .presentacion__grid { grid-template-columns: 1fr; justify-items: center; }
  .presentacion__text, .presentacion__text h2 { text-align: left; align-items: flex-start; }
  .diplomas { grid-template-columns: 1fr; }
  .nav__toggle { display: flex; z-index: 1001; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 82%);
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    transition: right var(--ease);
  }

  .nav__links.open { right: 0; }

  .hero { padding: 4.2rem 0 3.6rem; }
  .section { padding: 3.6rem 0; }
}
