/* ════════════════════════════════════════════════════════
   ESPACIO PALERMO — styles.css v2
   Paleta oficial: teal oscuro · turquesa · verde oliva · salmón
   Tipografía: Cormorant Garamond (títulos elegantes) + Jost (cuerpo)
   ════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --teal-dark:   #0e6b68;
  --teal:        #1aada9;
  --teal-light:  #1fc8c4;
  --olive:       #8ea832;
  --olive-dark:  #6b7a1f;
  --salmon:      #f5a877;
  --cream:       #f8f5ef;
  --cream-2:     #f0ebe0;
  --dark:        #0b1f1e;
  --dark-2:      #122928;
  --text:        #2a2a25;
  --text-muted:  #6b6b62;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --max:          1240px;
  --r:            14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography helpers ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--dark);
}
.section-title em {
  font-style: italic;
  color: var(--teal-dark);
}

.section-header.centered {
  text-align: center;
  margin-bottom: 56px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--teal-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 36px;
  border-radius: 100px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  border: 1.5px solid transparent;
}
.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,107,104,0.28);
}
.btn-primary.btn-sm { padding: 11px 26px; font-size: 0.82rem; }

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 13px 34px;
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 100px;
  margin-top: 32px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-whatsapp:hover {
  background: #1da854;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ── Animations ── */
.animate-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.46s; }
.delay-4 { animation-delay: 0.62s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s, box-shadow 0.35s;
  padding: 0 28px;
}
.nav.scrolled {
  background: rgba(11,31,30,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-logo-img:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links li a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links li a:hover { color: var(--teal-light); }
.nav-btn {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
  padding: 9px 24px !important;
  border-radius: 100px !important;
  letter-spacing: 0.08em !important;
  transition: background 0.25s !important;
}
.nav-btn:hover { background: var(--teal) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: zoomOut 12s ease-out forwards;
}
@keyframes zoomOut {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,31,30,0.55) 0%,
    rgba(11,31,30,0.4) 40%,
    rgba(11,31,30,0.7) 100%
  );
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 820px;
  margin-top: 60px;
}
.hero-logo-wrap {
  margin-bottom: 20px;
}
.hero-logo {
  height: 200px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3));
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 18px;
}
.hero-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--salmon), transparent);
  margin: 0 auto 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--salmon);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ════════════════════════════════════════════════════════
   INTRO
   ════════════════════════════════════════════════════════ */
.intro {
  padding: 120px 0 100px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.intro-deco-text {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 14vw, 200px);
  font-weight: 700;
  color: rgba(14,107,104,0.05);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  user-select: none;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-images {
  position: relative;
}
.intro-img-main {
  border-radius: var(--r);
  overflow: hidden;
  height: 520px;
  box-shadow: 0 32px 80px rgba(11,31,30,0.18);
}
.intro-img-main img { width: 100%; height: 100%; object-fit: cover; }

.intro-img-float {
  position: absolute;
  bottom: -36px;
  right: -36px;
  width: 220px;
  height: 180px;
  border-radius: var(--r);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 16px 48px rgba(11,31,30,0.22);
}
.intro-img-float img { width: 100%; height: 100%; object-fit: cover; }

.img-float-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
}
.badge-num { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.badge-txt { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; }

.intro-text { padding-right: 16px; }
.intro-text h2 { margin-bottom: 24px; }
.intro-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(14,107,104,0.15);
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
}
.stat-l {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.stat-div {
  width: 1px;
  height: 36px;
  background: rgba(14,107,104,0.2);
}

/* ════════════════════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════════════════════ */
.servicios {
  padding: 110px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.servicios-bg-deco {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,200,196,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.servicios .eyebrow { color: var(--teal-light); }
.servicios .section-title { color: var(--white); }
.servicios .section-title em { color: var(--salmon); }

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

.servicio-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.servicio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31,200,196,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.servicio-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.servicio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.servicio-card:hover .servicio-img img { transform: scale(1.07); }

.servicio-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.servicio-body {
  padding: 22px 24px 26px;
}
.servicio-icon {
  width: 36px;
  height: 36px;
  color: var(--teal-light);
  margin-bottom: 12px;
}
.servicio-icon svg { width: 100%; height: 100%; }
.servicio-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.servicio-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* Featured card */
.card-featured {
  border-color: rgba(31,200,196,0.2);
}

/* Usos card */
.card-usos {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--dark-2) 100%);
  border-color: rgba(31,200,196,0.25);
  display: flex;
  align-items: center;
}
.card-usos .servicio-body { padding: 32px; width: 100%; }
.card-usos h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
}
.uso-list { margin-bottom: 28px; }
.uso-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.uso-list li:last-child { border-bottom: none; }
.uso-icon { font-size: 1.1rem; }

