/* ==========================================================
   MOIS0N - PORTADA / IDENTIDAD DE MARCA
   Este archivo solo modifica la página principal.
   ========================================================== */


/* ==========================================================
   COLORES DE MARCA
   ========================================================== */

.home-page {
  --brand-blue: #0a2c51;
  --brand-blue-light: #124f83;
  --brand-cyan: #08a9dc;
  --brand-cyan-light: #2cc8f3;

  --brand-dark: #02070d;
  --brand-dark-soft: #07111d;
  --brand-card: rgba(8, 18, 31, 0.86);

  --brand-white: #f8fafc;
  --brand-muted: #a9b7c9;

  --brand-border: rgba(8, 169, 220, 0.24);
  --brand-border-strong: rgba(8, 169, 220, 0.55);

  --brand-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48);
}


/* ==========================================================
   FONDO GENERAL DE LA PORTADA
   ========================================================== */

.home-page {
  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(8, 169, 220, 0.13),
      transparent 27%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(18, 79, 131, 0.16),
      transparent 30%
    ),
    #02070d;
}


/* ==========================================================
   CABECERA
   ========================================================== */

.home-page .site-header {
  background: rgba(2, 7, 13, 0.88);
  border-bottom: 1px solid rgba(8, 169, 220, 0.15);
  backdrop-filter: blur(18px);
}


.home-page .navbar {
  max-width: 1280px;
}


.home-page .brand-text {
  display: inline-flex;
  align-items: baseline;

  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.01em;

  color: #f8fafc;
}


.home-page .brand-zero {
  color: var(--brand-cyan);
}


.home-page .brand-mois,
.home-page .brand-n {
  color: #f8fafc;
}


.home-page .nav-links a:hover {
  color: #ffffff;

  background: rgba(8, 169, 220, 0.1);

  border-color: rgba(8, 169, 220, 0.35);
}


.home-page .nav-links a:focus-visible {
  outline-color: var(--brand-cyan);
}


.home-page .menu-toggle:hover {
  border-color: var(--brand-border-strong);
  background: rgba(8, 169, 220, 0.08);
}


/* ==========================================================
   CONTENEDOR PRINCIPAL
   ========================================================== */

.home-main {
  max-width: 1280px;

  margin: 0 auto;

  padding:
    2.3rem
    1.5rem
    4rem;
}


/* ==========================================================
   HERO
   ========================================================== */

.brand-hero {
  position: relative;

  min-height: 410px;

  display: flex;
  align-items: center;

  overflow: hidden;

  padding:
    3.5rem
    3.5rem;

  border:
    1px solid
    rgba(8, 169, 220, 0.22);

  border-radius: 2rem;

  background-color: #02070d;

  background-image:
    url("../img/mois0n-hero.png");

  /*
    Usamos el banner completo como fondo sin deformarlo.
    Se mantiene centrado horizontalmente.
  */

  background-size: 100% auto;

  background-position:
    center top;

  background-repeat:
    no-repeat;

  box-shadow:
    var(--brand-shadow);

  isolation: isolate;
}


/* Capa para hacer legible el texto */

.brand-hero-overlay {
  position: absolute;

  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(2, 7, 13, 0.98) 0%,
      rgba(2, 7, 13, 0.94) 20%,
      rgba(2, 7, 13, 0.78) 38%,
      rgba(2, 7, 13, 0.22) 59%,
      rgba(2, 7, 13, 0.03) 100%
    );
}


/* Contenido del hero */

.brand-hero-content {
  width: 100%;
  max-width: 620px;

  position: relative;

  z-index: 2;
}


/* Etiqueta superior */

.brand-eyebrow {
  margin-bottom: 1rem;

  color: var(--brand-cyan);

  font-size: 0.79rem;
  font-weight: 800;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}


/* Título */

.brand-hero h1 {
  margin-bottom: 0.9rem;

  color: #ffffff;

  font-size:
    clamp(
      2.25rem,
      5vw,
      4.4rem
    );

  line-height: 0.98;

  letter-spacing: -0.045em;
}


.brand-hero h1 span {
  display: block;

  margin-top: 0.25rem;

  color: var(--brand-cyan);
}


/* Subtítulo */

