@font-face {
  font-family: 'Citrica';
  src: url('../fonts/Citrica-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ============================================================
   RESET & VARIABLES
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #111010;
  --cream:        #f4f0e8;
  --text-dark:    #111010;
  --text-light:   #f0ece4;
  --text-muted:   #8c8882;
  --accent:       #c9a87c;
  --soft-gold:    #d1c5b7;
  --medium-gold:  #baa380;
  --dark-gold:    #b1946e;
  --border-light: rgba(26, 24, 20, 0.12);
  --border-dark:  rgba(255, 255, 255, 0.08);
  --nav-h:        72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
.cursor {
  width: 8px; height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s ease, height .15s ease, background .2s ease;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(240, 236, 228, .35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, border-color .2s ease;
}
.cursor.dark        { background: var(--text-dark); }
.cursor-ring.dark   { border-color: rgba(26, 24, 20, .4); }
.cursor.hovering      { width: 4px; height: 4px; background: var(--accent); }
.cursor-ring.hovering { width: 48px; height: 48px; border-color: var(--accent); }

/* ============================================================
   NAVIGATION
============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 48px; height: var(--nav-h);
  background: rgba(17, 16, 16, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-gold);
}

.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  align-self: center;
  margin-right: 0px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-size: 20px;
  font-weight: 400;
  font-family: 'Citrica', serif;
}

.nav-logo span {
  margin-left: 8px;
  color: var(--accent);
  font-weight: 300;
  font-family: 'Comfortaa', serif;
  font-size: 10px;
  position: relative;
  top: 3px;
}

.nav-center { flex: 1; display: flex; justify-content: center; gap: 52px; }
.nav-center a {
  text-decoration: none; color: rgba(240,236,228,.6);
  font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 300;
  position: relative; padding-bottom: 4px; transition: color .3s;
}
.nav-center a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s ease;
}
.nav-center a:hover::after { width: 100%; }
.nav-center a:hover        { color: var(--accent); }
.nav-social { flex: 0 0 auto; display: flex; align-items: center; gap: 22px; }
.nav-social a {
  color: rgba(240,236,228,.38); text-decoration: none;
  display: flex; align-items: center; transition: color .3s;
}
.nav-social a:hover { color: var(--text-light); }
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   NAV DROPDOWN
============================================================ */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropbtn {
  background: none; border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 300;
  color: rgba(240, 236, 228, 0.6);
  display: flex; align-items: center; gap: 6px;
  position: relative; padding-bottom: 4px;
  cursor: none; transition: color .3s;
}
.nav-dropbtn::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s ease;
}
.nav-dropdown:hover .nav-dropbtn::after { width: 100%; }
.nav-dropdown:hover .nav-dropbtn        { color: var(--accent); }

.nav-dropbtn svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s ease; flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropbtn svg { transform: rotate(180deg); }

/* Menu panel */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  background: rgba(17, 16, 16, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 236, 228, 0.08);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Arrow tip on top of menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(17, 16, 16, 0.98);
  border-left: 1px solid rgba(240, 236, 228, 0.08);
  border-top:  1px solid rgba(240, 236, 228, 0.08);
}

/* Items */
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 28px;
  text-decoration: none;
  color: rgba(240, 236, 228, 0.55);
  font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; font-weight: 300;
  transition: color .25s, padding-left .25s;
}
.nav-dropdown-menu a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease; flex-shrink: 0;
}
.nav-dropdown-menu a:hover              { color: var(--text-light); padding-left: 36px; }
.nav-dropdown-menu a:hover::before      { width: 8px; }
.nav-dropdown-menu a + a               { border-top: 1px solid rgba(240, 236, 228, 0.05); }

.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0; right: 0;
  height: 20px;
}

