:root {
  --roca-blue: #2460d4;
  --roca-black: #0a0a0a;
  --roca-white: #ffffff;
  --roca-muted: #d1d7e0;
  --roca-dim: #9aa3b0;
  --line: rgba(255, 255, 255, 0.2);
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  color: var(--roca-white);
  font-family: "DM Sans", system-ui, sans-serif;
}

.hero-bg {
  background-color: #060a18;
  inset: 0;
  position: fixed;
  z-index: 0;
}

.hero-bg__image {
  background-image: url("../assets/images/comunidad.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  opacity: 0.62;
  position: absolute;
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.88) 23%,
    rgba(0, 0, 0, 0.5) 53%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0) 93%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.88) 23%,
    rgba(0, 0, 0, 0.5) 53%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0) 93%
  );
}

.hero-bg__scrim {
  background: linear-gradient(
    180deg,
    rgba(8, 20, 52, 0.58) 0%,
    rgba(6, 14, 42, 0.36) 38%,
    rgba(4, 10, 32, 0.44) 100%
  );
  inset: 0;
  position: absolute;
}

.hero-bg__mesh {
  background-color: rgba(20, 55, 130, 0.11);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(36, 96, 212, 0.32) 0%, transparent 58%),
    radial-gradient(circle at 100% 100%, rgba(36, 96, 212, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(77, 138, 240, 0.14) 0%, transparent 48%),
    linear-gradient(180deg, rgba(14, 32, 78, 0.35) 0%, rgba(8, 12, 28, 0.46) 100%);
  inset: 0;
  position: absolute;
}

.page-shell {
  box-sizing: border-box;
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.55rem, 1.6vh, 0.9rem);
  margin: 0 auto;
  max-width: 33rem;
  overflow: hidden;
  padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1rem, 5vw, 1.5rem);
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .page-shell {
    max-width: 42rem;
  }
}

.site-header {
  text-align: center;
}

.logo-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.9vh, 0.5rem);
}

.logo-isotipo {
  display: block;
  height: auto;
  width: 105px;
}

