/* color-mix-fallback-applied */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}.invisible{visibility:hidden}.visible{visibility:visible}.container{width:100%}.grid{display:grid}.hidden{display:none}.inline{display:inline}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.projects-hero{min-height:100vh;padding-top:80px;padding-bottom:120px;position:relative;display:flex;flex-direction:column;justify-content:flex-start}.page-hero-grid-bg{background-image:linear-gradient(var(--border) 1px,transparent 1px),linear-gradient(90deg,var(--border) 1px,transparent 1px);pointer-events:none;z-index:0;background-size:80px 80px;position:absolute;inset:0 0 -400px;-webkit-mask-image:linear-gradient(#0000 0%,#0009 8% 96%,#0000 100%);mask-image:linear-gradient(#0000,#0009 8% 96%,#0000)}.page-hero-glow{background:radial-gradient(ellipse at 50% 0%,var(--accent-glow) 0%,transparent 70%);pointer-events:none;z-index:0;height:400px;position:absolute;top:0;left:30%;right:30%}.projects-hero>.container{z-index:1;position:relative;padding-top:100px;padding-bottom:120px}.projects-hero-inner{justify-content:space-between;align-items:flex-start;gap:64px;display:flex}.projects-hero-left{flex:none;max-width:680px}.projects-hero-eyebrow{letter-spacing:.18em;text-transform:uppercase;color:var(--color-primary);margin-bottom:24px;font-size:.75rem;font-weight:600}.projects-hero-title{letter-spacing:-.03em;color:var(--color-foreground);font-family:Syne,sans-serif;font-size:clamp(3.5rem,7vw,7rem);font-weight:800;line-height:1}.projects-hero-title .svc-line{display:block;overflow:hidden;margin-bottom:-.1em;padding-bottom:.18em}
.projects-hero-title .svc-line-inner{opacity:0;transform:translateY(105%);transition:opacity 1.6s cubic-bezier(.16,1,.3,1),transform 1.6s cubic-bezier(.16,1,.3,1);display:block}
.projects-hero-title.visible .svc-line:nth-child(1) .svc-line-inner{opacity:1;transform:translateY(0);transition-delay:.1s}
.projects-hero-title.visible .svc-line:nth-child(2) .svc-line-inner{opacity:1;transform:translateY(0);transition-delay:.3s}
.projects-hero-title.visible .svc-line:nth-child(3) .svc-line-inner{opacity:1;transform:translateY(0);transition-delay:.5s}
.projects-hero-eyebrow{opacity:0;animation:projFadeIn 1s cubic-bezier(.16,1,.3,1) 0s forwards}
@keyframes projFadeIn{to{opacity:1}}
@keyframes projSlideRight{0%{opacity:0;transform:translateX(48px)}to{opacity:1;transform:translateX(0)}}
.projects-hero-right{flex-direction:column;flex:none;gap:32px;display:flex;justify-content:center;margin-top:0;align-self:center;opacity:0;animation:projSlideRight .9s cubic-bezier(.16,1,.3,1) 1.2s forwards}.hero-stat-row{align-items:center;gap:20px;display:flex;border-top:1px solid var(--border);border-left:2px solid transparent;padding:20px 16px;margin-left:-18px;cursor:default;transition:background .3s var(--ease-out),border-left-color .3s var(--ease-out)}.hero-stat-row:first-child{border-top:none;padding-top:0}.hero-stat-row:hover{border-left-color:var(--accent);background:transparent;background:color-mix(in srgb,var(--accent)8%,transparent)}.hero-stat-num{letter-spacing:-.03em;color:var(--accent);min-width:120px;font-family:Berkeley Mono,monospace;font-size:clamp(2.5rem,4vw,3.5rem);font-weight:700;line-height:1;transition:color .3s var(--ease-out),transform .3s var(--ease-out);display:inline-block}.hero-stat-row:hover .hero-stat-num{color:var(--accent-hover,#5b9cf6);transform:scale(1.04)}.hero-stat-label{color:var(--text-secondary);max-width:160px;font-size:.85rem;line-height:1.4;transition:color .3s var(--ease-out)}.hero-stat-row:hover .hero-stat-label{color:var(--text-primary)}.scroll-indicator{opacity:1;flex-direction:column;align-items:center;gap:12px;animation:none;display:flex;position:absolute;bottom:112px;left:50%;transform:translateX(-50%)}.scroll-indicator-text{letter-spacing:.25em;text-transform:uppercase;color:#f0eee8a6;font-family:Berkeley Mono,monospace;font-size:10px}[data-theme=light] .scroll-indicator-text{color:#080c14a6}.scroll-indicator-line{background:#ffffff47;width:2px;height:64px;position:relative;overflow:hidden}[data-theme=light] .scroll-indicator-line{background:#080c1438}.scroll-indicator-dot{background:var(--color-primary);width:2px;height:12px;animation:2s cubic-bezier(.4,0,.6,1) infinite scrollDotProj;position:absolute;top:-10px;left:50%;transform:translate(-50%)}@keyframes scrollDotProj{0%{opacity:1;top:-10px}80%{opacity:.8;top:64px}to{opacity:0;top:64px}}.featured-project-section{padding:0 0 80px}.featured-project-card{cursor:pointer;width:100%;height:clamp(360px,48vh,560px);text-decoration:none;display:block;position:relative;overflow:hidden}.featured-project-img-wrap{position:absolute;inset:0;overflow:hidden}.featured-project-img{object-fit:cover;object-position:center 35%;will-change:transform;width:100%;height:100%}.featured-project-overlay{background:linear-gradient(to bottom,#00000040,#000000aa,#000000f0);position:absolute;inset:0}.featured-project-content{flex-direction:column;gap:16px;padding:56px 64px;display:flex;position:absolute;bottom:0;left:0;right:0}.featured-project-meta{align-items:center;gap:16px;display:flex}.featured-project-label{letter-spacing:.18em;text-transform:uppercase;color:#fff;background:var(--color-primary);border:1px solid var(--color-primary);border-radius:100px;padding:6px 16px;font-size:.7rem;font-weight:700}.featured-project-cat{letter-spacing:.1em;text-transform:uppercase;color:#ffffffcc;font-size:.75rem}.featured-project-title{letter-spacing:-.03em;color:#fff;max-width:700px;font-family:Syne,sans-serif;font-size:clamp(2.5rem,5vw,5rem);font-weight:800;line-height:.95}.featured-project-desc{color:#fff;max-width:520px;font-size:1rem;line-height:1.6}.featured-project-cta{letter-spacing:.06em;color:#fff;align-items:center;gap:8px;margin-top:8px;font-size:.85rem;font-weight:600;transition:gap .25s;display:inline-flex}.featured-project-card:hover .featured-project-cta{gap:14px}.filters-section{border-bottom:1px solid var(--color-border);margin-bottom:0;padding:0 0 64px}.filters-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.filters-left{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.filter-btn{letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--color-border);color:var(--color-muted-foreground);cursor:pointer;background:0 0;border-radius:0;padding:8px 20px;font-size:.78rem;font-weight:600;transition:all .2s}.filter-btn:hover{border-color:var(--color-foreground);color:var(--color-foreground)}.filter-btn.active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.filters-count{color:var(--color-muted-foreground);letter-spacing:.06em;white-space:nowrap;font-size:.78rem}.projects-section{padding:0}.proj-list{flex-direction:column;gap:48px;padding-top:48px;display:flex}.proj-item{cursor:pointer;text-decoration:none;display:block;position:relative;overflow:hidden}.proj-item-img-wrap{width:100%;overflow:hidden}.proj-item-img{object-fit:cover;object-position:top center;will-change:transform;width:100%;height:100%;display:block}.proj-item-overlay{background:linear-gradient(#0000,#00000040 45%,#000000d1);transition:opacity .4s;position:absolute;inset:0}.proj-item:hover .proj-item-overlay{opacity:.9}.proj-item-content{flex-direction:column;gap:10px;padding:40px 48px;display:flex;position:absolute;bottom:0;left:0;right:0}.proj-item-num{letter-spacing:.14em;color:#ffffff59;font-size:.7rem;font-weight:700;position:absolute;top:32px;left:48px}.proj-item-meta{align-items:center;gap:12px;display:flex}.proj-item-cat{letter-spacing:.14em;text-transform:uppercase;color:#ffffff8c;font-size:.68rem;font-weight:600}.proj-item-title{letter-spacing:-.025em;color:#fff;font-family:Syne,sans-serif;font-size:clamp(1.8rem,3.5vw,3.2rem);font-weight:800;line-height:.95;transition:color .3s}.proj-item:hover .proj-item-title{color:var(--accent)}.proj-item-desc{color:#ffffffa6;max-width:480px;font-size:.9rem;line-height:1.55;display:none}.proj-item:hover .proj-item-desc{display:block}.proj-item-cta{letter-spacing:.06em;color:#fffc;opacity:0;align-items:center;gap:6px;margin-top:4px;font-size:.8rem;font-weight:600;transition:opacity .3s,transform .3s;display:inline-flex;transform:translateY(6px)}.proj-item:hover .proj-item-cta{opacity:1;transform:translateY(0)}.proj-item--full .proj-item-img-wrap{aspect-ratio:16/7;height:clamp(300px,40vh,500px)}.proj-pair{grid-template-columns:1fr 1fr;gap:24px;display:grid}.proj-pair--asymmetric{grid-template-columns:3fr 2fr;gap:24px}.proj-item--half .proj-item-img-wrap,.proj-item--wide .proj-item-img-wrap,.proj-item--narrow .proj-item-img-wrap{aspect-ratio:4/3;height:clamp(260px,35vh,420px)}.card-reveal{opacity:0;transition:opacity .7s,transform .7s;transform:translateY(40px)}.card-reveal.visible{opacity:1;transform:translateY(0)}.filtering-out{opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;transform:scale(.97)}.filtering-in{opacity:0;transition:opacity .35s 50ms,transform .35s 50ms;transform:scale(.97)}.filtering-in.filter-visible{opacity:1;transform:scale(1)}.proj-cursor{pointer-events:none;z-index:9999;background:var(--color-primary);color:#fff;letter-spacing:.08em;opacity:0;white-space:nowrap;border-radius:100px;padding:8px 16px;font-size:.75rem;font-weight:700;transition:opacity .25s;position:fixed;top:0;left:0;transform:translate(-50%,-50%)}.proj-cursor.active{opacity:1}.cta-strip{border-top:1px solid var(--color-border);margin-top:0;padding:120px 0}.cta-strip-inner{opacity:0;justify-content:space-between;align-items:center;gap:48px;transition:opacity .8s,transform .8s;display:flex;transform:translateY(32px)}.cta-strip-inner.visible{opacity:1;transform:translateY(0)}.cta-title{letter-spacing:-.03em;color:var(--color-foreground);font-family:Syne,sans-serif;font-size:clamp(2.5rem,5vw,5rem);font-weight:800;line-height:1.1;overflow:hidden}.cta-title .line{display:block;overflow:hidden}.cta-title .line-inner{transition:opacity 1.6s cubic-bezier(.16,1,.3,1),transform 1.6s cubic-bezier(.16,1,.3,1);display:block;opacity:0;transform:translateY(100%)}.cta-strip-inner.visible .cta-title .line-inner{opacity:1;transform:translateY(0)}.cta-strip-inner.visible .cta-title .line:nth-child(2) .line-inner{transition-delay:300ms}.cta-strip-inner.visible .cta-title .line:nth-child(3) .line-inner{transition-delay:600ms}.accent-word{color:var(--color-primary)}.cta-btn-wrap{flex-shrink:0}.btn-primary{background:var(--color-primary);color:#fff;letter-spacing:.04em;border-radius:0;align-items:center;gap:10px;padding:18px 36px;font-size:.9rem;font-weight:700;text-decoration:none;transition:background .2s,gap .2s;display:inline-flex}[data-theme=light] .btn-primary{color:#fff}.btn-primary:hover{background:var(--color-primary-hover,var(--color-primary));gap:16px}.btn-arrow{font-size:1.1em}@media(max-width:1024px){.projects-hero{padding-top:80px}.projects-hero-inner{flex-direction:column;align-items:flex-start;gap:48px}.projects-hero-right{flex-direction:row;gap:40px}.proj-item--full .proj-item-img-wrap{height:clamp(320px,45vh,520px)}.proj-item--half .proj-item-img-wrap,.proj-item--wide .proj-item-img-wrap,.proj-item--narrow .proj-item-img-wrap{height:clamp(280px,38vh,440px)}.proj-item-content{padding:32px 36px}.proj-item-num{top:24px;left:36px}.featured-project-content{padding:40px 48px}}@media(max-width:768px){.projects-hero{padding-top:70px}.projects-hero-right{flex-direction:column;gap:24px}.hero-stat-row{flex-direction:row;gap:16px}.proj-pair,.proj-pair--asymmetric{grid-template-columns:1fr}.proj-item--full .proj-item-img-wrap,.proj-item--half .proj-item-img-wrap,.proj-item--wide .proj-item-img-wrap,.proj-item--narrow .proj-item-img-wrap{height:clamp(260px,55vw,400px)}.proj-item-img,.featured-project-img{object-position:center center}.proj-item-content{padding:24px}.proj-item-num{top:20px;left:24px}.proj-item-title{font-size:clamp(1.4rem,6vw,2rem)}.featured-project-card{height:clamp(380px,70vw,520px)}.featured-project-content{padding:32px 24px}.featured-project-title{font-size:clamp(1.8rem,7vw,3rem)}.filters-inner{flex-direction:column;align-items:flex-start}.cta-strip{padding:80px 0}.cta-strip-inner{flex-direction:column;align-items:flex-start;gap:32px}.cta-title{font-size:clamp(2rem,9vw,3.5rem)}}@media(max-width:480px){.proj-item--full .proj-item-img-wrap,.proj-item--half .proj-item-img-wrap,.proj-item--wide .proj-item-img-wrap,.proj-item--narrow .proj-item-img-wrap{height:clamp(220px,60vw,320px)}.filter-btn{padding:6px 14px;font-size:.7rem}}/* === Hero min-height fix para móvil === */
@media(max-width:640px){
  .page-hero{min-height:auto;padding-bottom:60px;}
}
@media(max-width:480px){
  .page-hero{min-height:auto;padding-top:90px;padding-bottom:48px;}
}
@media(max-width:375px){
  .page-hero{min-height:auto;padding-top:80px;padding-bottom:40px;}
}
@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
.projects-list{display:flex;flex-direction:column;gap:24px}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION — Hamburger & Mobile Menu
   Aplicado a todas las páginas interiores
   ═══════════════════════════════════════════════════════════════════════════ */
.hamburger {
  cursor: pointer;
  z-index: 10001;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 4px;
  display: none;
  position: relative;
}
.hamburger span {
  background: var(--text-primary);
  transform-origin: 50%;
  border-radius: 2px;
  width: 22px;
  height: 2px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s;
  display: block;
}
.hamburger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: var(--bg-base);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 32px;
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1);
  display: none;
  position: fixed;
  inset: 0;
  transform: translateY(-12px);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  display: flex;
  transform: translateY(0);
}
.mobile-nav {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 48px;
  display: flex;
}
.mobile-nav-link {
  letter-spacing: -.02em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  padding: 10px 0;
  font-family: Syne, sans-serif;
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: color .2s, opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1);
  transform: translateY(16px);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--accent); }