/* ============================================================
   HERO HEADER
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  margin-top: var(--nav-h);
  overflow: hidden;
  display: flex; align-items: flex-end;
}

.hero-img-wrap {
  position: absolute; inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,16,16,.88) 0%,
    rgba(17,16,16,.35) 55%,
    rgba(17,16,16,.15) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 80px 80px;
}
.hero-tag {
  font-size: 10px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; font-weight: 300;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300; line-height: 1.0;
  letter-spacing: .01em; margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(240,236,228,.5);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 48px; right: 56px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(240,236,228,.4);
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(240,236,228,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(.6); opacity: .4; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp .9s ease forwards;
}
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .45s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   PROJECT BODY
============================================================ */
.project-body {
  background: var(--cream);
  padding: var(--section-pad) 0;
}


/* ============================================================
   SPLIT SECTIONS
============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  max-width: 1400px;
  margin: 0 auto 0;
  padding: 0 80px;
  gap: 80px;
  align-items: center;
  margin-bottom: var(--section-pad);

  /* scroll reveal */
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .85s ease, transform .85s ease;
}
.split-section.visible {
  opacity: 1; transform: translateY(0);
}

/* Text left → img right */
.split-text-left { }

/* Img left → text right */
.split-text-right { }
.split-text-right .split-img-wrap { order: -1; }

/* TEXT BLOCK */
.split-text { display: flex; flex-direction: column; gap: 0; }

.split-label {
  display: inline-block;
  font-size: 9px; letter-spacing: .4em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; font-weight: 400;
}

.split-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: .02em; color: var(--text-dark);
  margin-bottom: 28px;
}

.split-text p {
  font-size: 13px; line-height: 1.9;
  color: #4a4744; font-weight: 300;
  margin-bottom: 18px;
  max-width: 480px;
}

.split-link {
  display: inline-flex; align-items: center;
  margin-top: 12px;
  font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; font-weight: 400;
  color: var(--text-dark); text-decoration: none;
  border-bottom: 1px solid rgba(26,24,20,.3);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
  width: fit-content;
}
.split-link:hover { color: var(--accent); border-color: var(--accent); }

/* IMAGE BLOCK */
.split-img-wrap {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.split-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.split-img-wrap:hover img { transform: scale(1.04); }

/* Decorative accent corner */
.img-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 1px solid var(--accent);
  opacity: .35;
  pointer-events: none;
  transition: opacity .4s;
}
.split-img-wrap:hover .img-accent { opacity: .65; }

/* Left image variant: accent goes bottom-left */
.split-text-right .img-accent {
  right: auto; left: -20px;
  bottom: -20px;
}


/* ============================================================
   SECTION DIVIDER
============================================================ */
.section-divider {
  display: flex; align-items: center; gap: 24px;
  max-width: 1400px; margin: 0 auto var(--section-pad);
  padding: 0 80px;
  color: rgba(26,24,20,.25);
  font-size: 11px; letter-spacing: .3em;
}
.divider-line { flex: 1; height: 1px; background: rgba(26,24,20,.12); }



/* ============================================================
   FOOTER
============================================================ */
.project-footer {
  background: var(--bg);
  text-align: center;
  padding: 60px 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Redes sociales en círculos */
.project-footer .footer-social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.project-footer .footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-footer .footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.project-footer .footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--bg);
  transition: fill 0.3s ease;
}

.project-footer .footer-social a:hover svg {
  fill: #fff;
}

/* Enlaces de navegación del footer */
.project-footer .footer-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  /* Reset de estilos que podrían heredarse */
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
}

.project-footer .footer-nav a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.7);
  text-decoration: none;
  font-weight: 300;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.project-footer .footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.project-footer .footer-nav a:hover {
  color: var(--accent);
}

.project-footer .footer-nav a:hover::after {
  width: 100%;
}

/* Línea divisoria */
.project-footer .footer-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: rgba(240, 236, 228, 0.12);
  margin-bottom: 30px;
}

/* Copyright */
.project-footer .footer-copyright {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(240, 236, 228, 0.4);
  font-weight: 300;
}

.project-footer .footer-copyright span {
  color: var(--accent);
  font-weight: 400;
}



/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-center { gap: 28px; }

  .hero-content { padding: 0 32px 60px; }
  .hero-scroll  { display: none; }

  .split-section {
    grid-template-columns: 1fr;
    padding: 0 32px;
    gap: 40px;
  }
  .split-img-wrap        { height: 320px; }
  .split-text-right .split-img-wrap { order: 0; }
  .img-accent            { display: none; }

  .section-divider { padding: 0 32px; }
}

