/* ==========================================================
   MUSEO RAYO · PÁGINA HISTORIA REDISEÑADA
   Shortcode: [mrhp_historia]
   ========================================================== */

:root {
  --mr-black: #000000;
  --mr-white: #ffffff;
  --mr-gray: #909595;
  --mr-soft: #f5f5f2;
  --mr-line: rgba(0, 0, 0, .10);
  --mr-line-dark: rgba(255, 255, 255, .18);
  --mr-font-title: 'Bank Gothic', 'Arial Black', 'Arial Narrow', sans-serif;
  --mr-font-body: 'Futura Medium', Futura, Arial, sans-serif;
  --mr-ease: cubic-bezier(.22, 1, .36, 1);
}

.mrh-page,
.mrh-page * {
  box-sizing: border-box;
}

.mrh-page {
  background: var(--mr-soft);
  color: var(--mr-black);
  font-family: var(--mr-font-body);
  overflow: hidden;
}

.mrh-wrap {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.mrh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--mr-gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mrh-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.mrh-page h1,
.mrh-page h2,
.mrh-page h3 {
  font-family: var(--mr-font-title);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}

.mrh-page p {
  margin: 0;
  color: rgba(0, 0, 0, .76);
  font-size: 16px;
  line-height: 1.85;
}

/* HERO */
.mrh-hero {
  position: relative;
  min-height: 760px;
  padding: 150px 0 96px;
  background:
    radial-gradient(circle at 78% 20%, rgba(144, 149, 149, .32), transparent 30%),
    linear-gradient(135deg, var(--mr-white) 0%, var(--mr-soft) 56%, #e6e7e4 100%);
  border-bottom: 1px solid var(--mr-line);
}

.mrh-hero::after {
  content: "RAYO";
  position: absolute;
  right: -3vw;
  bottom: -4vw;
  color: rgba(0, 0, 0, .035);
  font-family: var(--mr-font-title);
  font-size: clamp(120px, 22vw, 330px);
  font-weight: 900;
  letter-spacing: -.06em;
  pointer-events: none;
}

.mrh-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
}

.mrh-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 108px);
  line-height: .92;
}

.mrh-hero-copy p {
  max-width: 650px;
  margin-top: 28px;
  font-size: clamp(17px, 1.45vw, 21px);
}

.mrh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.mrh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 26px;
  border: 1px solid var(--mr-black);
  font-family: var(--mr-font-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .35s var(--mr-ease), background .35s var(--mr-ease), color .35s var(--mr-ease);
}

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

.mrh-btn-dark {
  background: var(--mr-black);
  color: var(--mr-white);
}

.mrh-btn-light {
  background: transparent;
  color: var(--mr-black);
}

.mrh-btn-light:hover {
  background: var(--mr-black);
  color: var(--mr-white);
}

.mrh-hero-panel {
  position: relative;
  min-height: 520px;
}

.mrh-geo {
  position: absolute;
  border: 2px solid var(--mr-black);
  transform: rotate(45deg);
}

.mrh-geo-one {
  width: 330px;
  height: 330px;
  right: 80px;
  top: 20px;
  background: rgba(255,255,255,.34);
}

.mrh-geo-two {
  width: 250px;
  height: 250px;
  right: 16px;
  bottom: 54px;
  background: rgba(144,149,149,.14);
}

.mrh-hero-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: min(330px, 86%);
  padding: 34px;
  background: var(--mr-black);
  color: var(--mr-white);
  box-shadow: 0 26px 70px rgba(0,0,0,.20);
}

.mrh-hero-card span {
  color: var(--mr-gray);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.mrh-hero-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mr-font-title);
  font-size: 74px;
  line-height: 1;
}

.mrh-hero-card p {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* SECCIONES */
.mrh-section {
  padding: 108px 0;
}

.mrh-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.mrh-section-head h2,
.mrh-section-title-row h2,
.mrh-arch-copy h2,
.mrh-final-box h2 {
  max-width: 850px;
  font-size: clamp(34px, 4.5vw, 66px);
  line-height: 1.02;
}

.mrh-text-block {
  display: grid;
  gap: 22px;
  padding: 32px 0 0 42px;
  border-left: 1px solid var(--mr-line);
}

.mrh-origin {
  background: var(--mr-white);
}

.mrh-section-title-row {
  margin-bottom: 54px;
}

.mrh-center {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.mrh-center .mrh-eyebrow {
  justify-content: center;
}

.mrh-center .mrh-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.mrh-center p {
  margin-top: 18px;
}

/* TIMELINE */
.mrh-timeline-section {
  background: var(--mr-black);
  color: var(--mr-white);
}

.mrh-timeline-section h2,
.mrh-timeline-section h3 {
  color: var(--mr-white);
}

.mrh-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mr-line-dark);
}

.mrh-time-card {
  position: relative;
  min-height: 280px;
  padding: 32px;
  border-right: 1px solid var(--mr-line-dark);
  transition: background .35s var(--mr-ease), transform .35s var(--mr-ease);
}

.mrh-time-card:last-child {
  border-right: 0;
}

.mrh-time-card:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-8px);
}

.mrh-time-card span {
  display: block;
  margin-bottom: 54px;
  color: var(--mr-gray);
  font-family: var(--mr-font-title);
  font-size: 34px;
}

.mrh-time-card h3 {
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.2;
}

.mrh-time-card p {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.75;
}

/* CARDS */
.mrh-feature-section {
  background: var(--mr-soft);
}

.mrh-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mrh-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  transition: transform .35s var(--mr-ease), box-shadow .35s var(--mr-ease), border-color .35s var(--mr-ease);
}

.mrh-card:hover {
  transform: translateY(-10px);
  border-color: var(--mr-black);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}

