/* =============================
   1. VARIABLES + BASE
============================= */

:root {
  --font-heading: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-font-body: #272c35;
  --background-color: #f2e6d9;
  --background-soft: #efe2d2;
  --background-deep: #e7d7c4;
  --primary-yellow: #d19a1a;
  --primary-yellow-soft: #e0b451;
  --soft-color: #272c35;
  --soft-color-2: #3f4550;
  --hairline-color: #3f4550;
  --white-soft: #faf8f4;
  --overlay-dark: rgba(39, 44, 53, 0.68);
  --sidebar-width: 300px;
  --topbar-height: 42px;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
.fancybox__container {
  z-index: 999999 !important;
}

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scrollbar-width: none;
  background-color: var(--background-color);
  color: var(--color-font-body);
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.breadcrumb-nav {
  width: 100%;
  padding: 0 3rem;
  margin: 1rem auto 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(39, 44, 53, 0.52);
}

.breadcrumb-nav a {
  color: var(--soft-color);
}

.breadcrumb-nav span {
  color: var(--primary-yellow);
}

#breadcrumb a:hover {
  text-decoration: underline;
}


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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.5rem, 10vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 600;
  overflow-wrap: normal;
  word-break: keep-all;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  text-transform: capitalize;
  overflow-wrap: normal;
  word-break: keep-all;
}

h5 {
  font-size: 0.9rem;
}

p,
li {
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.title {
  font-size: clamp(1.75rem, 10vw, 8rem);
  line-height: 0.92;
}

/* =============================
   2. UTILITIES
============================= */
.col-6 > a {
  display: inline-block;
  width: fit-content;
}

#btn_menu {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#iconm {
  font-size: 2rem;
  color: var(--hairline-color);
}

#iconm:active {
  transform: scale(1.25);
  color: var(--primary-yellow);
}

.navMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 60vw;
  height: 100vh;
  background: var(--soft-color);
  opacity: 0.95;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
}

.navMenu.open {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.text-xs {
  font-size: 1rem;
  letter-spacing: 3px;
  line-height: 1rem;
  color: var(--primary-yellow);
  font-weight: 700;
}

.text-muted-foreground {
  color: #8c8c8c;
}

.uppercase {
  text-transform: uppercase;
}

.text-enfasis {
  color: var(--primary-yellow);
  letter-spacing: 0.05em;
}

.softColor {
  color: var(--soft-color);
}

.block {
  display: block;
}

.content {
  min-height: fit-content;
  padding: 6rem 0;
  scroll-margin-top: 1rem;
}

.line {
  width: 1px;
  background-color: rgba(63, 69, 80, 0.25);
}

.section-intro {
  max-width: 700px;
  margin-top: 1.2rem;
}

.t-border {
  width: min(1440px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0 5rem;
}

.secondary-main {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.secondary-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 2rem 3rem 3rem;

  background-image: url(images/projects/personal/backgound-1.png);
  background-position: center;
  background-size: cover;
}

.projects-hero {
  width: 100%;
  margin-bottom: 4rem;
}

.project-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.project-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-hero-content p {
  opacity: 0.7;
}

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.secondary-hero-copy {
  max-width: 760px;
  margin-top: 1.5rem;
  color: rgba(39, 44, 53, 0.82);
}

.secondary-divider {
  width: 100%;
  margin-top: 2rem;
  border-top: 1px solid rgba(63, 69, 80, 0.35);
}

.secondary-page .content {
  padding-top: 3rem;
}

/* =============================
   3. GLOBAL INTERACTIONS + ANIMATIONS
============================= */

button:hover,
a:hover,
.project-card:hover,
.archive-card:hover {
  cursor: pointer;
}

@keyframes blink {
  50% {
    background: transparent;
  }
}

@keyframes mosaicOut {
  to {
    opacity: 0;
  }
}

/* =============================
   4. REUSABLE COMPONENTS
============================= */

.btn {
  margin: 24px 12px 0 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(39, 44, 53, 0.2);
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  --bs-btn-color: var(--soft-color) !important;
}

.btn:hover {
  border-color: var(--soft-color);
}



.mosaic_btn {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: none;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.5s, letter-spacing 0.35s ease;
}

.mosaic_btn .line {
  position: absolute;
  z-index: 1;
  width: 2px;
  height: 50px;
  transform: scaleY(1);
  transition: transform 0.5s linear, top 1s linear, bottom 1s linear;
}

.mosaic_btn .line.top {
  top: 0;
  transform-origin: bottom;
}

.mosaic_btn .line.bottom {
  top: auto;
  bottom: 0;
  transform-origin: top;
}

/* =============================
   5. HEADER + TOP BAR
============================= */

#top_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--topbar-height);
  padding: 10px;
  background-color: var(--soft-color);
}

#link_note {
  font-weight: 200 !important;
  color: var(--primary-yellow);
}
#header-container {

  max-height: 100px;
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background-color);
}