/* ============================================================
   HERO
============================================================ */
.contact-hero {
  position: relative;
  height: 20vh;
  min-height: 200px;
  margin-top: var(--nav-h);
  overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--text-dark);
}
.hero-bg { position: absolute; inset: 0; }

@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,16,16,.9) 0%, rgba(17,16,16,.35) 60%, rgba(17,16,16,.1) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 80px 60px; }
.hero-tag {
  font-size: 10px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px; font-weight: 300;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 7vw, 60px);
  font-weight: 300; line-height: 1;
  margin-bottom: 16px; color: var(--text-light);
}
.hero-sub {
  font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(240,236,228,.5);
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section {
  background: var(--cream);
  display: grid;
  grid-template-columns: 370px 1fr;
}

/* ASIDE */
.contact-info {
  background: var(--text-dark);
  padding: 52px 40px;
  display: flex; flex-direction: column; gap: 36px;
  opacity: 0; transform: translateX(-32px);
  transition: opacity .85s ease, transform .85s ease;
}
.contact-info.visible { opacity: 1; transform: translateX(0); }

.info-block { display: flex; flex-direction: column; gap: 8px; }
.info-label {
  font-size: 9px; letter-spacing: .4em;
  text-transform: uppercase; color: var(--accent); font-weight: 400;
}
.info-block p {
  font-size: 13px; line-height: 1.7;
  color: rgba(240,236,228,.75); font-weight: 300;
}
.info-social {
  margin-top: auto; display: flex; flex-direction: column; gap: 12px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.08);
}
.info-social a {
  font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(240,236,228,.4);
  text-decoration: none; font-weight: 300; transition: color .3s;
}
.info-social a:hover { color: var(--accent); }

/* FORM WRAP */
.contact-form-wrap {
  padding: 72px 80px;
  background: var(--cream);
  position: relative;
  opacity: 0; transform: translateX(32px);
  transition: opacity .85s ease .15s, transform .85s ease .15s;
}
.contact-form-wrap.visible { opacity: 1; transform: translateX(0); }

/* FORM ELEMENTS */
form { display: flex; flex-direction: column; gap: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; position: relative; }

label {
  font-size: 9px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 400;
}
.optional { font-size: 8px; letter-spacing: .2em; color: rgba(140,136,130,.6); text-transform: none; }

input, textarea, select {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--border-light);
  padding: 10px 0; font-size: 13px; font-weight: 300;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark); outline: none;
  transition: border-color .3s; border-radius: 0; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(140,136,130,.5); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input.error, textarea.error, select.error { border-color: #b94040; }
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 28px; cursor: none; }
.select-arrow {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 1.5;
  pointer-events: none; transition: stroke .3s;
}
.select-wrap:focus-within .select-arrow { stroke: var(--accent); }

.field-error {
  font-size: 9px; letter-spacing: .15em;
  color: #b94040; font-weight: 300; display: none;
}
.form-group.has-error .field-error { display: block; }

/* SUBMIT */
.form-footer { 
  display: flex; 
  align-items: 
  center; gap: 32px; 
  margin-top: 8px; }

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 52px; background: var(--text-dark);
  border: 1px solid var(--text-dark); color: var(--text-light);
  font-family: 'Montserrat', sans-serif; font-size: 10px;
  letter-spacing: .3em; font-weight: 300; text-transform: uppercase;
  cursor: none; transition: background .35s, border-color .35s, color .35s;
  min-width: 200px;
}
.btn-submit:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-submit:disabled { opacity: .6; pointer-events: none; }

