:root {
  --sky-top: #9fd0fb;
  --sky-mid: #cbe6ff;
  --sky-soft: #e6f3ff;
  --sky-bottom: #b9ddff;
  --ink-primary: #102a49;
  --ink-secondary: #284b73;
  --ink-muted: #4b6e96;
  --accent: #1d63b8;
  --accent-hover: #144d94;
  --white-glass: rgba(255, 255, 255, 0.62);
  --white-border: rgba(255, 255, 255, 0.78);
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-script: 'Great Vibes', Georgia, serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-primary);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--sky-soft) 72%, var(--sky-bottom) 100%);
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   CIELO AZUL BEBÉ ANIMADO (MESH GRADIENTS + NUBES)
   ========================================================= */
.sky-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 15% 15%, rgba(255, 255, 255, 0.75) 0%, transparent 65%),
    radial-gradient(ellipse 80% 55% at 85% 20%, rgba(141, 198, 252, 0.7) 0%, transparent 65%),
    linear-gradient(180deg, #98ccfa 0%, #c6e3ff 42%, #e6f4ff 76%, #bedeff 100%);
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}

.orb-1 {
  width: 58vw;
  height: 58vw;
  min-width: 360px;
  min-height: 360px;
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(196, 229, 255, 0.45) 60%, transparent 75%);
  animation: floatOrbA 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: 54vw;
  height: 54vw;
  min-width: 340px;
  min-height: 340px;
  top: 22%;
  right: -12%;
  background: radial-gradient(circle, rgba(130, 194, 252, 0.72) 0%, rgba(191, 226, 255, 0.35) 60%, transparent 75%);
  animation: floatOrbB 26s ease-in-out infinite alternate;
}

.orb-3 {
  width: 62vw;
  height: 50vw;
  min-width: 360px;
  min-height: 320px;
  bottom: -14%;
  left: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(215, 238, 255, 0.4) 60%, transparent 75%);
  animation: floatOrbC 29s ease-in-out infinite alternate;
}

.orb-4 {
  width: 44vw;
  height: 44vw;
  min-width: 280px;
  min-height: 280px;
  top: 52%;
  left: -12%;
  background: radial-gradient(circle, rgba(145, 203, 255, 0.65) 0%, transparent 72%);
  animation: floatOrbB 24s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrbA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, 5vh, 0) scale(1.08); }
  100% { transform: translate3d(3vw, 10vh, 0) scale(0.96); }
}

@keyframes floatOrbB {
  0% { transform: translate3d(0, 0, 0) scale(1.02); }
  50% { transform: translate3d(-7vw, 6vh, 0) scale(0.94); }
  100% { transform: translate3d(-3vw, -6vh, 0) scale(1.08); }
}

@keyframes floatOrbC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vw, -7vh, 0) scale(1.1); }
}

/* Nubes suaves desplazándose */
.clouds-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  filter: blur(18px);
  will-change: transform;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.cloud-1 {
  width: 340px;
  height: 92px;
  top: 16%;
  left: -400px;
  opacity: 0.68;
  animation: driftCloud 58s linear infinite;
}
.cloud-1::before { width: 150px; height: 150px; top: -64px; left: 48px; }
.cloud-1::after { width: 120px; height: 120px; top: -44px; right: 54px; }

.cloud-2 {
  width: 460px;
  height: 118px;
  top: 38%;
  left: -520px;
  opacity: 0.52;
  animation: driftCloud 76s linear infinite;
  animation-delay: -26s;
}
.cloud-2::before { width: 190px; height: 190px; top: -82px; left: 82px; }
.cloud-2::after { width: 150px; height: 150px; top: -54px; right: 76px; }

.cloud-3 {
  width: 290px;
  height: 78px;
  top: 62%;
  left: -340px;
  opacity: 0.62;
  animation: driftCloud 64s linear infinite;
  animation-delay: -44s;
}
.cloud-3::before { width: 125px; height: 125px; top: -52px; left: 40px; }
.cloud-3::after { width: 100px; height: 100px; top: -38px; right: 42px; }

.cloud-4 {
  width: 400px;
  height: 105px;
  top: 80%;
  left: -460px;
  opacity: 0.56;
  animation: driftCloud 84s linear infinite;
  animation-delay: -12s;
}
.cloud-4::before { width: 170px; height: 170px; top: -70px; left: 68px; }
.cloud-4::after { width: 130px; height: 130px; top: -46px; right: 64px; }

.cloud-5 {
  width: 240px;
  height: 68px;
  top: 28%;
  left: -280px;
  opacity: 0.45;
  animation: driftCloud 52s linear infinite;
  animation-delay: -34s;
}
.cloud-5::before { width: 110px; height: 110px; top: -46px; left: 36px; }
.cloud-5::after { width: 88px; height: 88px; top: -32px; right: 34px; }