#img_logoh {
  height: 5vh;
  width: auto;
}

.navbar,
.navbar-toggler {
  border: transparent;
}

/* =============================
   6. FOOTER
============================= */

#footer-container {
  width: 100%;
  margin-top: auto;
  padding: 0rem 1.5rem 0.75rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  width: 100%;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid rgba(63, 69, 80, 0.3);
}

.footer-brand-block,
.footer-nav-block,
.footer-social-block {
  display: flex;
  flex-direction: column;
}

.footer-logo-link img {
  width: auto;
  max-height: 74px;
  margin-bottom: 1rem;
}

.footer-signoff {
  max-width: 330px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(39, 44, 53, 0.8);
}

.footer-label {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-yellow);
}

.footer-links,
.footer-social-text {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-transform: capitalize;
}

.footer-links a,
.footer-social-text a {
  width: fit-content;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--soft-color);
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-social-text a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-links a:hover,
.footer-social-text a:hover {
  color: var(--primary-yellow);
  transform: translateX(3px);
}

.footer-icons {
  display: none;
}

/* =============================
   7. DESIGNER NOTES PAGE
============================= */

.dnotes {
  padding: 2rem 0;
}
.diag-img{
  height: 400px!important;
}

/* =============================
   DESIGNER NOTES REFINEMENT
   Only affects d_notes.html
============================= */

.notes-page-body .secondary-hero {
  padding-bottom: 4rem;
}

.notes-page-body .secondary-hero-copy {
  max-width: 700px;
}

.notes-page-body .notes-meta-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(320px, 560px);
  column-gap: clamp(4rem, 9vw, 11rem);
  row-gap: 2rem;
  align-items: start;
  width: min(100%, 980px);
  margin-top: 1.3rem;
}

.notes-page-body .notes-meta-card {
  min-width: 0;
}

.notes-page-body .notes-meta-card-right {
  max-width: 560px;
}
.notes-page-body .diagram-column,
.notes-page-body .sketch-stack {
  display: grid;
  gap: 2rem;
}

.notes-page-body .diag-card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(63, 69, 80, 0.08);
  backdrop-filter: blur(4px);
}

.notes-page-body .diag-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.notes-page-body .diag-card p {
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.notes-page-body .diag-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 0;
  object-fit: contain;
}

.notes-page-body .sketch-card .diag-img {
  max-height: 320px;
}

.notes-page-body .diagram-svg {
  max-width: 100%;
  margin: 2rem auto 0;
  opacity: 0.8;
}

.notes-page-body .diagram-svg svg {
  width: 100%;
  height: auto;
  display: block;
}

/* image used for the navigation/menu explanation */
.notes-page-body .diagram-column .diag-card:first-child .diag-img {
  max-height: 520px;
  object-fit: contain;
}

/* 404 card image */
.notes-page-body .sketch-stack .diag-card:last-child .diag-img {
  max-height: 360px;
  object-fit: contain;
}

/* responsive */

/* responsive */
@media (max-width: 900px) {
  .notes-page-body .notes-meta-layout {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
    gap: 1.25rem;
  }

  .notes-page-body .notes-meta-card-right {
    max-width: 100%;
  }

  .notes-page-body #notes_intent,
  .notes-page-body #notes_decisions {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .notes-page-body #sec_diag {
    width: calc(100% - 1.5rem);
    gap: 1.25rem;
  }

  .notes-page-body .diagram-column,
  .notes-page-body .sketch-stack {
    gap: 1.25rem;
  }

  .notes-page-body .diag-card h3 {
    font-size: 0.95rem;
  }

  .notes-page-body .diag-card p {
    font-size: 0.9rem;
  }
}

.notes-page-body .diagram-svg svg {
  width: 100%;
  height: auto;
  display: block;
}

/* image used for the navigation/menu explanation */
.notes-page-body .diagram-column .diag-card:first-child .diag-img {
  max-height: 520px;
  object-fit: contain;
}

/* 404 card image */
.notes-page-body .sketch-stack .diag-card:last-child .diag-img {
  max-height: 360px;
  object-fit: contain;
}

/* responsive */
@media (max-width: 900px) {
  .notes-page-body #sec_diag {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 2rem));
    margin-top: 3rem;
  }

  .notes-page-body .diag-card {
    padding: 1.25rem;
  }

  .notes-page-body .sketch-card .diag-img,
  .notes-page-body .diagram-column .diag-card:first-child .diag-img,
  .notes-page-body .sketch-stack .diag-card:last-child .diag-img {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .notes-page-body #sec_diag {
    width: calc(100% - 1.5rem);
    gap: 1.25rem;
  }

  .notes-page-body .diagram-column,
  .notes-page-body .sketch-stack {
    gap: 1.25rem;
  }

  .notes-page-body .diag-card h3 {
    font-size: 0.95rem;
  }

  .notes-page-body .diag-card p {
    font-size: 0.9rem;
  }
}
/* =============================
   8. HOME / INTRO / HERO
============================= */