.brand-hero h2 {
  max-width: 610px;

  margin-bottom: 1.2rem;

  color: #e8eef7;

  font-size:
    clamp(
      1.05rem,
      2vw,
      1.45rem
    );

  font-weight: 650;

  line-height: 1.3;
}


/* Descripciones */

.brand-description {
  max-width: 600px;

  margin-bottom: 0.75rem;

  color: #d3ddea;

  font-size: 1rem;

  line-height: 1.65;
}


.brand-description-secondary {
  color: #9fb0c3;

  font-size: 0.94rem;
}


.brand-description strong {
  color: #ffffff;
}


/* ==========================================================
   ETIQUETAS DEL HERO
   ========================================================== */

.brand-skills {
  display: flex;
  flex-wrap: wrap;

  gap: 0.55rem;

  margin-top: 1.35rem;
}


.brand-skills span {
  display: inline-flex;
  align-items: center;

  padding:
    0.4rem
    0.72rem;

  color: #cceffc;

  background:
    rgba(8, 169, 220, 0.1);

  border:
    1px solid
    rgba(8, 169, 220, 0.28);

  border-radius:
    999px;

  font-size: 0.82rem;
  font-weight: 700;

  backdrop-filter:
    blur(8px);
}


/* ==========================================================
   BOTONES
   ========================================================== */

.brand-actions {
  display: flex;
  flex-wrap: wrap;

  align-items: center;

  gap: 0.8rem;

  margin-top: 1.7rem;
}


.brand-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 45px;

  padding:
    0.75rem
    1.15rem;

  border-radius:
    999px;

  border:
    1px solid
    transparent;

  font-size: 0.9rem;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.brand-btn:hover {
  transform:
    translateY(-2px);
}


.brand-btn-primary {
  color: #001018;

  background:
    linear-gradient(
      135deg,
      var(--brand-cyan-light),
      var(--brand-cyan)
    );

  box-shadow:
    0 12px 32px
    rgba(8, 169, 220, 0.24);
}


.brand-btn-primary:hover {
  box-shadow:
    0 16px 38px
    rgba(8, 169, 220, 0.36);
}


.brand-btn-secondary {
  color: #f8fafc;

  background:
    rgba(6, 18, 31, 0.78);

  border-color:
    rgba(152, 177, 204, 0.25);

  backdrop-filter:
    blur(10px);
}


.brand-btn-secondary:hover {
  border-color:
    var(--brand-cyan);

  background:
    rgba(8, 169, 220, 0.1);
}


/* ==========================================================
   RESUMEN PROFESIONAL
   ========================================================== */

.professional-summary {
  margin-top: 5rem;
}


.summary-heading {
  max-width: 760px;

  margin-bottom: 2rem;
}


.brand-section-label {
  margin-bottom: 0.65rem;

  color: var(--brand-cyan);

  font-size: 0.78rem;
  font-weight: 850;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}


.summary-heading h2,
.career-cta h2 {
  color: #ffffff;

  font-size:
    clamp(
      2rem,
      4vw,
      3.2rem
    );

  line-height: 1.05;

  letter-spacing: -0.035em;
}


/* Cuadrícula */

.summary-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 1.3rem;
}


/* Tarjetas */

.summary-card {
  position: relative;

  min-height: 230px;

  padding: 1.8rem;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(10, 25, 42, 0.92),
      rgba(5, 14, 24, 0.94)
    );

  border:
    1px solid
    rgba(122, 158, 194, 0.14);

  border-radius:
    1.4rem;

  box-shadow:
    0 18px 50px
    rgba(0, 0, 0, 0.22);
}


.summary-card::after {
  content: "";

  position: absolute;

  right: -80px;
  top: -80px;

  width: 180px;
  height: 180px;

  border-radius:
    50%;

  background:
    rgba(8, 169, 220, 0.06);

  filter:
    blur(2px);
}


.summary-card-featured {
  border-color:
    rgba(8, 169, 220, 0.4);

  background:
    linear-gradient(
      145deg,
      rgba(8, 169, 220, 0.12),
      rgba(5, 14, 24, 0.95)
    );
}


.summary-number {
  display: block;

  margin-bottom: 1rem;

  color:
    rgba(8, 169, 220, 0.8);

  font-size: 0.78rem;
  font-weight: 900;

  letter-spacing: 0.15em;
}


