@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ================================================================ */
/* GLOBAL                                                           */
/* ================================================================ */
*, *::before, *::after {
  font-family: 'Saira Condensed', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #0a0f1a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1rem, 2.5vh, 2.5rem) clamp(1rem, 3vw, 3rem);
  position: relative;
}

body.is-preload *,
body.is-preload *::before,
body.is-preload *::after {
  animation: none !important;
  transition: none !important;
}

[class*="fa-"], .fa, .fas, .far, .fab, .fal, .fad,
[class*="fa-"]::before, .fa::before, .fas::before,
.far::before, .fab::before, .fal::before, .fad::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
  font-weight: 900;
}
.fab, .fab::before, .fa-brands, .fa-brands::before {
  font-weight: 400;
}

/* ================================================================ */
/* FONDO: SLIDESHOW                                                 */
/* ================================================================ */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
  pointer-events: none;
}

#bg > div {
  position: absolute;
  top: 0; left: 0;
  width: 150%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 3s ease;
}

#bg > div.visible {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  animation: bgSlide 45s linear infinite;
}

#bg > div.visible.top { z-index: 2; }
body.is-preload #bg { opacity: 0; }

@keyframes bgSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

@media screen and (max-width: 1280px) {
  #bg > div.visible { animation-duration: 29.25s; }
}
@media screen and (max-width: 736px) {
  #bg > div.visible { animation-duration: 18s; }
}

/* ================================================================ */
/* VIÑETA                                                           */
/* ================================================================ */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%,
    rgba(10,15,26,0.15) 0%,
    rgba(10,15,26,0.35) 40%,
    rgba(5,8,15,0.65) 75%,
    rgba(5,8,15,0.85) 100%);
}

/* ================================================================ */
/* CONTENEDOR PRINCIPAL                                             */
/* ================================================================ */
.landing-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: clamp(0.75rem, 2vh, 1.75rem);
}

/* ================================================================ */
/* GRID PRINCIPAL: 2 columnas en desktop                            */
/* ================================================================ */
.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vh, 2.5rem);
  align-items: center;
  flex: 1;
  width: 100%;
}

/* ================================================================ */
/* COLUMNA IZQUIERDA: BRAND                                         */
/* ================================================================ */
.landing-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.landing-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.6rem, 1.8vh, 1.25rem);
}

.landing-logo {
  display: inline-block;
  text-decoration: none;
}

.landing-logo img {
  width: clamp(122px, 9vh, 116px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255,215,0,0.18));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Badge con punto pulsante */
.landing-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.65rem, 1.6vh, 1.1rem);
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #FFD700;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.2);
  padding: 0.38rem 0.95rem;
  border-radius: 9999px;
  font-size: clamp(0.6rem, 1.1vh, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255,215,0,0.8);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Título principal */
.landing-title {
  font-size: clamp(2.5rem, 5.5vh, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: clamp(0.5rem, 1.2vh, 0.9rem);
  text-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
.landing-title .dorado {
  color: #FFD700;
  display: inline-block;
  text-shadow: 0 0 40px rgba(255,215,0,0.25);
}

/* Línea divisoria dorada */
.landing-divider {
  width: clamp(40px, 6vw, 64px);
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  margin: clamp(0.4rem, 1vh, 0.75rem) auto;
  border-radius: 2px;
  opacity: 0.7;
}

/* Subtítulo */
.landing-title-sub {
  font-size: clamp(1.85rem, 2.2vh, 1.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
  margin-bottom: clamp(0.6rem, 1.4vh, 1rem);
  line-height: 1.3;
}
.landing-title-sub .dorado {
  color: #FFD700;
  font-weight: 400;
}

/* Descripción */
.landing-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: clamp(0.98rem, 1.35vh, 0.85rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 460px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.landing-subtitle .dorado {
  color: #FFD700;
  font-weight: 400;
}

/* ================================================================ */
/* COLUMNA DERECHA: ACCIONES                                        */
/* ================================================================ */
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vh, 0.85rem);
  width: 100%;
  margin-top: 120px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  padding: clamp(0.9rem, 1.4vh, 1.1rem) clamp(0.95rem, 1.5vw, 1.4rem);
  border-radius: 0.9rem;
  background: rgba(10,15,26,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.4);
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-card:hover {
  background: rgba(10,15,26,0.75);
  border-color: rgba(255,215,0,0.4);
  transform: translateX(4px);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.7);
}
.action-card:hover::before { opacity: 1; }

.action-card.primary {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(10,15,26,0.6));
  border-color: rgba(255,215,0,0.35);
}
.action-card.primary .action-icon {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.4);
  color: #FFD700;
}