#intro {
  display: block;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-position: top;
  background-image: url(/images/projects/personal/backgound-1.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.home-page .cont_index {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
  min-height: calc(100vh - var(--topbar-height));
  margin-left: var(--sidebar-width);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.con_hero {
  display: grid;
  grid-template-columns: minmax(0, 50%) 10%;
  grid-auto-rows: min-content;
  align-content: flex-end;
  justify-content: start;
  gap: 50px;
  width: 100%;
  padding: clamp(20px, 5vw, 3rem);
}

.con_hero_sub {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: left;
  max-width: 760px;
  padding: 2rem;
  text-align: left;
}

.con_hero_sub h1 {
  font-size: clamp(2.25rem, 8vw, 10rem);
}

.chat_hero {
  min-height: 120px;
}

.chat_hero h2 {
  font-size: clamp(1rem, 5vw, 3rem);
}

#typewriter_hero {
  white-space: normal;
  word-break: break-word;
}

.hero_text {
  z-index: 1;
  max-height: 800px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}



/* =============================
   9. MENUS / NAVIGATION
============================= */

#menu_dtk {
  position: absolute;
  padding-top: var(--topbar-height);
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  z-index: 20;
  background: var(--background-color);
}

.sec_menu22 {
  display: flex;
  gap: 1.25rem;
  padding: 0;
}

.sec_menu {
  display: flex;
  flex-direction: column;
  padding: 35px;
  padding-top: 5em;
  text-align: left;
}



.div_menu_home {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-width: 300px;
  height: 100vh;
  padding-right: 1rem;
  text-align: right;
  border-right: 0.25px solid rgba(63, 69, 80, 0.35);
}

.div_menu_home .m_text,
.div_menu_home i {
  font-size: 1.65rem;
  font-weight: 100;
}

/*-------------logo*/


#logo_container {
  position: relative;
  width: 140px;
  height: 420px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

#logo_container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* base */
.logo-base {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-color {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

/* HOVER (preview) */
#logo_container:hover .logo-base {
  opacity: 0;
}



.logo-mosaic .line {
  position: absolute;
  z-index:9999;
  width: 2px;
  height: 35px;
  background: var(--background-color);
  pointer-events: none;
  opacity: 0.9;
  transition: top 0.35s linear, bottom 0.35s linear, opacity 0.25s ease;
}
.logo-mosaic .line {
  mix-blend-mode: overlay;
}
.logo-mosaic .line.top {
  top: 0;
}

.logo-mosaic .line.bottom {
  bottom: 0;
}

.logo-color {
  transform-origin: center;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.logo-mosaic:hover .logo-color {
  opacity: 1;
  transform: scale(1.04);
}

.logo-mosaic:hover .logo-color {
  opacity: 1;
  animation: logoStretch 0.35s ease forwards;
}

@keyframes logoStretch {
  0% {
    transform: scaley(1);
  }

  55% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}
/*---------links*/

.nav-link {
  margin-bottom: 1.5rem;
}

.m_text {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.3s ease, color 0.3s ease;
}

.m_text:hover {
  color: var(--primary-yellow);
}

.m_off_text {
  color: var(--background-color);
}

/* =============================
   10. PROJECTS SECTION
============================= */

#projects {
  align-content: flex-start;
  background-color: var(--soft-color);
  color: var(--background-color);
}

.projects-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

#p_container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  color: var(--background-color);
}

.projects-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(100%, 1380px);
  padding: 2rem 3rem 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  width: 100%;
  padding: 0 0 1rem;
  background: transparent;
  text-transform: none;
}

.project-thumb,
.archive-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.project-thumb {
  position: relative;
  height: 420px;
  aspect-ratio: 4 / 5;
  transition: transform 0.28s ease;
}

.archive-thumb {
  height: 260px;
}

.project-thumb img,
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-card:hover .project-thumb {
  transform: translateY(-4px);
}

.project-card:hover .project-thumb img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(39, 44, 53, 0.88), rgba(39, 44, 53, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 230, 217, 0.62);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white-soft);
}

.project-stack {
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(242, 230, 217, 0.76);
}

.projects-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-font-body);
  background-color: var(--primary-yellow);
  transition: color 0.25s ease, border-color 0.25s ease;
  border-color: var(--primary-yellow);
  border-radius: 0;
}

.projects-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
  color: var(--primary-yellow);
  background-color: transparent;
  border-color: var(--primary-yellow);
}