.summary-card h3 {
  position: relative;

  z-index: 2;

  margin-bottom: 0.9rem;

  color: #f8fafc;

  font-size: 1.25rem;
}


.summary-card p {
  position: relative;

  z-index: 2;

  margin-bottom: 0.7rem;

  color: #afbdcd;

  line-height: 1.65;
}


.summary-card strong {
  color: #eef8ff;
}


/* ==========================================================
   PROYECTO DESTACADO
   ========================================================== */

.brand-featured-project {
  margin-top: 5rem;

  border-color:
    rgba(8, 169, 220, 0.25) !important;

  background:
    linear-gradient(
      145deg,
      rgba(8, 169, 220, 0.08),
      rgba(17, 24, 39, 0.88)
    ) !important;
}


.brand-featured-project h2 {
  color: #ffffff;
}


.brand-tech-list span {
  color: #cceffc !important;

  background:
    rgba(8, 169, 220, 0.1) !important;

  border-color:
    rgba(8, 169, 220, 0.3) !important;
}


/* ==========================================================
   CTA FINAL
   ========================================================== */

.career-cta {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 2rem;

  margin-top: 5rem;

  padding:
    2.4rem
    2.5rem;

  background:
    linear-gradient(
      135deg,
      rgba(8, 169, 220, 0.11),
      rgba(8, 25, 43, 0.85)
    );

  border:
    1px solid
    rgba(8, 169, 220, 0.28);

  border-radius:
    1.7rem;

  box-shadow:
    var(--brand-shadow);
}


.career-cta > div:first-child {
  max-width: 760px;
}


.career-cta p:not(.brand-section-label) {
  max-width: 720px;

  margin-top: 1rem;

  color: #aebdcd;

  line-height: 1.65;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.brand-footer {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 2rem;

  max-width: 1280px;

  border-top-color:
    rgba(8, 169, 220, 0.15);
}


.footer-brand {
  display: flex;
  flex-direction: column;

  gap: 0.2rem;
}


.footer-brand strong {
  color: #ffffff;

  font-size: 1.5rem;
  font-weight: 900;
}


.footer-brand > span {
  color: #71849b;

  font-size: 0.65rem;
  font-weight: 750;

  letter-spacing: 0.15em;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

  .brand-hero {
    min-height: 470px;

    padding:
      3rem
      2.5rem;

    /*
      En tablet ampliamos la imagen para que el logo
      siga teniendo presencia.
    */

    background-size:
      auto 100%;

    background-position:
      66% center;
  }


  .brand-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 7, 13, 0.98) 0%,
        rgba(2, 7, 13, 0.93) 34%,
        rgba(2, 7, 13, 0.7) 56%,
        rgba(2, 7, 13, 0.28) 100%
      );
  }


  .brand-hero-content {
    max-width: 570px;
  }


  .career-cta {
    flex-direction: column;

    align-items:
      flex-start;
  }


  .career-cta .brand-actions {
    margin-top: 0;
  }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 720px) {

  .home-main {
    padding:
      1rem
      1rem
      3rem;
  }


  .brand-hero {
    min-height: auto;

    padding:
      2.4rem
      1.35rem;

    border-radius:
      1.3rem;

    /*
      En móvil el banner queda como textura de marca.
      Priorizamos la legibilidad del contenido.
    */

    background-size:
      auto 100%;

    background-position:
      63% center;
  }


  .brand-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 7, 13, 0.98) 0%,
        rgba(2, 7, 13, 0.94) 48%,
        rgba(2, 7, 13, 0.76) 100%
      );
  }


  .brand-hero h1 {
    font-size:
      clamp(
        2.3rem,
        13vw,
        3.4rem
      );
  }


  .brand-description-secondary {
    display: none;
  }


  .brand-skills {
    margin-top: 1.1rem;
  }


  .brand-actions {
    gap: 0.65rem;
  }


  .brand-btn {
    width: 100%;
  }


  .summary-grid {
    grid-template-columns:
      1fr;
  }


  .summary-card {
    min-height: auto;
  }


  .professional-summary,
  .brand-featured-project,
  .career-cta {
    margin-top: 3.5rem;
  }


  .career-cta {
    padding:
      1.8rem
      1.4rem;
  }


  .brand-footer {
    flex-direction:
      column;

    align-items:
      flex-start;
  }

}
