/* ====================================================================
   MARC BERNAT — Design System
   Archetype 05: Mouse-Reactive Gradient (Premium Dark + Gold)
   v=20260603
   ==================================================================== */

/* === 0. CUSTOM PROPERTIES === */
:root {
  --bg:          #080808;
  --bg-2:        #101010;
  --bg-card:     #161616;
  --text:        #f5f0e8;
  --text-soft:   rgba(245,240,232,0.65);
  --text-mute:   rgba(245,240,232,0.32);
  --accent:      #c9a55a;
  --accent-dim:  rgba(201,165,90,0.10);
  --accent-glow: rgba(201,165,90,0.22);
  --line:        rgba(245,240,232,0.08);
  --nav-h:       72px;
  --ease-out:    cubic-bezier(0.22,1,0.36,1);
}

/* === 1. RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font: inherit; }
@media (hover: none) { button { cursor: pointer; } }
ul { list-style: none; }

/* === 2. TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3.2rem, 8vw, 7.8rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
em { font-style: italic; }

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* === 3. LAYOUT === */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}
.section { padding-block: clamp(5rem, 10vw, 9rem); position: relative; }

/* === 4. CUSTOM CURSOR === */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.cursor {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: -3px; margin-left: -3px;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,165,90,0.45);
  border-radius: 50%;
  margin-top: -16px; margin-left: -16px;
  transition: opacity 0.3s var(--ease-out), width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), border-color 0.3s;
}
.cursor.is-ready,
.cursor-ring.is-ready { opacity: 1; }
.cursor-ring.is-hover {
  width: 52px; height: 52px;
  margin-top: -26px; margin-left: -26px;
  border-color: var(--accent);
}
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* === 5. NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(8,8,8,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  padding: 0.5rem 1.3rem !important;
  border: 1px solid rgba(201,165,90,0.5) !important;
  color: var(--accent) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  margin-left: auto;
  width: 32px; height: 18px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,8,8,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 9vw, 3.8rem);
  font-weight: 300;
  color: var(--text-soft);
  transition: color 0.2s;
  letter-spacing: -0.02em;
}
.nav-mobile a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
}

/* === 6. HERO === */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

/* Glow global que sigue el cursor en toda la web */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle 550px at var(--mx, 50%) var(--my, 50%),
    rgba(201,165,90,0.09) 0%, transparent 65%
  );
  will-change: background;
}
@media (hover: none) { .cursor-glow { display: none; } }
.hero-grain {
  position: absolute;
  inset: 0; z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-kicker { margin-bottom: 1.75rem; white-space: nowrap; font-size: 0.62rem; }
.hero-kicker::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(3.6rem, 9.5vw, 8.2rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  max-width: 14ch;
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 300;
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 600px) { .hero-scroll { display: none; } }

/* === 7. BUTTONS === */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.85rem;
  background: #25D366;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-wa:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37,211,102,0.28);
}
.btn-wa svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 1.85rem;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn-ghost:hover {
  border-color: rgba(245,240,232,0.35);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-accent:hover {
  background: #d4b56a;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201,165,90,0.28);
}
.btn-accent:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

/* === 8. SERVICES === */
.services { background: var(--bg); }
.services-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
  display: flex;
  flex-direction: column;
}
.service-card .service-desc { flex: 1; }
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.service-card:hover { background: var(--bg-card); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-5deg); }
.service-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.85rem;
}
.service-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  width: 100%;
  transition: color 0.25s, letter-spacing 0.25s;
}
.service-cta:hover {
  color: var(--accent);
  letter-spacing: 0.14em;
}
.service-card .service-desc { flex: 1; }

/* === 9. PROCESS === */
.process { background: var(--bg-2); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.process-item { position: relative; }
.process-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
}
.process-item:hover .process-num { opacity: 0.5; }
.process-title {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.process-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.72;
}