.projects-cta {
  padding-top: 2rem;
  text-align: center;
 
}

@media (max-width: 1024px) {
  .projects-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 2rem;
  }
}

@media (max-width: 790px) {
  .projects-featured-grid {
    grid-template-columns: 1fr;
    width: 100%;
    padding-inline: 2rem;
    justify-items: center;
  }

  .project-card {
    width: min(100%, 360px);
  }

  .project-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }

}

/* =============================
   11. PROJECTS ARCHIVE PAGE
============================= */

.projects-page-main {
  padding-bottom: 3rem;
 
}

.projects-archive-grid {
  
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(63, 69, 80, 0.12);
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 69, 80, 0.25);
}

.archive-thumb {
  height: 280px;
  background: rgba(255, 255, 255, 0.22);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
}

.archive-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.25rem;
}

.archive-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-yellow);
}

.archive-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.archive-copy p {
  margin: 0;
  font-size: 1rem;
  color: rgba(39, 44, 53, 0.82);
}

.project-hero-card {
  display: flex;
  flex-direction: column;
}
.archive-links {
  display: flex;
  justify-content: flex-end;
  margin-top: auto; 
}

.icon-circle i {
  color: var(--hairline-color);
  transition: transform 0.3s ease;
  font-size: 1.5rem;

}

.icon-circle {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition: all 0.3s ease;
}

/* cuando haces hover en la card */
.archive-card:hover .icon-circle {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.archive-card:hover .icon-circle {
  opacity: 1;
  display: flex;
  border-color: var(--primary-yellow);
}

.archive-card:hover .icon-circle i {
  display: flex;
  transform: rotate(-45deg);
}

/* =============================
   12. RESUME / ABOUT
============================= */

.resume-page-body .secondary-main {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
}

#aboutme {
  
  min-height: 100vh;
}

.resume-hero {
  padding-bottom: 2rem;
  background-position: center;
  background-size: cover;

}

.resume-hero h1 {
  
  margin-top: 0.35rem;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--soft-color);
}

.resume-summary {
  max-width: 760px;
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(39, 44, 53, 0.78);
  
}

.resume-intro-block {
  
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.resume-contact-card {
  width: 100%;
  max-width: 760px;
}

.resume-contact-inner {
  display: grid;
  gap: 0.9rem;
}

.resume-name {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--soft-color);
}

.resume-contact-lines {
  display: grid;
  gap: 0.25rem;
}

.resume-contact-lines p,
.resume-contact-lines a {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(39, 44, 53, 0.82);
}

.resume-website {
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
}

.resume-website:hover {
  color: var(--primary-yellow);
  transform: translateX(2px);
}

.resume-actions {
  display: flex;
  align-items: center;
}

.resume-download {
  display: inline-flex;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft-color);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.resume-download:hover {
  transform: translateY(-2px);
  border-color: var(--soft-color);
  color: var(--primary-yellow);
}

.resume-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

#skills_section {
  max-width: none;
}

#titles_col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 2rem;
  border-right: 1px solid rgba(63, 69, 80, 0.18);
}

.title_item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.2rem 0;
  background: transparent;
  border: none;
  text-align: left;
  color: rgba(39, 44, 53, 0.45);
  transition: color 0.25s ease, transform 0.25s ease;
}

.title_item:hover {
  color: var(--soft-color);
}

.title_item.selected {
  color: var(--soft-color);
  transform: translateX(4px);
}

.title_dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(39, 44, 53, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}

.title_item.selected .title_dot {
  background: var(--soft-color);
  transform: scale(1.1);
}

.title_label {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

#desc_col {
  min-height: 420px;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(63, 69, 80, 0.08);
  background-color: rgba(255, 255, 255, 0.28);
}

#desc_content {
  display: grid;
  gap: 2rem;
}

.resume-block {
  display: grid;
  gap: 1.5rem;
}

.resume-entry {
  display: grid;
  gap: 0.45rem;
}

.resume-entry + .resume-entry {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(63, 69, 80, 0.08);
}

.resume-entry h3 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: none;
  color: var(--soft-color);
}

.resume-subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(39, 44, 53, 0.8);
}

.resume-date {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(39, 44, 53, 0.55);
}

.resume-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.resume-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(39, 44, 53, 0.84);
}

.wrap {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* =============================
   13. PROJECT DETAIL PAGE
============================= */


.project-detail-main {
  padding-bottom: 3rem;
}

.project-detail-shell {
  display: grid;
  gap: 2.5rem;
}

/* ===== HEADER ===== */

.project-detail-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(63, 69, 80, 0.2);
}

.project-head-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-summary {
  max-width: 760px;
}

