/*
Z-INDEX SYSTEM
0     → visual overlays (hero)
100   → navigation
1000  → mobile menu
2000  → search modal
3000  → image / lightbox modals
*/



/* =========================
   COLOR PALETTE
   ========================= */
:root {
  --dark-blue: #0a1828;
  --turquoise: #178582;
  --gold: #bfa181;
  --blue: #1249d6;
  --white: #ffffff;
  --black: #000000;
}

/* =========================
   GLOBAL STYLES
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Urbanist", sans-serif;
  background-color: var(--white);
  color: var(--dark-blue);
}

body {
  line-height: 1.6;
}

.page {
  transition: filter 0.8s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .nav__search button:hover {
  color: var(--blue);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   HERO / HEADER
   ========================= */
.hero {
  position: relative;
  height: 100vh;
  color: var(--white);
  overflow: hidden;
  /* z-index: 1; */
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* z-index: 1; */
  z-index: 0;
}

.hero--small {
  height: 65vh;
}

.hero--small .hero__content {
  height: calc(65vh - 120px);
}

.hero .nav,
.hero__content {
  position: relative;
  /* z-index: 2; */
  /* z-index: 1 */
}

/* =========================
   NAVIGATION
   ========================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  position: relative;
  /* z-index: 5000; */
  z-index: 100;
}

.nav__logo {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.nav__menu {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav__menu a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--white);
  padding-bottom: 5px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: center bottom;
  transition: color 0.3s ease, background-size 0.3s ease;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
}

.nav__menu a:hover {
  color: rgba(255,255,255,0.75);
  background-size: 100% 2px;
}

.nav__menu a.active {
  color: rgba(255,255,255,0.75);
  background-size: 100% 2px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  position: relative;
  /* z-index: 7000; */
  z-index: 1100;
}

/* =========================
   NAV SEARCH (underline like links)
   ========================= */

.nav__search button {
  background: none;
  border: none;
  cursor: pointer;
  /* color: currentColor; */
  color:var(--white);
  transition: color 0.3s ease;

  height: 24px;
  display: inline-flex;          
  align-items: center;
  justify-content: center;

  padding: 0 0 6px 0;

  /* underline animado */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0% 2px;

  transition: background-size 0.3s ease, transform 0.25s ease;
}

.nav__search button:hover {
  background-size: 100% 2px;
  color: rgba(255,255,255,0.75);
}

.nav__search-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  display: block;
}

/* =========================
   HERO CONTENT
   ========================= */
.hero__content {
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero__content h1 {
  font-size: 3rem;
}

.hero__content p {
  max-width: 600px;
  font-size: 1.2rem;
}

/* =========================
   ABOUT SECTION
   ========================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 150px 0;
}

.about__text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about__text p {
  font-size: 1.2rem;
}

.about__image img {
  width: 70%;
  margin-left: auto;
  border-radius: 50%;
}

.about-highlight {
  gap: 80px;
  width: 100%;
}

.about-highlight__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;

  gap: 0;
  align-items: center;
  min-height: 520px;
}

.about-highlight__content {
  background: var(--blue);
  color: var(--white);
  padding: 80px; 

  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  text-align: left;
} 

.about-highlight__content h3,
.about-highlight__content p,
.about-highlight__stats {
  max-width: 600px;
}

.about-highlight__eyebrow {
  display: block;
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 50px;
}

.about-highlight__content h3 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 30px;
}

.about-highlight__content p {
  font-size: 1.15rem;
  max-width: 600px;
}

.about-highlight__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  list-style: none;
}

.about-highlight__stats strong {
  font-size: 1.2rem;
  display: block;
}

.about-highlight__stats span {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* =========================
   APPS SECTION
   ========================= */

.apps {
  padding: 140px 0;
  padding-bottom: 0;
}

.apps__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.apps__intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.apps__intro p {
  font-size: 1.2rem;
  color: rgba(10, 24, 40, 0.8);
  text-align: center;
}

.apps__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  /* padding-top: 50px; */
}