@keyframes driftCloud {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(100vw + 620px), 0, 0); }
}

/* =========================================================
   CARRUSEL SUPERIOR INFINITO HACIA LA IZQUIERDA
   ========================================================= */
.marquee-header {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Difuminado suave en el borde inferior para fundirse con el cielo */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, 0.48) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, 0.48) 84%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeLeft 42s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

/* En móvil: exactamente 2 imágenes visibles al mismo tiempo, todas del mismo alto, sin espacios */
.marquee-slide {
  margin: 0;
  flex: 0 0 50vw;
  width: 50vw;
  height: 300px;
  padding: 0;
  position: relative;
}

.marquee-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0;
  filter: saturate(0.95) contrast(1.02);
}

.marquee-sky-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(198, 227, 255, 0) 0%,
    rgba(198, 227, 255, 0.45) 55%,
    rgba(203, 230, 255, 0.92) 100%
  );
}

@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 640px) {
  .marquee-slide {
    flex: 0 0 33.333vw;
    width: 33.333vw;
    height: 340px;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .marquee-slide {
    flex: 0 0 22vw;
    width: 22vw;
    height: 390px;
    padding: 0;
  }
}

/* =========================================================
   CONTENIDO PRINCIPAL / HERO MEMORIAL
   ========================================================= */
.page-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px 56px;
  text-align: center;
}

.hero {
  margin-top: -26px;
  padding-top: 8px;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
}

.title-top {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 9.5vw, 5.1rem);
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.85);
}

.title-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(5.1rem, 19vw, 9.4rem);
  line-height: 0.94;
  margin-top: -0.06em;
  color: #16447c;
  text-shadow:
    0 4px 28px rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.memorial-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 26px;
  max-width: 240px;
  color: rgba(29, 99, 184, 0.55);
}

.memorial-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 99, 184, 0.35), transparent);
}

.memorial-quote {
  margin: 0 auto 22px;
  max-width: 650px;
  font-family: var(--font-body);
  font-size: clamp(1.22rem, 3.6vw, 1.62rem);
  font-weight: 500;
  line-height: 1.48;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.memorial-lead {
  margin: 0 auto;
  max-width: 620px;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* =========================================================
   TARJETA DE HISTORIA / NUESTRA LUCHA
   ========================================================= */
.story-section {
  margin-top: 42px;
}

.glass-card {
  background: var(--white-glass);
  border: 1px solid var(--white-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 18px 50px rgba(32, 86, 148, 0.1);
  text-align: left;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.15rem);
  letter-spacing: 0.06em;
  color: var(--ink-primary);
  text-align: center;
}

.glass-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.glass-card p:last-of-type {
  margin-bottom: 0;
}

.upcoming-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(29, 99, 184, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #174985;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 99, 184, 0.16);
}

/* =========================================================
   BOTÓN FINAL CONTÁCTANOS
   ========================================================= */
.cta-section {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-caption {
  margin: 0 0 18px;
  font-size: 1.02rem;
  color: var(--ink-secondary);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d63b8 0%, #2a7be0 100%);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(29, 99, 184, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #16549f 0%, #216dca 100%);
  box-shadow: 0 16px 34px rgba(29, 99, 184, 0.38);
}

.btn-contact:active {
  transform: translateY(0);
}

.cta-email-hint {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.cta-email-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.cta-email-hint a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 20px 36px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0;
}

/* =========================================================
   MODAL DE CONTACTO
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 42, 73, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ffffff;
  border-radius: 24px;
  padding: clamp(22px, 4.5vw, 34px);
  box-shadow: 0 24px 64px rgba(16, 42, 73, 0.26);
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(29, 99, 184, 0.16);
  background: #f2f8ff;
  color: var(--ink-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: #e1f0ff;
}

.modal-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

.modal-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
  line-height: 1;
}

.modal-subtitle {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(29, 99, 184, 0.22);
  background: #f8fbff;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 99, 184, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 112px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef6ff;
  border: 1px solid rgba(29, 99, 184, 0.16);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.checkbox-field input[type='checkbox'] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
}

.form-status.is-success {
  padding: 12px 14px;
  background: #e6f7ee;
  color: #135e36;
  border: 1px solid #b5e4cb;
}

.form-status.is-error {
  padding: 12px 14px;
  background: #fdecec;
  color: #8c2323;
  border: 1px solid #f4c2c2;
}

.btn-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d63b8 0%, #2a7be0 100%);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .mesh-orb,
  .cloud {
    animation: none;
  }
}