.project-head-meta {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.meta-block h5 {
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(39, 44, 53, 0.6);
}

.meta-block p {
  margin: 0;
  font-size: 0.98rem;
}

/* ===== LAYOUT ===== */

.project-layout {
  display: block;
}

.project-case-grid {
  margin-top: 5rem;
  display: grid;
  gap: 4rem;
}

/* ===== CASE STUDY ROW ===== */

.project-case-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(63, 69, 80, 0.15);
}

/* ===== TEXT BLOCK (EDITORIAL STYLE) ===== */

.project-case-text {
  display: block;
  max-width: 760px;
}

.project-case-number {
  color: var(--primary-yellow);
  font-weight: 700;
}

.project-case-text h5 {
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d69a00;
  margin-bottom: 1.4rem;
}

.project-case-text p {
  line-height: 1.5;
  max-width: 60ch;
  color: var(--hairline-color);
}

/* ===== IMAGES ===== */

.project-case-images {
  column-count: 2;      /* número de columnas */
  column-gap: 1rem;
}

.project-case-images img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;  /* 🔥 evita que se corten */
  display: block;
}

/* ===== TECH / LINKS ===== */

.tech-inline {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(63, 69, 80, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

/* ===== FINAL BLOCK ===== */

.project-final-block {
  padding: 2rem 0;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .project-detail-head {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .project-case-images {
    column-count: 1;
  }
}
@media (max-width: 768px) {
  .project-case-row {
    grid-template-columns: 1fr;
  }
}
/* =============================
   14. SKILLS SECTION
============================= */

#skills {
  display: grid;
  align-content: flex-start;
  /*background-color: var(--background-soft);*/
  background-image: url(/images/projects/personal/backgound-1.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#lnk_skills {
  color: var(--soft-color);
}

.skills-grid {
  display: flex;
  gap: 0.5rem;
  width: min(1440px, 100%);
  height: 600px;
  margin: 0 auto;
  padding: 3rem 5rem 0;
}

.skill {
  position: relative;
  flex: 2;
  overflow: hidden;
  cursor: pointer;
  background: var(--primary-yellow);
  transition: flex 0.5s ease;
}

.skill.active {
  flex: 3;
  background: var(--soft-color);
  color: var(--primary-yellow);
}

.skill-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-overlay span {
  transform: rotate(270deg); 
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2vw, 2.15rem );
  letter-spacing: 5px;
  text-align: center;
}

.skill.active .skill-overlay {
  opacity: 0;
}

.skill-inner {
  display: grid;
  align-content: center;
  height: 100%;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.2s ease 0.15s;
}

.skill.active .skill-inner {
  opacity: 1;
}

/* =========================
   THINKING SECTION
========================= */

.thinking-section {
  position: relative;
  background-image: url("./images/projects/personal/backgound-1.png");
  overflow: hidden;
}

.thinking-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.45fr;
  gap: 4rem;
  align-items: center;
}

.thinking-copy span {
  color: var(--primary-yellow);
}

.thinking-copy h2 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  color: var(--soft-color);
}

.thinking-copy p {
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(39, 44, 53, 0.78);
}

.thinking-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.process-step span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--primary-yellow);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--soft-color);
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(39, 44, 53, 0.72);
}

.process-arrow {
  display: none;
}

.thinking-links {
  display: grid;
  gap: 1.4rem;
  border-left: 1px solid rgba(39, 44, 53, 0.18);
  padding-left: 2rem;
}

.thinking-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: fit-content;
  text-decoration: none;
  color: var(--soft-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

.thinking-link span {
  color: var(--primary-yellow);
  transition: transform 0.25s ease;
}

.thinking-link:hover {
  color: var(--primary-yellow);
  transform: translateX(3px);
}

.thinking-link:hover span {
  transform: translateX(5px);
}

/* responsive */
@media (max-width: 1000px) {
  .thinking-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .thinking-links {
    border-left: none;
    border-top: 1px solid rgba(39, 44, 53, 0.18);
    padding-left: 0;
    padding-top: 2rem;
  }
}

@media (max-width: 600px) {
  .thinking-inner {
    width: min(100% - 2rem, 520px);
    padding: 4rem 0;
  }

  .thinking-process {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .thinking-copy h2 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }


}


/* =========================
   SHARED SPLIT SECTION HEAD
========================= */

.section-split-head {
  display: grid;
  gap: 4rem;

}
.section-split-head {
  align-items: flex-end;
}

.section-split-head p {
  border-left: 2px solid rgba(209, 154, 26, 0.7);
  padding-left: 1.5rem;
  max-width: 420px;
  margin: 0;
}

.section-title-compact {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  max-width: 700px;
}


/* PROJECTS HEADER ADJUSTMENT */

#projects .section-split-head {
  padding-bottom: 1rem;
}