.apps-card__logo img {
  /* width: 100%; */
  max-width: 180px;
  max-height: 100px;
  height: auto;
  object-fit: contain;
  margin: 30px;

  /* Aplicamos el filtro de escala de grises al 100% */
  filter: grayscale(100%);
  opacity: 0.7;              /* Opcional: los hace un poco más sutiles */

  /* Transición suave para que el cambio de color no sea brusco */
  transition: filter 0.8s ease, opacity 0.4s ease;
}

.apps__grid img:hover {
  filter: grayscale(0%);     /* Recupera el color original */
  opacity: 1;                /* Recupera el brillo total */
  /* transform: scale(1.05);    Opcional: un pequeño aumento de tamaño */
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact {
  padding: 120px 0;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: stretch;
}

.contact__item h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.contact__item--center {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 🔑 vertical */
  align-items: center;       /* 🔑 horizontal */
  min-height: 100%;
}

.contact__item--center h3 {
  margin-bottom: 25px;
}

.contact iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.contact__icons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.contact__icons a {
  text-decoration: none;
  color: var(--dark-blue);
  font-size: 1.1rem;
  padding-bottom: 5px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: center bottom;
  transition: color 0.3s ease, background-size 0.3s ease;
}

.contact__icons a:hover {
  color: var(--blue);
  background-size: 100% 2px;
}

/* =========================
   CONTACT SUBTITLE
   ========================= */
.contact__subtitle {
  margin-top: 8px;
  margin-bottom: 24px;

  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(10, 24, 40, 0.75); /* dark-blue suave */

  text-align: center;
  line-height: 1.4;
}

/* =========================
   CONTACT ICONS (SVG)
   ========================= */
.contact__icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.6;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact__icon:hover svg {
  transform: scale(1.12);
}

/* =========================
   FOOTER
   ========================= */
.footer {
  padding: 30px 0;
  text-align: center;
  font-size: 1.1rem;
  background-color: #1249d6;
}

.footer p {
  color: var(--white);
}

/* =========================
   SEARCH MODAL
   ========================= */
.search {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  /* z-index: 4000; */
  z-index: 2000;
}

.search.active {
  display: flex;
}

.search__box {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 25px;
}

.search__box input {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid var(--dark-blue);
  border-radius: 8px;
  outline: none;
}

.search__results {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.search__results div {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.search__results div:hover {
  background: #f5f5f5;
}





















/* CERTIFICATIONS PAGE*/

/* =========================
   HERO CERTIFICATIONS
   ========================= */
.hero--certs {
  position: relative;
  background-image: url("/images/certifications/certs-banner.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--certs .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 40, 0.65); /* dark-blue con opacidad */
  z-index: 0;
}

.certs {
  padding: 140px 0;
  padding-bottom: 0;
}

.certs__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}

.certs__intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.certs__intro p {
  font-size: 1.2rem;
  color: rgba(10, 24, 40, 0.8);
  text-align: center;
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.cert-link {
  padding-top: 15px;
}

.cert-link a {
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
  color: var(--blue);
  transition: 0.2s ease;
}

.cert-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontal */
  justify-content: center;  /* centra vertical */
  text-align: center;
}

.cert-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.cert-card__logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

  


/* =========================
   COURSES SECTION
   ========================= */
.courses {
  padding: 140px 0;
}

.courses__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}

.courses__intro h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.courses__intro p {
  font-size: 1.05rem;
  color: rgba(10, 24, 40, 0.75);
}

/* =========================
   CERTIFICATIONS GRID
   ========================= */

/* GRID */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* CARD */
.course-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* CONTENT */
.course-card__content {
  padding: 20px;
}

.course-card__content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.course-card__content span {
  font-size: 0.9rem;
  color: rgba(10, 24, 40, 0.6);
}

/* =========================
   IMAGE MODAL (COURSES)
   ========================= */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 40px;
}

.image-modal.active {
  display: flex;
}

.image-modal__content img {
  max-width: 95%;
  max-height: 90vh;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* UX */
.course-card__img {
  cursor: zoom-in;
}

/* =========================
   MOBILE MENU – QUITAR UNDERLINE (LINKS + LUPA)
   ========================= */
@media (max-width: 768px) {
  /* Links */
  .nav__menu.active a {
    background-image: none !important;
    padding-bottom: 0;
  }

  /* Lupa */
  .nav__menu.active .nav__search button {
    background-image: none !important;
    padding-bottom: 0;
  }
}

  body.menu-open .nav__menu .nav__search button:hover {
    color: var(--blue);
  }

/* =========================
   NAV TOGGLE – FINAL FIX
   ========================= */

/* Estado normal (hamburguesa) */
.nav__toggle {
  color: var(--white);
}

/* Menú abierto (X visible sobre fondo blanco) */
body.menu-open .nav__toggle {
  color: var(--blue);
  font-weight: 900;
  font-size: 40px;
}

/* =========================
   SEARCH ICON – DESKTOP
   ========================= */
@media (min-width: 769px) {
  body:not(.menu-open) .nav__search button {
    color: var(--white);
  }

  body:not(.menu-open) .nav__search button:hover {
    color: rgba(255,255,255,0.75);
  }
}











/* =========================
   EXPERIENCE PAGE
   ========================= */

.experience {
  /* padding: 4rem 0 5rem; */
  padding: 140px 0;
  padding-bottom: 0;
}

.experience__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience__intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.experience__intro p {
  color: var(--text-muted);
  line-height: 1.6;

  font-size: 1.2rem;
  color: rgba(10, 24, 40, 0.8);
  text-align: center;
}

/* EXPERIENCE LIST */
.experience__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* EXPERIENCE ITEM */
.experience-item {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 1.5rem;
  width: 4px;
  height: calc(100% - 5rem);
  background: linear-gradient(
    to bottom,
    var(--primary),
    rgba(18,73,214,0.2)
  );
  border-radius: 2px;
}

/* HEADER */
.experience-item__header {
  margin-bottom: 1.5rem;
}

.experience-item__header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.experience-item__company {
  font-weight: 500;
  color: var(--primary);
}

.experience-item__date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* DESCRIPTION */
.experience-item__summary {
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

/* RESPONSIBILITIES */
.experience-item__list {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.experience-item__list li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* STACK */
.experience-item__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.experience-item__stack span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  background: rgba(18,73,214,0.08);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .experience-item {
    padding: 2rem;
  }

  .experience-item::before {
    display: none;
  }
}

/* =========================
   HERO EXPERIENCE
   ========================= */
.hero--experience {
  position: relative;
  background-image: url("/images/experience/exp-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay oscuro (igual que certs) */
.hero--experience .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 40, 0.65); /* mismo tono que certs */
  z-index: 0;
}

/* Asegura que el contenido quede arriba */
.hero--experience .hero__content,
.hero--experience .nav {
  position: relative;
  /* z-index: 1; */
}





























/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image img {
    margin: 0 auto;
    width: 50%;
  }

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

  .about-highlight__wrapper {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .about-highlight__image {
    height: 260px;
  }

  .about-highlight__content {
    padding: 50px 40px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .nav__menu.active {
    padding-top: 55px;
    gap: 38px;
  }
}

    
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    /* inset: 0; */
    top: 0;
    right: -100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    width: 100%;
    gap: 80px;
    padding: 120px 32px;
    transition: right 0.3s ease;
    /* z-index: 6000; */
    z-index: 1000;
    display: flex;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__menu a {
    color: var(--black);
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__menu.active a {
    font-weight: 400;
    font-size: xx-large;
    /* letter-spacing: 1px; */
  }

  .nav__menu a.active {
    color: var(--black);
  }

  .nav__menu a:hover {
    color: #1249d6;
  }

  .nav__toggle {
    display: block;
    color: var(--white);
  }

  .certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  }

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

  .hero__content h1 {
    font-size: 2.2rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .apps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    /* padding-top: 50px; */
  }

  .apps-card__logo img {
    /* width: 100%; */
    max-width: 120px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    margin: 30px;
  }
}

/* Botón de búsqueda */
  .nav__search button {
    color: var(--black);
  } 

  .nav__search-icon {
    color: currentColor;
  }

@media (max-width: 480px) {

  .certs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

  .apps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    /* padding-top: 50px; */
  }

  .apps-card__logo img {
    /* width: 100%; */
    max-width: 80px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    margin: 10px;
  }
}

@media (max-height: 480px) {

  body {
    line-height: normal;
  }
}























/* =========================
   PROJECTS PAGE
   ========================= */

   .under_construction {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px;
  }