.logo-hero {
  display: block;
  height: auto;
  max-height: clamp(2.31rem, 8.4vh, 3.99rem);
  width: auto;
  max-width: min(64.4vw, 17.64rem);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

@media (min-width: 640px) {
  .logo-isotipo {
    width: 150px;
  }

  .logo-hero {
    max-height: clamp(3.3rem, 12vh, 5.7rem);
    max-width: min(92vw, 25.2rem);
  }
}

.status-line {
  color: var(--roca-dim);
  font-size: clamp(0.625rem, 1.55vw, 0.72rem);
  line-height: 1.35;
  margin-top: 0.45rem;
}

.hero-title {
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 0.65rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.hero-accent {
  background: var(--roca-blue);
  display: block;
  height: 3px;
  margin: 0.55rem auto 0;
  width: clamp(2.5rem, 8vw, 3.25rem);
}

.hero-subtitle {
  color: var(--roca-muted);
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  font-weight: 400;
  line-height: 1.45;
  margin-top: 0.55rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  text-wrap: balance;
}

.content-block {
  padding-top: clamp(0.55rem, 1.4vh, 0.75rem);
}

.block-title {
  color: var(--roca-muted);
  font-size: clamp(0.68rem, 1.7vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedules-block {
  margin-bottom: clamp(1rem, 2.8vh, 1.75rem);
  margin-top: clamp(1rem, 2.8vh, 1.75rem);
  padding-top: 0;
}

.schedules-block .block-title {
  color: var(--roca-white);
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

.time-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.schedules-block .time-list {
  gap: clamp(0.55rem, 2.5vw, 1rem);
  margin-top: clamp(0.65rem, 1.8vh, 0.95rem);
}

.time-item {
  border-left: 2px solid var(--roca-blue);
  padding-left: 0.45rem;
}

.schedules-block .time-item {
  border-left: none;
  border-top: 3px solid var(--roca-blue);
  padding-left: 0;
  padding-top: clamp(0.45rem, 1.2vh, 0.65rem);
  text-align: center;
}

.time-value {
  font-size: clamp(0.88rem, 2.6vw, 1.05rem);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.schedules-block .time-value {
  font-size: clamp(1.2rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.location-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
}

@media (min-width: 640px) {
  .location-block {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.address-text {
  color: var(--roca-muted);
  font-size: clamp(0.7rem, 1.85vw, 0.82rem);
  font-style: normal;
  line-height: 1.4;
}

.address-street {
  color: var(--roca-white);
}

.btn-maps {
  background: transparent;
  border: 2px solid var(--roca-blue);
  border-radius: 9999px;
  color: var(--roca-white);
  display: inline-flex;
  font-size: clamp(0.72rem, 1.85vw, 0.82rem);
  font-weight: 600;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-maps:hover {
  background: var(--roca-blue);
  border-color: var(--roca-blue);
}

.btn-maps:focus-visible {
  outline: 2px solid var(--roca-white);
  outline-offset: 2px;
}

.site-footer {
  padding-top: clamp(0.55rem, 1.4vh, 0.75rem);
  text-align: center;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-link {
  align-items: center;
  color: var(--roca-muted);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  transition: color 0.15s ease;
  width: 44px;
}

.social-link:hover {
  color: var(--roca-white);
}

.social-link:focus-visible {
  color: var(--roca-white);
  outline: 2px solid var(--roca-blue);
  outline-offset: 2px;
}

.social-icon {
  flex-shrink: 0;
  height: 2rem;
  width: 2rem;
}

.footer-copy {
  bottom: clamp(0.5rem, 1.5vh, 0.85rem);
  color: var(--roca-dim);
  font-size: clamp(0.6rem, 1.45vw, 0.7rem);
  margin: 0;
  position: fixed;
  right: clamp(0.75rem, 4vw, 1.5rem);
  text-align: right;
  z-index: 2;
}

@media (max-height: 520px) {
  .page-shell {
    gap: 0.35rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .logo-hero {
    max-height: 1.97rem;
  }

  @media (min-width: 640px) {
    .logo-hero {
      max-height: 2.82rem;
    }
  }

  .hero-title {
    margin-top: 0.35rem;
  }

  .hero-accent {
    margin-top: 0.35rem;
  }

  .schedules-block .block-title {
    font-size: 0.9rem;
  }

  .schedules-block .time-value {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-maps,
  .social-link {
    transition: none;
  }

  .intro-curtain {
    display: none;
  }

  .intro-bg .hero-bg__image,
  .intro-bg .hero-bg__scrim,
  .intro-bg .hero-bg__mesh {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.intro-pending .intro-reveal,
  .intro-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Intro cinematográfica */
body.intro-pending .page-shell,
body.intro-pending .footer-copy {
  pointer-events: none;
}

body.intro-ready .page-shell,
body.intro-ready .footer-copy {
  pointer-events: auto;
}

@property --iris-radius {
  inherits: false;
  initial-value: 0%;
  syntax: "<percentage>";
}

.intro-curtain {
  --iris-radius: 0%;
  animation: intro-iris-open 0.62s cubic-bezier(0.76, 0, 0.24, 1) 0.32s forwards;
  background:
    radial-gradient(circle at 50% 40%, rgba(36, 96, 212, 0.32) 0%, transparent 52%),
    #060a18;
  inset: 0;
  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    transparent var(--iris-radius),
    #000 calc(var(--iris-radius) + 1px)
  );
  mask-image: radial-gradient(
    circle at 50% 40%,
    transparent var(--iris-radius),
    #000 calc(var(--iris-radius) + 1px)
  );
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

@keyframes intro-iris-open {
  to {
    --iris-radius: 150%;
  }
}

.intro-bg .hero-bg__image {
  animation: intro-bg-image 1.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: scale(1.12);
  transform-origin: center bottom;
}

.intro-bg .hero-bg__scrim {
  animation: intro-bg-layer 1.4s ease 0.1s forwards;
  opacity: 0;
}

.intro-bg .hero-bg__mesh {
  animation: intro-bg-layer 1.6s ease 0.2s forwards;
  opacity: 0;
}

@keyframes intro-bg-image {
  to {
    opacity: 0.62;
    transform: scale(1);
  }
}

@keyframes intro-bg-layer {
  to {
    opacity: 1;
  }
}

.intro-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--intro-delay, 0ms);
  will-change: opacity, transform;
}

body.intro-ready .intro-reveal {
  opacity: 1;
  transform: translateY(0);
}

.logo-isotipo.intro-reveal {
  transform: translateY(16px) scale(0.72);
}

body.intro-ready .logo-isotipo.intro-reveal {
  transform: translateY(0) scale(1);
}

.intro-delay-1 { --intro-delay: 0.35s; }
.intro-delay-2 { --intro-delay: 0.5s; }
.intro-delay-3 { --intro-delay: 0.65s; }
.intro-delay-4 { --intro-delay: 0.82s; }
.intro-delay-5 { --intro-delay: 0.95s; }
.intro-delay-6 { --intro-delay: 1.05s; }
.intro-delay-7 { --intro-delay: 1.15s; }
.intro-delay-8 { --intro-delay: 1.28s; }
.intro-delay-9 { --intro-delay: 1.4s; }
.intro-delay-10 { --intro-delay: 1.52s; }
.intro-delay-11 { --intro-delay: 1.65s; }

body.intro-ready .intro-reveal {
  will-change: auto;
}