#projects .section-split-head p {
  color: rgba(242, 230, 217, 0.75);
}

/* responsive */

@media (max-width: 790px) {
  .section-split-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title-compact {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .section-split-head p {
    border-left: none;
    border-top: 2px solid rgba(209, 154, 26, 0.7);
    padding-left: 0;
    padding-top: 1rem;
  }
}

/* ========================= VISUAL NOTES SECTION ========================= */
.visual-notes-section { 
  background: var(--soft-color); 
  color: var(--background-color); 
  overflow: hidden; 
} 

.visual-notes-shell { 
  width: min(1440px, 100%); 
  margin: 0 auto; 
} 

/* Header Area */
.visual-notes-head { 
  padding: 0 5rem 2rem; 
} 

.visual-notes-head span { color: var(--primary-yellow); } 
.visual-notes-head h2 { color: var(--background-color); } 
.visual-notes-head p { 
  max-width: 520px; 
  margin: 0; 
  color: rgba(242, 230, 217, 0.72); 
  line-height: 1.7; 
} 

/* Fast, Lightweight Column Masonry */
.visual-notes-masonry { 
  column-count: 3;
  column-gap: 1rem;
  width: min(100%, 1380px); 
  margin: 0 auto; 
  padding: 1rem 3rem 0; 
} 

.visual-note { 
  display: inline-block; /* Crucial for column layout wrapping */
  width: 100%; 
  margin-bottom: 1rem; /* Controls vertical gap between items */
  break-inside: avoid; /* Prevents an item from splitting across columns */
  position: relative; 
  overflow: hidden; 
  background: rgba(255, 255, 255, 0.045); 
  transition: transform 0.28s ease, opacity 0.28s ease; 
} 

.visual-note img { 
  width: 100%; 
  height: auto; /* Respects native aspect ratio without stretching */
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease; 
} 

/* Hover FX */
.visual-note:hover { transform: translateY(-4px); } 
.visual-note:hover img { transform: scale(1.035); opacity: 0.88; } 

/* Simplified, Fluid Responsiveness */
@media (max-width: 1024px) { 
  .visual-notes-head { padding-inline: 2rem; } 
  .visual-notes-masonry { column-count: 3; padding-inline: 2rem; } 
} 

@media (max-width: 790px) { 
  .visual-notes-head .section-title-wrap { 
    border-right: none; 
    border-bottom: 1px solid rgba(209, 154, 26, 0.7); 
    padding-bottom: 1rem; 
  } 
  .visual-notes-masonry { column-count: 2; gap: 0.85rem; } 
} 

@media (max-width: 480px) { 
  .visual-notes-head, .visual-notes-masonry { padding-inline: 1.5rem; } 
  .visual-notes-masonry { column-count: 1; } 
}

/* =============================
   15. CONTACT SECTION
============================= */

#contact {
  display: grid;
  align-content: flex-start;
   background: rgba(255, 255, 255, 0.22);
}

.wrap_form {
  justify-self: stretch;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 3rem 5rem 0;

}

.contForm {
  width: min(100%, 620px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 650px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(63, 69, 80, 0.14);
  background: var(--background-color);
 /* background: rgba(255, 255, 255, 0.22);*/
}

.contact-side-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-yellow);
}

.contact-side-text {
  margin: 0;
  font-size: 1rem;
  color: rgba(39, 44, 53, 0.8);
}

label {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--soft-color);
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 0;
  color: var(--soft-color);
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(63, 69, 80, 0.25);
  transition: all 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-width: 3px;
  border-bottom-color: var(--soft-color);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit {
  margin: 0;
}

.contact-divider {
  height: 340px;
}



.contact-side-copy {
  width: min(100%, 420px);
  padding: 0 1rem;
  text-align: left;
}

/* =============================
   16. POPUP + CHAT
============================= */

#pop_up {
  position: fixed;
  inset: 0;
  z-index: 500000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

#pop_up.active {
  display: flex;
}

.thank-you-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(92vw, 520px);
  padding: 2rem 1.6rem;
  background-color: var(--background-color);
  border: 1px solid rgba(63, 69, 80, 0.14);
  text-align: center;
}

.thank-you-brand img {
  width: auto;
  max-height: 85px;
  margin-bottom: 1rem;
}

.thank-you-kicker {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-yellow);
}

.closeBtn {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 500px;
  height: auto;
  padding: 0 2rem;
}

.chat h2,
.chat p,
.chat h3 {
  margin-top: 1rem;
}

#typewriter {
  display: inline-block;
  transform: translateX(0);
  color: #d0a32b;
  text-transform: uppercase;
}

h2 .cursor {
  display: inline-block;
  width: clamp(2px, 0.2vw, 5px);
  height: clamp(1.75rem, 5vw, 3.5rem);
  margin-left: 2px;
  vertical-align: bottom;
  background: var(--soft-color);
  animation: blink 0.7s step-end infinite;
}