.action-card.highlighted {
  background: linear-gradient(135deg, rgba(255,215,0,0.16), rgba(10,15,26,0.6));
  border-color: rgba(255,215,0,0.45);
  box-shadow: 0 0 0 1px rgba(255,215,0,0.15) inset, 0 6px 24px -12px rgba(255,215,0,0.35);
}
.action-card.highlighted .action-icon {
  background: rgba(255,215,0,0.22);
  border-color: rgba(255,215,0,0.5);
  color: #FFD700;
}

.action-icon {
  width: clamp(36px, 5vh, 44px);
  height: clamp(36px, 5vh, 44px);
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.action-card:hover .action-icon {
  color: #FFD700;
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.35);
  transform: scale(1.05);
}

.action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  text-align: left;
}

.action-title {
  font-size: clamp(0.85rem, 1.5vh, 1.05rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  transition: color 0.25s ease;
}
.action-card:hover .action-title { color: #FFD700; }

.action-desc {
  font-size: clamp(0.65rem, 1.05vh, 0.78rem);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}

.action-arrow {
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: all 0.3s ease;
  width: clamp(15px, 2vh, 18px);
  height: clamp(15px, 2vh, 18px);
}

.action-card:hover .action-arrow {
  color: #FFD700;
  transform: translate(2px, -2px);
}

/* ================================================================ */
/* FOOTER                                                           */
/* ================================================================ */
.landing-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: clamp(0.6rem, 1.4vh, 1rem);
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 1vh, 0.75rem);
}

ul.icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.3rem, 0.8vw, 0.55rem);
}

ul.icons li { display: inline-block; padding: 0; }

ul.icons li a {
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.7rem, 1.1vh, 0.82rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 4vh, 34px);
  height: clamp(28px, 4vh, 34px);
  border-radius: 50%;
  background: rgba(10,15,26,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

ul.icons li a:hover {
  color: #FFD700;
  background: rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.4);
  transform: translateY(-2px);
}

ul.icons li .label { display: none; }

.footer-info {
  text-align: center;
}

.footer-line {
  font-size: clamp(0.55rem, 0.95vh, 0.7rem);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 0.15rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.footer-line.muted {
  color: rgba(255,255,255,0.25);
  font-size: clamp(0.5rem, 0.8vh, 0.6rem);
  margin-top: 0.2rem;
}

/* ================================================================ */
/* DESKTOP: 2 columnas                                              */
/* ================================================================ */
@media (min-width: 900px) {
  .landing-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }

  .landing-brand {
    align-items: flex-start;
    text-align: left;
  }

  .landing-logo-wrap {
    justify-content: flex-start;
  }

  .landing-badge-wrap {
    justify-content: flex-start;
  }

  .landing-divider {
    margin-left: 0;
    margin-right: auto;
  }

  .landing-subtitle {
    max-width: 100%;
  }

  .action-card:hover {
    transform: translateX(6px);
  }
}

/* ================================================================ */
/* TABLET: 1 columna, centrado                                      */
/* ================================================================ */
@media (max-width: 899px) {
  .landing-grid {
    grid-template-columns: 1fr;
    align-items: center;
  }
}