.mrh-card-number {
  margin-bottom: auto;
  color: var(--mr-gray);
  font-family: var(--mr-font-title);
  font-size: 42px;
}

.mrh-card h3 {
  margin-top: 60px;
  margin-bottom: 16px;
  font-size: 24px;
}

.mrh-card p {
  font-size: 14px;
  line-height: 1.78;
}

.mrh-card-dark {
  background: var(--mr-black);
  color: var(--mr-white);
}

.mrh-card-dark h3,
.mrh-card-dark .mrh-card-number {
  color: var(--mr-white);
}

.mrh-card-dark p {
  color: rgba(255,255,255,.78);
}

.mrh-card-gray {
  background: var(--mr-gray);
}

.mrh-card-gray h3,
.mrh-card-gray .mrh-card-number,
.mrh-card-gray p {
  color: var(--mr-white);
}

/* ARQUITECTURA */
.mrh-architecture {
  background: var(--mr-white);
}

.mrh-architecture-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 74px;
  align-items: center;
}

.mrh-arch-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--mr-line);
  background:
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.mrh-octagon {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 230px;
  height: 230px;
  border: 2px solid var(--mr-black);
  transform: translate(-50%, -50%) rotate(45deg);
}

.mrh-octagon-small {
  width: 140px;
  height: 140px;
  left: 67%;
  top: 61%;
  background: rgba(144,149,149,.20);
}

.mrh-arch-visual p {
  position: absolute;
  left: 28px;
  bottom: 26px;
  max-width: 260px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mrh-arch-copy p {
  max-width: 710px;
  margin-top: 26px;
}

/* MISIÓN */
.mrh-mission {
  background: var(--mr-black);
  color: var(--mr-white);
}

.mrh-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--mr-line-dark);
  border: 1px solid var(--mr-line-dark);
}

.mrh-mission article {
  padding: clamp(34px, 5vw, 64px);
  background: var(--mr-black);
}

.mrh-mission h3 {
  margin-bottom: 22px;
  color: var(--mr-white);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
}

.mrh-mission p {
  color: rgba(255,255,255,.76);
}

/* CIERRE */
.mrh-final {
  background: var(--mr-soft);
  padding-bottom: 120px;
}

.mrh-final-box {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(38px, 7vw, 82px);
  text-align: center;
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  box-shadow: 0 26px 90px rgba(0,0,0,.08);
}

.mrh-final-box .mrh-eyebrow {
  justify-content: center;
}

.mrh-final-box p {
  max-width: 700px;
  margin: 24px auto 34px;
}

/* RESPONSIVE */
@media (max-width: 1060px) {
  .mrh-hero-grid,
  .mrh-split,
  .mrh-architecture-grid {
    grid-template-columns: 1fr;
  }

  .mrh-hero {
    min-height: auto;
    padding-top: 126px;
  }

  .mrh-hero-panel {
    min-height: 430px;
  }

  .mrh-timeline,
  .mrh-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mrh-time-card:nth-child(2) {
    border-right: 0;
  }

  .mrh-time-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--mr-line-dark);
  }
}

@media (max-width: 760px) {
  .mrh-wrap {
    width: min(100% - 28px, 1180px);
  }

  .mrh-section {
    padding: 74px 0;
  }

  .mrh-hero {
    padding: 102px 0 70px;
  }

  .mrh-hero-copy h1 {
    font-size: clamp(42px, 14vw, 66px);
  }

  .mrh-hero-actions,
  .mrh-btn {
    width: 100%;
  }

  .mrh-hero-panel {
    min-height: 320px;
  }

  .mrh-geo-one {
    width: 220px;
    height: 220px;
    right: 42px;
  }

  .mrh-geo-two {
    width: 165px;
    height: 165px;
  }

  .mrh-hero-card {
    left: 0;
    padding: 26px;
  }

  .mrh-hero-card strong {
    font-size: 56px;
  }

  .mrh-text-block {
    padding-left: 0;
    border-left: 0;
  }

  .mrh-timeline,
  .mrh-card-grid,
  .mrh-mission-grid {
    grid-template-columns: 1fr;
  }

  .mrh-time-card,
  .mrh-time-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--mr-line-dark);
  }

  .mrh-time-card:last-child {
    border-bottom: 0;
  }

  .mrh-time-card {
    min-height: 230px;
  }

  .mrh-card {
    min-height: 320px;
  }

  .mrh-card h3 {
    margin-top: 42px;
  }

  .mrh-arch-visual {
    min-height: 320px;
  }
}


/* ==========================================================
   CORRECCIÓN ESTRUCTURAL HISTORIA
   Evita que global.css anule el padding del primer bloque.
   ========================================================== */
.mrhp-site > main > .mrh-page:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mrhp-site > main > .mrh-page:first-child > .mrh-hero:first-child,
.mrh-page > .mrh-hero:first-child {
  margin-top: 0 !important;
  padding-top: 150px !important;
}

.admin-bar .mrhp-site > main > .mrh-page:first-child > .mrh-hero:first-child {
  padding-top: 170px !important;
}

@media (max-width: 1060px) {
  .mrhp-site > main > .mrh-page:first-child > .mrh-hero:first-child,
  .mrh-page > .mrh-hero:first-child {
    padding-top: 126px !important;
  }

  .admin-bar .mrhp-site > main > .mrh-page:first-child > .mrh-hero:first-child {
    padding-top: 150px !important;
  }
}

@media (max-width: 760px) {
  .mrhp-site > main > .mrh-page:first-child > .mrh-hero:first-child,
  .mrh-page > .mrh-hero:first-child {
    padding-top: 102px !important;
  }
}