/* ════════════════════════════════════════════════════════
   GALERÍA
   ════════════════════════════════════════════════════════ */
.galeria {
  padding: 110px 0 0;
  background: var(--cream);
}
.galeria-masonry {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 0 8px;
}
.gal-col { display: flex; flex-direction: column; gap: 8px; }
.gal-col-mid { position: relative; top: -40px; }
.gal-item {
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  min-height: 220px;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gal-item:hover img { transform: scale(1.06); }
.gal-tall { min-height: 360px; }

/* Horizontal strip */
.galeria-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 8px;
  margin-top: 0;
}
.gal-strip-item {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}
.gal-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gal-strip-item:hover img { transform: scale(1.06); }

/* ════════════════════════════════════════════════════════
   PORTAFOLIO
   ════════════════════════════════════════════════════════ */
.portafolio {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.portafolio-bg {
  position: absolute;
  inset: 0;
}
.portafolio-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portafolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,31,30,0.94) 0%,
    rgba(11,31,30,0.75) 60%,
    rgba(14,107,104,0.6) 100%
  );
}
.portafolio-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.portafolio-text .section-title { color: var(--white); }
.portafolio-text .section-title em { color: var(--teal-light); }
.portafolio-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.brand-colors {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}
.bcolor {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  transition: transform 0.2s;
  cursor: default;
}
.bcolor:hover { transform: scale(1.15); }

.portafolio-logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plogo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.plogo-card:hover { background: rgba(255,255,255,0.1); }
.plogo-card img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.plogo-teal {
  background: rgba(31,200,196,0.08);
  border-color: rgba(31,200,196,0.2);
}
.plogo-teal img { filter: none; opacity: 1; }

/* ════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════ */
.contacto {
  padding: 120px 0;
  background: var(--cream);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contacto-text h2 { margin-bottom: 16px; }
.contacto-text > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  transition: background 0.2s;
}
.contact-row:hover { background: rgba(14,107,104,0.07); }
.contact-ico {
  width: 44px;
  height: 44px;
  background: rgba(14,107,104,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-dark);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 600;
}
.contact-val {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
}
.contact-row-loc { cursor: default; }

/* Visuals */
.contacto-visual {
  position: relative;
  height: 520px;
}
.cv-main {
  position: absolute;
  inset: 0;
  right: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(11,31,30,0.18);
}
.cv-main img { width: 100%; height: 100%; object-fit: cover; }

.cv-accent {
  position: absolute;
  bottom: -24px;
  left: -32px;
  width: 200px;
  height: 160px;
  border-radius: var(--r);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 12px 40px rgba(11,31,30,0.2);
}
.cv-accent img { width: 100%; height: 100%; object-fit: cover; }

.cv-logo-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 88px;
  height: 88px;
  background: var(--teal-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 3px solid var(--white);
  box-shadow: 0 8px 24px rgba(11,31,30,0.25);
}
.cv-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  background: var(--cream);
  position: relative;
}
.footer-wave {
  line-height: 0;
}
.footer-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}
.footer-body {
  background: var(--dark);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  letter-spacing: 0.06em;
}
.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal-light); }

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
  background: rgba(31,200,196,0.08);
}

.footer-copy {
  padding: 20px 0;
}
.footer-copy p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
  text-align: center;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { gap: 48px; }
  .portafolio-inner { gap: 48px; }
  .contacto-inner { gap: 48px; }
}