/* ================================================================ */
/* PANTALLAS BAJAS                                                  */
/* ================================================================ */
@media (max-height: 720px) {
  .footer-line.muted {
    display: none;
  }
  .landing-subtitle {
    line-height: 1.65;
  }
}

@media (max-height: 600px) {
  .landing-badge-wrap { display: none; }
  .landing-divider { margin: 0.3rem auto; }
  .action-desc { display: none; }
  .action-card { padding: 0.5rem 0.85rem; }
  .action-icon { width: 32px; height: 32px; }
  .landing-footer { padding-top: 0.4rem; }
}

@media (max-height: 480px) {
  .landing-title-sub { display: none; }
  .landing-subtitle { display: none; }
  ul.icons { gap: 0.25rem; }
  ul.icons li a { width: 24px; height: 24px; font-size: 0.65rem; }
  .footer-line { font-size: 0.55rem; }
  .footer-line.muted { display: none; }
}

/* ================================================================ */
/* MÓVIL: optimización de espacio                                   */
/* ================================================================ */
@media (max-width: 640px) {
  body {
    padding: 0.9rem 0.85rem;
  }

  .landing-wrap {
    gap: 0.5rem;
  }

  .landing-grid {
    gap: 0.6rem;
  }

  .landing-logo img { width: 120px; }
  .landing-logo-wrap { margin-bottom: 0.4rem; }

  .landing-badge {
    font-size: 0.58rem;
    padding: 0.3rem 0.8rem;
    gap: 0.4rem;
  }
  .landing-badge-wrap { margin-bottom: 0.5rem; }

  .landing-title {
    font-size: clamp(2.3rem, 5.5vw, 2.1rem);
    margin-bottom: 0.3rem;
  }

  .landing-divider {
    margin: 0.35rem auto;
  }

  .landing-title-sub {
    font-size: 1.48rem;
    margin-bottom: 0.4rem;
  }

  .landing-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .landing-actions {
    gap: 0.38rem;
    margin-top: -50px;
  }

  .action-card {
    padding: 0.6rem 0.8rem;
    gap: 0.7rem;
    border-radius: 0.75rem;
  }

  .action-card:hover {
    transform: translateX(0) translateY(-2px);
  }

  .action-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .action-icon svg { width: 17px; height: 17px; }

  .action-title { font-size: 0.88rem; }
  .action-desc { font-size: 0.68rem; }
  .action-arrow { width: 15px; height: 15px; }

  .landing-footer {
    padding-top: 0.55rem;
    gap: 0.35rem;
  }

  ul.icons { gap: 0.3rem; }
  ul.icons li a { width: 30px; height: 30px; font-size: 0.7rem; }

  .footer-line { font-size: 0.58rem; }
  .footer-line.muted { display: none; }
}

/* ================================================================ */
/* MÓVIL MUY PEQUEÑO                                                */
/* ================================================================ */
@media (max-width: 380px) {
  body { padding: 0.7rem 0.6rem; }

  .landing-logo img { width: 116px; }

  .landing-badge { font-size: 0.52rem; padding: 0.22rem 0.6rem; }

  .landing-title { font-size: clamp(2.35rem, 5vw, 1.75rem); }
  .landing-title-sub { font-size: 1.18rem; }
  .landing-subtitle { font-size: 0.65rem; line-height: 0.85; padding: 20px;}

  .landing-actions { gap: 0.3rem; margin-top: -50px;}
  .action-card { padding: 0.5rem 0.7rem; gap: 0.55rem; }
  .action-icon { width: 28px; height: 28px; border-radius: 7px; }
  .action-icon svg { width: 14px; height: 14px; }
  .action-title { font-size: 0.8rem; }
  .action-desc { display: none; }

  ul.icons li a { width: 26px; height: 26px; font-size: 0.62rem; }
  .footer-line { font-size: 0.52rem; }
}