/* =============================
   17. MOBILE MENU BUTTON
============================= */

#mobile-menu-btn {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

#mobile-menu-btn i {
  font-size: 1.6rem;
  color: var(--hairline-color);
}

#mobile-menu-btn i:hover {
  color: var(--primary-yellow);
}



/* =============================
   18. RESPONSIVE
============================= */

/* =============================
   RESUME RESPONSIVE
============================= */

@media (max-width: 1024px) {
  .resume-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
  }

  #desc_col {
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .resume-page-body .secondary-main {
    width: min(100%, calc(100% - 2rem));
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  #titles_col {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(63, 69, 80, 0.18);
  }

  .title_item {
    width: auto;
    padding: 0.15rem 0;
  }

  #desc_col {
    min-height: auto;
    padding: 1.5rem;
  }

  .resume-entry h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .resume-summary {
    font-size: 1rem;
  }

  .resume-download {
    width: 100%;
    justify-content: center;
  }

  #desc_col {
    padding: 1.25rem;
  }
}


/* @media (min-width: 875px) {
  .home-page #header-container {
    display: none;
  }
} */

@media (max-width: 1024px) {


  .projects-archive-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .project-detail-head,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-info-card,
  .project-gallery {
    position: static;
  }
}

@media (max-width: 874px) {
  .home-page #menu_dtk {
    display: none;
  }

  .home-page .cont_index {
    margin-left: 0;
    min-height: fit-content;
  }

  .home-page #header-container {
    display: block;
  }
}

@media (max-width: 790px) {
  .content {
    padding: 4rem 0;
  }

  .cont_index {
    min-height: fit-content;
  }

  .con_hero {
    display: block;
   }

  .con_hero_sub {
    padding: 0;
  }

  .chat_hero {
    min-height: 90px;
    text-align: left;
  }

  .t-border {
    width: 100%;
    padding: 0 2rem;
  }



  .skills-grid {
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 2rem 2rem 0;
  }

  .skill {
    min-height: 140px;
  }

  .skill-overlay span {
    transform: rotate(0deg);
  } 

  .wrap_form {
    flex-direction: column;
    width: 100%;
    gap: 2rem !important;
    padding: 2rem 2rem 0;
  }

  .contact-divider {
    display: none;
  }

  .contact-card {
    min-height: auto;
    padding: 1.5rem;
  }

  .chat,
  .contact-side-copy {
    width: 100%;
    padding: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-social-text {
    display: none;
  }

  .footer-icons {
    display: flex;
    gap: 1.4rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-image {
    min-height: 360px;
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  #titles_col {
    width: 100%;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(63, 69, 80, 0.3);
  }

  #skills_section {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .t-border,
  .skills-grid,
  .wrap_form {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}


@media (min-width: 875px) {
  .home-page #header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 99999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .home-page #header-container.show-project-header {
    opacity: 1;
    pointer-events: auto;
  }

  .home-page #header-container header,
  .home-page #header-container nav,
  .home-page #header-container > * {
    background: var(--background-color);
  }
}

body:not(.home-page) #header-container {
  display: block;
  position: static;
  opacity: 1;
  pointer-events: auto;
}

/*---------------*/
/* project descript
-------------------*/
.color-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(39, 44, 53, 0.2);
}

.color-row p {
  margin: 0;
}

.color-row small {
  font-size: 0.8rem;
  color: rgba(39, 44, 53, 0.6);
}

#sec_diag {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.diag-card-featured {
  min-height: 100%;
}

.diag-card-featured .diag-img {
  width: 100%;
  max-width: none;

}

.sketch-stack {
  display: grid;
  gap: 1.5rem;
}

.sketch-card .diag-img {
  max-height: 260px;
  object-fit: contain;
}

@media (max-width: 900px) {
  #sec_diag {
    grid-template-columns: 1fr;
  }
}

.img-thum {
  height: 400px;
  width: 100%;
  object-fit: contain;
}

.diagram-svg {
  max-width: 100%;
  margin: 10rem auto 0;
  opacity: 0.75;
}

.diagram-svg svg {
  width: 100%;
  height: auto;
  display: block;
}



/*-------------THEME Experiment
-----------------*/

/*  ESTADO ACTIVO (SIEMPRE POR ENCIMA DEL HOVER) */
body.brand-mode #logo_container .logo-base {
  opacity: 0 !important;
}

body.brand-mode #logo_container .logo-color {
  opacity: 1 !important;
}

body.brand-mode {
  --background-color: #0f1633;
  --background-soft: #111b3d;
  --background-deep: #0a1028;
  --color-font-body: #f2e6d9;
  --soft-color: #f2e6d9;
  --soft-color-2: #d8c7b5;
  --hairline-color: #f2e6d9;
  --primary-yellow: #d19a1a;
}