@media (max-width: 860px) {
  .intro-grid,
  .portafolio-inner,
  .contacto-inner { grid-template-columns: 1fr; }

  .intro-images { height: 360px; }
  .intro-img-main { height: 360px; }
  .intro-img-float { bottom: -20px; right: -8px; width: 160px; height: 130px; }
  .intro-text { padding-right: 0; padding-top: 40px; }

  .portafolio-logos { flex-direction: row; }

  .contacto-visual { height: 320px; }
  .cv-accent { left: -16px; bottom: -16px; }

  .galeria-masonry { grid-template-columns: 1fr 1fr; }
  .gal-col:last-child { display: none; }
  .gal-col-mid { top: 0; }
  .galeria-strip { grid-template-columns: repeat(3, 1fr); }
  .gal-strip-item:nth-child(4),
  .gal-strip-item:nth-child(5) { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(11,31,30,0.98);
    backdrop-filter: blur(14px);
    padding: 20px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open li a {
    display: block;
    padding: 14px 32px;
    font-size: 1rem;
  }
  .nav-toggle { display: flex; }

  .hero-logo { height: 140px; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .servicios-grid { grid-template-columns: 1fr; }
  .card-usos { min-height: auto; }

  .galeria-masonry { grid-template-columns: 1fr; }
  .gal-col:nth-child(2),
  .gal-col:last-child { display: none; }
  .galeria-strip { grid-template-columns: 1fr 1fr; }
  .gal-strip-item:nth-child(5) { display: none; }

  .portafolio-logos { flex-direction: column; }

  .intro, .servicios, .galeria, .portafolio, .contacto { padding: 80px 0; }
  .intro-stats { flex-wrap: wrap; gap: 16px; }
}

/* ════════════════════════════════════════════════════════
   PORTAFOLIO VIEWER — añadido sobre V2
   ════════════════════════════════════════════════════════ */

.portafolio {
  padding: 110px 0 100px;
  background: var(--cream);
  position: relative;
}
.portafolio .section-header { margin-bottom: 44px; }
.port-subtitle {
  font-size: 0.95rem;
  color: var(--gris);
  margin-top: 12px;
}

/* ── Visor principal ── */
.port-viewer {
  position: relative;
  max-width: 420px;
  margin: 0 auto 28px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(11,31,30,0.22), 0 2px 0 rgba(255,255,255,0.8) inset;
  background: var(--dark);
  aspect-ratio: 840 / 1456;
  cursor: zoom-in;
}
.port-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.port-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.port-slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ── Botones prev/next ── */
.port-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(11,31,30,0.72);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.port-btn:hover { background: var(--teal-dark); transform: translateY(-50%) scale(1.08); }
.port-prev { left: 12px; }
.port-next { right: 12px; }
.port-btn:disabled { opacity: 0.25; pointer-events: none; }

/* ── Miniaturas ── */
.port-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 0 8px;
}
.port-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.port-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.port-thumb:hover { opacity: 0.8; transform: scale(1.06); }
.port-thumb.active { opacity: 1; border-color: var(--teal); }

/* ── Footer del visor ── */
.port-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 4px;
}
.port-counter {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gris);
  letter-spacing: 0.08em;
  min-width: 48px;
  text-align: center;
}
#portCurrent { color: var(--teal-dark); font-weight: 600; }

/* ── Lightbox ── */
.port-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.port-lightbox.open { display: flex; }
.plb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,20,18,0.93);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.plb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  max-height: 95svh;
}
.plb-img {
  max-height: 90svh;
  max-width: min(440px, 92vw);
  width: auto;
  border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  object-fit: contain;
  display: block;
}
.plb-close {
  position: absolute;
  top: -4px; right: -4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}
.plb-close:hover { background: var(--teal-dark); }
.plb-nav {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.plb-nav:hover { background: var(--teal-dark); transform: scale(1.1); }
.plb-counter {
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
}
#plbCurrent { color: var(--teal-light); font-weight: 600; }

/* Responsive */
@media (max-width: 520px) {
  .port-viewer { max-width: 88vw; }
  .port-thumbs { gap: 6px; }
  .port-thumb { width: 44px; height: 44px; }
  .plb-nav { display: none; }
  .plb-img { max-width: 94vw; }
}