/* === 10. PROJECTS PREVIEW (homepage) === */
.projects-preview { background: var(--bg); }
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.projects-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s;
  white-space: nowrap;
}
.projects-link:hover { gap: 0.9rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg-card);
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 300;
}
.project-type {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* === 11. ABOUT === */
.about { background: var(--bg-2); overflow: hidden; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.about-kicker { margin-bottom: 1.5rem; }
.about-title { margin-bottom: 1.5rem; }
.about-title em { color: var(--accent); }
.about-body {
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.5) brightness(0.65);
  transition: transform 0.6s var(--ease-out);
}
.about-image:hover img { transform: scale(1.04); }
.about-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,165,90,0.1) 0%, transparent 60%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 4/5; order: -1; max-width: 320px; margin-inline: auto; }
  .about-image img { transform: scale(1.25); transform-origin: top center; }
}

/* === 12. CONTACT === */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact-kicker { margin-bottom: 1.5rem; }
.contact-title { margin-bottom: 1rem; }
.contact-body {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.contact-wa { display: flex; flex-direction: column; gap: 0.9rem; }
.wa-note {
  font-size: 0.76rem;
  color: var(--text-mute);
  margin-top: 0.3rem;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.form-input, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.8rem 0.95rem;
  outline: none;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-mute); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: 0.5rem; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.25);
  color: #4ade80;
  font-size: 0.88rem;
  text-align: center;
}
.form-success.is-visible { display: block; }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* === 13. FOOTER === */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-soft);
}
.footer-links { display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.76rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-mute);
}

/* === 14. COOKIE BANNER === */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
#cookie-banner.is-visible { transform: translateY(0); }
.cb-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cb-text { flex: 1; min-width: 260px; }
.cb-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.cb-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.cb-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cb-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cb-reject {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: none;
}
.cb-reject:hover { border-color: var(--text-soft); color: var(--text); }
.cb-accept {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.cb-accept:hover { background: #d4b56a; }
@media (max-width: 540px) {
  .cb-actions { width: 100%; }
  .cb-reject, .cb-accept { flex: 1; text-align: center; }
}

/* === 15. WHATSAPP FLOAT === */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 200;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.38);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  animation: waPulse 3.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  animation: none;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float-tooltip {
  position: absolute;
  right: 68px; top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.38); }
  50%       { box-shadow: 0 4px 42px rgba(37,211,102,0.55), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* === 15. REVEALS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Safety: split elements must never be hidden by .reveal */
.reveal[data-split] { opacity: 1; transform: none; }

/* Stagger utility */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* === 16. PAGE HERO (proyectos page) === */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 50ch;
  margin-top: 0.75rem;
}

/* === 17. PROJECTS FULL PAGE === */
.projects-section { background: var(--bg); }
.filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
/* === SOLO PROJECT + CAROUSEL === */
.projects-solo {
  max-width: 900px;
  margin-inline: auto;
}
.project-solo { display: block; width: 100%; }

.carousel-wrap {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  width: 100%; height: 100%;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel-dots {
  position: absolute;
  bottom: 0.9rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.45rem; z-index: 3;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(245,240,232,0.3);
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.is-active { background: var(--accent); transform: scale(1.3); }

.filter-btn {
  padding: 0.48rem 1.2rem;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.is-active {
  background: var(--accent-dim);
}
.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.project-full-card {
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out);
  display: block;
  will-change: transform;
}
.project-full-card:hover {
  transform: translateY(-4px);
}
.project-full-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-full-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-full-info {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}
.project-full-type {
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.project-full-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 300;
}
.project-full-link {
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
  transition: color 0.25s;
}
.project-full-card:hover .project-full-link {
  color: var(--accent);
}

/* === 18. BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--accent); gap: 0.75rem; }

/* === 19. RESPONSIVE === */
@media (max-width: 600px) {
  .projects-full-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-sub { font-size: 0.96rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .page-hero-inner { flex-direction: column; }
}