.form-note {
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-muted);
}
.form-error-msg { font-size: 11px; color: #b94040; letter-spacing: .1em; margin-top: -8px; }

/* SUCCESS SCREEN */
.form-success {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 20px;
  min-height: 400px;
  animation: fadeIn .6s ease;
}
.form-success.visible { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.success-icon {
  width: 64px; height: 64px; border: 1px solid var(--accent);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: var(--accent);
}
.form-success h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; color: var(--text-dark);
}
.form-success p { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

.btn-reset {
  margin-top: 8px; padding: 12px 36px; background: transparent;
  border: 1px solid var(--border-light); font-family: 'Montserrat', sans-serif;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-muted); cursor: none;
  transition: border-color .3s, color .3s;
}
.btn-reset:hover { border-color: var(--text-dark); color: var(--text-dark); }

/* PAGE FOOTER */
.page-footer {
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 80px; border-top: 1px solid var(--border-dark);
}
.footer-copy {
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(240,236,228,.25);
}
.footer-back {
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(240,236,228,.35);
  text-decoration: none; transition: color .3s;
}
.footer-back:hover { color: var(--text-light); }

.contact-map {
  width: 100%;
  margin-top: 2px;
  margin-bottom: 10px;
  border-radius: 16px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 200px;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-center { gap: 24px; }
  .hero-content { padding: 0 32px 48px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-info { padding: 52px 32px; }
  .contact-form-wrap { padding: 52px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-footer { flex-direction: column; gap: 16px; padding: 32px; text-align: center; }
}

/* ============================================================
   OCULTAR CURSOR PERSONALIZADO EN DISPOSITIVOS TÁCTILES
============================================================ */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

/* También por si queremos forzar con clase JS */
.touch-device .cursor,
.touch-device .cursor-ring {
  display: none !important;
}

/* ============================================================
   HAMBURGER & SIDEBAR — solo móvil/tablet
============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-hamburger:hover span {
  background: var(--accent);
}

/* Overlay */
.nav-sidebar-overlay {
  display: block;
  pointer-events: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity .35s ease;
}
.nav-sidebar-overlay.visible {
  pointer-events: all;
  opacity: 1; 
}

/* Sidebar panel */
.nav-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: rgba(17,16,16,.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,.06);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 40px 48px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}
.nav-sidebar.open { transform: translateX(0); }

/* Close button */
.sidebar-close {
  align-self: flex-end;
  background: none; border: none;
  color: rgba(240,236,228,.5);
  cursor: none;
  padding: 4px;
  transition: color .3s;
  margin-bottom: 40px;
}
.sidebar-close:hover { color: var(--accent); }
.sidebar-close svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

/* Logo en sidebar */
.sidebar-logo {
  text-decoration: none;
  color: var(--text-light);
  font-family: 'Citrica', serif;
  font-size: 22px; letter-spacing: .1em;
  margin-bottom: 52px; display: block;
}
.sidebar-logo span {
  color: var(--accent);
  font-family: 'Comfortaa', serif;
  font-size: 11px;
}

/* Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.sidebar-links > a {
  text-decoration: none;
  color: rgba(240,236,228,.65);
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 300;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .3s;
}
.sidebar-links > a:hover { color: var(--accent); }

/* Dropdown dentro del sidebar */
.sidebar-dropdown { border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-dropbtn {
  width: 100%; background: none; border: none;
  text-align: left;
  color: rgba(240,236,228,.65);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 300;
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: none; transition: color .3s;
}
.sidebar-dropbtn:hover { color: var(--accent); }
.sidebar-dropbtn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s;
}
.sidebar-dropdown.open .sidebar-dropbtn svg { transform: rotate(180deg); }

.sidebar-submenu {
  display: none;
  flex-direction: column;
  padding: 0 0 12px 16px;
  gap: 0;
}
.sidebar-dropdown.open .sidebar-submenu { display: flex; }
.sidebar-submenu a {
  text-decoration: none;
  color: rgba(240,236,228,.4);
  font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .3s;
}
.sidebar-submenu a:hover { color: var(--text-light); }

/* Social en sidebar */
.sidebar-social {
  display: flex; gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-social a {
  color: rgba(240,236,228,.35);
  text-decoration: none; display: flex;
  transition: color .3s;
}
.sidebar-social a:hover { color: var(--accent); }
.sidebar-social svg {
  width: 17px; height: 17px;
  fill: currentColor;
}

/* Mostrar hamburguesa y ocultar nav normal en móvil */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-center    { display: none; }
  .nav-social    { display: none; }
  .nav-sidebar-overlay { display: block; }
}