.mobile-menu.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-menu-cta {
  text-align: center;
  opacity: 0;
  justify-content: center;
  width: 100%;
  transition: color .2s, opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1);
  transform: translateY(12px);
}
.mobile-menu.open .mobile-menu-cta { opacity: 1; transition-delay: .46s; transform: translateY(0); }
.mobile-menu-close {
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  background: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 20px;
  right: 24px;
}
.mobile-menu-close:hover { color: var(--text-primary); border-color: var(--text-primary); background: var(--bg-elevated); }
.mobile-menu-theme {
  border-top: 1px solid var(--border);
  opacity: 0;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
  padding-top: 24px;
  transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1);
  display: flex;
  transform: translateY(8px);
}
.mobile-menu.open .mobile-menu-theme { opacity: 1; transition-delay: .54s; transform: translateY(0); }
.mobile-menu-theme .theme-toggle-text { letter-spacing: .12em; color: var(--text-tertiary); font-size: 11px; font-weight: 600; }

/* Activar hamburger en tablet/móvil */
@media (max-width: 1024px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .btn-cta-header, .theme-toggle-wrapper { display: none; }
}

/* Ajustes menú móvil en pantallas muy pequeñas */
@media (max-width: 375px) {
  .mobile-nav-link { padding: 6px 0; font-size: clamp(22px, 7vw, 30px); }
  .mobile-nav { gap: 4px; margin-bottom: 24px; }
  .mobile-menu { justify-content: flex-start; padding: 80px 20px 24px; overflow-y: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION — Accesibilidad
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Overflow horizontal global */
body { overflow-x: hidden; }


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE PROYECTOS — v6 DEFINITIVO
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TABLET (≤1024px) ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .projects-hero { padding: 110px 0 80px; }
  .projects-hero-inner { flex-direction: column; gap: 40px; }
  .projects-hero-right { display: flex; }
  .projects-hero-title { font-size: clamp(44px, 9vw, 72px); }
  .featured-project-section { padding: 64px 0; }
  .featured-project-inner { grid-template-columns: 1fr; }
  .featured-project-img-wrap { min-height: 260px; aspect-ratio: 16/9; }
  .featured-project-content { padding: 40px; }
  .proj-pair { grid-template-columns: 1fr; gap: 16px; }
}

/* ── MÓVIL (≤768px) ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .projects-hero { padding: 100px 0 64px; }
  .projects-hero-title { font-size: clamp(36px, 10vw, 56px); line-height: 1.0; }
  .hero-stat-row { flex-direction: column; gap: 16px; }
  .hero-stat-num { font-size: clamp(32px, 10vw, 48px); min-width: unset; }
  .projects-hero-left { max-width: 100%; }
  .proj-item-desc { max-width: 100%; font-size: 14px; }
  .proj-item-inner { grid-template-columns: 1fr; }
  .proj-item-img-wrap { aspect-ratio: 16/9; min-height: 200px; }
  .featured-project-img-wrap { min-height: 220px; }
  .featured-project-content { padding: 28px; }
  .featured-project-title { font-size: clamp(20px, 6vw, 32px); }
  .projects-filter-bar { flex-wrap: wrap; gap: 8px; overflow-x: visible; padding-bottom: 0; }
  .filter-btn { font-size: 11px; padding: 8px 14px; min-height: 36px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-title { font-size: clamp(24px, 8vw, 40px); }
}

/* ── MÓVIL PEQUEÑO (≤640px) ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .projects-hero { padding: 88px 0 48px; }
  .projects-hero-title { font-size: clamp(32px, 10vw, 48px); line-height: 1.0; }
  .hero-stat-num { font-size: clamp(28px, 10vw, 40px); }
  .proj-pair { grid-template-columns: 1fr !important; gap: 12px; }
  .proj-item-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .featured-project-content { padding: 20px; }
  .featured-project-title { font-size: clamp(18px, 6vw, 28px); }
  .cta-title { font-size: clamp(22px, 8vw, 36px); }
  .projects-section { padding: 48px 0; }
  .featured-project-section { padding: 48px 0; }
}

/* ── iPhone SE (≤375px) ──────────────────────────────────────────────────── */
@media (max-width: 375px) {
  .projects-hero-title { font-size: clamp(28px, 10vw, 40px); }
  .hero-stat-num { font-size: clamp(24px, 9vw, 34px); }
  .cta-title { font-size: clamp(20px, 8vw, 30px); }
}



/* === FIX: projects-hero-right visible en móvil === */
@media (max-width: 768px) {
  .projects-hero-right {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 0;
    gap: 0;
  }
  .projects-hero-right .hero-stat-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .projects-hero-right .hero-stat-row:first-child { border-top: none; }
  .projects-hero-right .hero-stat-num { min-width: 80px; font-size: clamp(28px, 9vw, 40px); }
}
@media (max-width: 480px) {
  .projects-hero-right .hero-stat-num { font-size: clamp(24px, 8vw, 34px); min-width: 70px; }
}


/* === FIX v8: Proyectos — stats con padding, reveal, min-height === */
@media (max-width: 768px) {
  .projects-hero,
  .page-hero {
    min-height: auto !important;
    padding-top: 88px !important;
    padding-bottom: 40px !important;
  }
  .hero-stat-row {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  .projects-hero-right {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  .reveal,
  .hero-animate,
  .svc-line-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-indicator,
  .scroll-indicator-wrap {
    display: none !important;
  }
}

/* FIX-PROYECTOS-MOBILE */
@media (max-width: 768px) {
  .page-hero {
    padding-top: 32px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
  }
  .page-hero-inner {
    align-items: flex-start !important;
    gap: 24px !important;
  }
  .hero-visual {
    height: auto !important;
    min-height: auto !important;
  }
  .hero-visual-frame {
    justify-content: flex-start !important;
    gap: 16px !important;
    min-height: auto !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .visual-panel-inner {
    grid-template-columns: 1fr !important;
  }
  .visual-panel-cell, .vpc-animate,
  .hero-animate, .hero-animate-right, .hero-from-left, .hero-from-right,
  .hero-headline .line-inner, .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* FIX-PROJECTS-HERO-MOBILE */
@media (max-width: 768px) {
  .projects-hero {
    padding-top: 32px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
  }
  .projects-hero-inner {
    align-items: flex-start !important;
    gap: 24px !important;
  }
  .projects-hero .hero-animate,
  .projects-hero .hero-animate-right,
  .projects-hero .hero-from-left,
  .projects-hero .hero-from-right,
  .projects-hero .line-inner,
  .projects-hero .reveal,
  .visual-panel-cell, .vpc-animate {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* FIX-PROJECTS-HERO-COMPACT-MOBILE */
@media (max-width: 768px) {
  .projects-hero {
    padding-top: 32px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
  }
  .projects-hero .container {
    height: auto !important;
    min-height: auto !important;
  }
  .projects-hero-inner {
    gap: 24px !important;
    min-height: auto !important;
    height: auto !important;
  }
  .projects-hero-left,
  .projects-hero-right {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* FIX-PROJECTS-CONTAINER-MOBILE */
@media (max-width: 768px) {
  .projects-hero > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .projects-hero-inner {
    flex-direction: column !important;
    gap: 32px !important;
  }
  .projects-hero-right {
    flex-direction: column !important;
    gap: 20px !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .projects-hero-title .svc-line-inner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .projects-hero-eyebrow {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* FIX-PROJECTS-SPACING-MOBILE */
@media (max-width: 768px) {
  .projects-hero {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
  .projects-hero-inner {
    gap: 24px !important;
  }
  .projects-hero-right {
    gap: 16px !important;
  }
  .hero-stat-row {
    gap: 16px !important;
    padding: 12px 0 !important;
  }
}

/* FIX-PROJECTS-PADDINGTOP-MOBILE */
@media (max-width: 768px) {
  .projects-hero {
    padding-top: 72px !important;
  }
}

/* FIX-FEATURED-PROJECT-MOBILE */
@media (max-width: 768px) {
  .featured-project-card {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }
  .featured-project-img-wrap {
    position: relative !important;
    inset: auto !important;
    height: 240px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  .featured-project-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .featured-project-content {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 24px 16px !important;
    background: var(--bg-surface, #0D1420) !important;
    gap: 12px !important;
  }
  .featured-project-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    color: var(--text-primary, #F0EEE8) !important;
  }
  .featured-project-desc {
    color: var(--text-secondary, rgba(240,238,232,0.72)) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 8px !important;
  }
  .featured-project-label {
    order: -1 !important;
  }
  .featured-project-overlay {
    display: none !important;
  }
}

/* FIX-FEATURED-PROJECT-MOBILE-V2 */
@media (max-width: 768px) {
  /* Card: flex column, label arriba, imagen en medio, desc abajo */
  .featured-project-card {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    position: relative !important;
  }

  /* Pastilla PROYECTO DESTACADO: fuera de la imagen, arriba */
  .featured-project-label {
    position: relative !important;
    order: 0 !important;
    align-self: flex-start !important;
    margin: 0 0 12px 0 !important;
    z-index: 2 !important;
  }

  /* Imagen: bloque con título y categorías superpuestos */
  .featured-project-img-wrap {
    position: relative !important;
    inset: auto !important;
    height: 260px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    order: 1 !important;
  }
  .featured-project-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Overlay gradiente se mantiene sobre la imagen */
  .featured-project-overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.85) 100%) !important;
    z-index: 1 !important;
  }

  /* Título y meta dentro de la imagen (bottom) */
  .featured-project-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 16px !important;
    gap: 6px !important;
    z-index: 2 !important;
    background: none !important;
    order: 1 !important;
  }

  /* Descripción: fuera de la imagen, debajo */
  .featured-project-desc {
    position: relative !important;
    order: 2 !important;
    color: var(--text-secondary, rgba(240,238,232,0.72)) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    padding: 16px 0 8px 0 !important;
    margin: 0 !important;
    background: none !important;
  }

  /* Ocultar label dentro del content (ya está fuera) */
  .featured-project-content .featured-project-label {
    display: none !important;
  }

  /* CTA */
  .featured-project-content .proj-item-cta,
  .featured-project-content .featured-project-cta {
    display: none !important;
  }
}

/* FIX-FEATURED-LABEL-FULLWIDTH-MOBILE */
@media (max-width: 768px) {
  .featured-project-card > .featured-project-label {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 100px !important;
    margin-bottom: 12px !important;
    align-self: stretch !important;
  }
}

/* FIX-FEATURED-CONTENT-TOP-MOBILE */
@media (max-width: 768px) {
  .featured-project-content {
    top: 0 !important;
    bottom: auto !important;
    padding: 16px !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
  }
}

/* FIX-FEATURED-LAYOUT-MOBILE */
@media (max-width: 768px) {
  .featured-project-content {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: absolute !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 16px !important;
    background: none !important;
  }
  .featured-project-title {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    margin: 0 !important;
  }
  .featured-project-meta {
    margin: 0 !important;
  }
  .featured-project-overlay {
    display: block !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.7) 100%) !important;
  }
}

/* FIX-SCROLL-INDICATOR-MOBILE */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none !important;
  }
}
