/* Estilos personalizados del portafolio (unificado) */

@font-face {
  font-family: "Futura Book";
  src: url("assets/fonts/FutuBk__.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura Heavy";
  src: url("assets/fonts/FutuHv__.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --default-font: "Futura Book", system-ui, sans-serif;
  --heading-font: "Futura Heavy", "Futura Book", system-ui, sans-serif;
  --nav-font: "Futura Heavy", "Futura Book", system-ui, sans-serif;

  /* Fondo / texto invertidos (azules de acento sin cambios) */
  --background-color: #e7f2f7;
  --default-color: #101a20;
  --heading-color: #101a20;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #101a20;
  --nav-mobile-background-color: #dce8ef;
  --nav-dropdown-background-color: #f5fafc;
  --nav-dropdown-color: #101a20;
}

.light-background {
  --background-color: #dce8ef;
  --surface-color: #325264;
}

.dark-background {
  --background-color: #f0f5f8;
  --default-color: #101a20;
  --heading-color: #101a20;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

.scrolled .header {
  --background-color: rgba(231, 242, 247, 0.95);
}

html {
  scroll-padding-top: 56px;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity 0.9s ease;
}

.intro-splash.is-exiting {
  opacity: 0;
  pointer-events: none;
}

body.intro-locked {
  overflow: hidden;
}

.intro-quote {
  max-width: 800px;
  margin: 0;
  padding: 0 1.5rem;
  color: #fff;
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-quote p {
  margin: 0;
}

.intro-quote footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
}

.intro-quote-mark {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 3rem;
  font-style: normal;
  color: var(--accent-color);
}

.header {
  padding: 8px 0;
}

@media (min-width: 1200px) {
  .navmenu > ul > li {
    padding: 4px 16px 4px 0;
  }

  .navmenu a,
  .navmenu a:focus {
    font-size: 14px;
  }

  .navmenu a:hover:before,
  .navmenu li:hover > a:before,
  .navmenu .active:before {
    visibility: hidden !important;
    width: 0 !important;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-color) !important;
  }
}

@media (max-width: 1199px) {
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-color) !important;
  }
}

@media (min-width: 992px) {
  #hero.hero.section {
    min-height: calc(100svh - 52px);
    padding: 1rem 0 1.25rem;
    scroll-margin-top: 52px;
  }

  #hero .hero-content h1 {
    font-size: 2.85rem;
    margin-bottom: 0.5rem;
  }

  #hero .hero-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
  }

  #hero .hero-content p {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  #hero .hero-actions {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

  #hero .hero-actions .btn {
    padding: 9px 22px;
    font-size: 0.95rem;
  }

  #hero .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  #hero .row.gy-4 {
    --bs-gutter-y: 0.75rem;
  }

  .hero .hero-image .floating-elements .floating-card {
    padding: 12px 16px;
  }
}

.link-highlight {
  margin-left: 8px;
  font-weight: 500;
  color: blue;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-highlight:hover {
  color: blueviolet;
  text-decoration: underline;
}

.highlight {
  color: #2196f3;
  font-weight: 700;
  font-size: 1.05em;
}

.tech-icons {
  margin: 8px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tech-icons i {
  font-size: 40px;
  width: 40px;
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.tech-icons img:hover {
  transform: scale(1.1);
}

.tech-icon {
  width: 40px;
  height: 40px;
}

.tech-icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.65);
  width: 50px;
  height: 40px;
  border-radius: 50%;
  padding: 1px;
}

.img-container {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.just,
.j {
  text-align: justify;
}

.just {
  height: 4rem;
}

#contact.contact-compact {
  padding: 40px 0 45px;
}

#contact.contact-compact .section-title {
  padding-bottom: 20px;
}

#contact .contact-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

#contact .contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#contact a.contact-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 45%);
}

#contact a.contact-card:hover p {
  color: var(--accent-color);
}

#contact .contact-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
}

#contact .contact-card-icon i {
  font-size: 1.15rem;
  color: var(--accent-color);
}

#contact .contact-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading-color);
}

#contact .contact-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--default-color);
  word-break: break-word;
  transition: color 0.2s ease;
}

.hero .hero-image .floating-elements .floating-card span {
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 9rem;
}

.hero .hero-image .floating-elements .floating-card.skill-improve {
  top: 8%;
  right: -12%;
  animation-delay: 0s;
}

.hero .hero-image .floating-elements .floating-card.skill-communication {
  bottom: 12%;
  left: -15%;
  animation-delay: 0.75s;
}

.hero .hero-image .floating-elements .floating-card.skill-team {
  bottom: 12%;
  right: -10%;
  animation-delay: 1.5s;
}

.hero .hero-image .floating-elements .floating-card.skill-commitment {
  top: 8%;
  left: -12%;
  animation-delay: 2.25s;
}

.services.stack-simple {
  padding: 40px 0 50px;
}

.services.stack-simple .section-title {
  padding-bottom: 24px;
}

.stack-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 15px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 15px;
  background: color-mix(in srgb, var(--background-color), transparent 20%);
  transition: transform 0.2s ease;
}

.stack-item:hover {
  transform: scale(1.03);
}

.stack-item span {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.stack-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

#portfolio .section-title {
  padding-bottom: 24px;
}

#portfolio .portfolio-heading,
#services .section-title h2,
#resume .section-title h2,
#contact .section-title h2 {
  color: var(--accent-color);
}

#resume .resume-split {
  align-items: stretch;
}

#resume .resume-panel {
  padding: 2rem 1.75rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

#resume .resume-panel-education {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

#resume .resume-panel-experience {
  background: #1a2630;
  color: #e8eef2;
}

#resume .resume-panel-experience .resume-title,
#resume .resume-panel-experience article h4 {
  color: #ffffff;
}

#resume .resume-company-link {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-color), transparent 35%);
  transition: color 0.2s ease, border-color 0.2s ease;
}

#resume .resume-company-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

#resume .resume-panel-experience article h5 {
  background: color-mix(in srgb, var(--accent-color), transparent 55%);
  color: #ffffff;
}

#resume .resume-panel-experience .institution,
#resume .resume-panel-experience .company {
  color: color-mix(in srgb, #ffffff, transparent 30%);
}

#resume .resume-panel-experience article p,
#resume .resume-panel-experience article ul,
#resume .resume-panel-experience article ul li {
  color: color-mix(in srgb, #ffffff, transparent 12%);
}

#resume .resume-panel-experience .resume-content {
  border-left-color: color-mix(in srgb, var(--accent-color), transparent 35%);
}

#resume .resume-panel-experience article::before {
  background: #1a2630;
  border-color: var(--accent-color);
}

@media (min-width: 992px) {
  #resume .resume-panel {
    margin-bottom: 0;
  }
}