body.brand-mode #intro,
body.brand-mode .home-page .cont_index,
body.brand-mode #menu_dtk,
body.brand-mode .div_menu_home,
body.brand-mode #header-container,
body.brand-mode header {
  background-color: var(--background-color);
  
 
}

body.brand-mode .text-enfasis{
  color: var(--color-font-body)!important;
}
body.brand-mode #intro,
body.brand-mode #menu_dtk {
  background-blend-mode: soft-light;

}
body.brand-mode {
  background-color: #0f1633;
}

body.brand-mode .m_text,
body.brand-mode .div_menu_home i,
body.brand-mode .hero_text,
body.brand-mode p,
body.brand-mode h1,
body.brand-mode h2,
body.brand-mode h3 {
  color: var(--color-font-body);
}

body.brand-mode .div_menu_home {
  border-right-color: rgba(242, 230, 217, 0.25);
}
body.brand-mode #top_bar {
  background-color: var(--primary-yellow);
  color: #0f1633;
  transition: background 0.3s ease, color 0.3s ease;
}

body.brand-mode #top_bar a{
  color: #0f1633;
  transition: background 0.3s ease, color 0.3s ease;
}

body.brand-mode section,
body.brand-mode .content,
body.brand-mode .projects-shell,
body.brand-mode .skills-grid,
body.brand-mode .wrap_form,
body.brand-mode footer {
  background-color: var(--background-color) !important;
}

body.brand-mode form{
  background-color: #d9c4841e !important;
}
body.brand-mode * {
  color: var(--color-font-body);
}

body.brand-mode .projects-btn,
body.brand-mode .btn {
  background-color: var(--primary-yellow);
  color: #0f1633;
}

body.brand-mode #intro {
  background-color: #0f1633 !important;
}

body.brand-mode span {
  color: var(--primary-yellow)!important;
}

body.brand-mode #intro * {
  color: #f2e6d9;
}

/* CONTENEDOR */
body.brand-mode #skills {
  background-color: var(--background-color);
  background-blend-mode: soft-light;
}
body.brand-mode .skills-grid{
  background-color: var(--background-color)!important;
}

/* CARDS */
body.brand-mode .skill  {
  background-color: transparent;

}

/* TEXTO */
body.brand-mode #skills h1,
body.brand-mode #skills h2,
body.brand-mode #skills p,
body.brand-mode #skills li {
  color: var(--color-font-body);
}

/* HEADER EN BRAND MODE */
body.brand-mode header,
body.brand-mode #header-container,
body.brand-mode #header-container header {
  background-color: var(--background-color) !important;
  border-bottom-color: rgba(242, 230, 217, 0.25) !important;
}

body.brand-mode header .nav-link,
body.brand-mode #header-container .nav-link {
  color: var(--color-font-body) !important;
}

/* LOGO HORIZONTAL */
body.brand-mode #img_logoh, body.brand-mode #img_footer {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* HAMBURGER */
body.brand-mode #iconm {
  color: var(--color-font-body) !important;
}

/* MENÚ MÓVIL ABIERTO */
body.brand-mode .navMenu {
  background-color: var(--background-deep) !important;
}

body.brand-mode footer .footer-icons a,
body.brand-mode footer .footer-icons a span {
  color: var(--color-font-body) !important;
}

body.brand-mode .navMenu a,
body.brand-mode .m_off_text {
  color: var(--color-font-body) !important;
}

/* FOOTER */
body.brand-mode #footer-container,
body.brand-mode .site-footer {
  background-color: var(--background-color) !important;
  color: var(--color-font-body) !important;
}

body.brand-mode .footer-links a,
body.brand-mode .footer-social-text a,
body.brand-mode .footer-signoff {
  color: var(--color-font-body) !important;
}

body.brand-mode .footer-label {
  color: var(--primary-yellow) !important;
}

body.brand-mode .secondary-hero {
  background-color: var(--background-color) !important;
  background-blend-mode: soft-light;
}

body.brand-mode .secondary-hero h1,
body.brand-mode .secondary-hero h2,
body.brand-mode .secondary-hero h3,
body.brand-mode .secondary-hero p {
  color: var(--color-font-body) !important;
}

body.brand-mode .secondary-hero .text-xs,
body.brand-mode .secondary-hero span {
  color: var(--primary-yellow) !important;
}
body.brand-mode .diagram-svg {
  opacity: 0.9;
  background: rgba(242, 230, 217, 0.04);
  padding: 2rem;
}

body.brand-mode .diagram-svg svg {
  filter: invert(1) brightness(1.4);
}
/*---------------------------------------------------------------*/
