:root {
  --bg-page: #c3ddeb;
  --bg-page-light: #d8eaf4;
  --bg-page-deep: #b0d2e5;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  
  --pastel-blue-base: #c3ddeb;
  --pastel-blue-50: #f2f7fb;
  --pastel-blue-100: #e2eff7;
  --pastel-blue-200: #c3ddeb;
  --pastel-blue-300: #9fc7e0;
  --pastel-blue-400: #6caed3;
  --pastel-blue-500: #3b93c3;
  --pastel-blue-600: #0284c7;
  --pastel-blue-700: #0369a1;
  --accent-glow: rgba(195, 221, 235, 0.55);
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --pastel-pill-bg: rgba(255, 255, 255, 0.85);

  --ink-primary: #0f172a;
  --ink-secondary: #273549;
  --ink-muted: #52667d;
  --ink-faint: #7a91a8;

  --mac-border: rgba(160, 195, 218, 0.7);
  --mac-border-subtle: rgba(175, 207, 226, 0.5);
  --mac-border-highlight: rgba(255, 255, 255, 0.95);
  --mac-chrome: rgba(240, 247, 252, 0.94);
  
  --dot-red: #ff5f56;
  --dot-yellow: #ffbd2e;
  --dot-green: #27c93f;
  --dot-red-border: #e0443e;
  --dot-yellow-border: #dea125;
  --dot-green-border: #1aab29;

  --mac-shadow-sm: 0 2px 8px -2px rgba(25, 60, 85, 0.06), 0 0 0 1px var(--mac-border-subtle);
  --mac-shadow-md: 0 14px 34px -10px rgba(20, 60, 90, 0.12), 0 0 0 1px var(--mac-border);
  --mac-shadow-lg: 0 24px 50px -12px rgba(15, 55, 85, 0.16), 0 0 0 1px var(--mac-border);
  --mac-shadow-hover: 0 30px 65px -15px rgba(2, 132, 199, 0.22), 0 0 0 1.5px rgba(2, 132, 199, 0.6);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --max-width: 1140px;
  --gutter: 1.5rem;

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro", "Helvetica Neue", sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "SF Pro", "Helvetica Neue", sans-serif;
  --font-mono: "SF Pro Text", -apple-system, BlinkMacSystemFont, "SF Pro", "Helvetica Neue", sans-serif;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 10% 12%, rgba(255, 255, 255, 0.6) 0px, transparent 48%),
    radial-gradient(at 90% 15%, rgba(216, 234, 244, 0.75) 0px, transparent 50%),
    radial-gradient(at 50% 70%, rgba(176, 210, 229, 0.5) 0px, transparent 65%),
    radial-gradient(circle at 1px 1px, rgba(15, 65, 95, 0.05) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem 0;
  color: var(--ink-secondary);
  max-width: 65ch;
  line-height: 1.65;
}

section {
  padding: 6rem var(--gutter);
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto 3rem auto;
  position: relative;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-head h2::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
}

:focus-visible {
  outline: 2.5px solid var(--pastel-blue-400);
  outline-offset: 3px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #3bb3ff 0%, #0392db 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--mac-border);
  color: var(--ink-primary);
  box-shadow: var(--mac-shadow-sm);
}

.btn-outline:hover {
  background: var(--pastel-blue-50);
  border-color: var(--pastel-blue-300);
  color: var(--pastel-blue-700);
  transform: translateY(-2px);
  box-shadow: var(--mac-shadow-md);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  max-width: var(--max-width);
  margin: 0.75rem auto 0 auto;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--mac-border);
  box-shadow: 0 8px 30px rgba(15, 45, 80, 0.05), inset 0 1px 0 var(--mac-border-highlight);
  transition: all 0.25s ease;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wordmark-sep {
  color: var(--pastel-blue-400);
  font-weight: 400;
}

.wordmark-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(240, 247, 255, 0.8);
  border: 1px solid var(--mac-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--pastel-blue-100);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--mac-border);
  border-radius: var(--radius-md);
  box-shadow: var(--mac-shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.site-nav.is-open {
  max-height: 280px;
  padding: 0.5rem;
}

.site-nav a {
  padding: 0.85rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.site-nav a:hover {
  background-color: var(--pastel-blue-100);
  color: var(--pastel-blue-700);
  transform: translateX(4px);
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    max-height: none;
    background: none;
    border: none;
    box-shadow: none;
    gap: 0.5rem;
    overflow: visible;
    padding: 0;
  }

  .site-nav a {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    color: var(--ink-secondary);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
  }

  .site-nav a:hover {
    background-color: var(--pastel-blue-100);
    color: var(--pastel-blue-700);
    transform: none;
  }
}

/* Hero */
@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.hero-copy {
  animation: hero-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name {
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink-primary);
  margin-bottom: 0.75rem;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--pastel-pill-bg);
  border: 1px solid var(--pastel-blue-200);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pastel-blue-700);
  margin: 0.5rem 0 1.6rem 0;
}

.hero-lede {
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 56ch;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
}

.hero-photo-frame {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  animation: hero-fade-in 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -12px rgba(15, 55, 85, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px -12px rgba(15, 55, 85, 0.26);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr 410px;
    gap: 2rem;
    align-items: center;
  }

  .hero-photo-frame {
    justify-self: center;
    width: 410px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 440px;
    gap: 2.2rem;
  }

  .hero-photo-frame {
    width: 440px;
  }
}

/* Sobre mí */
.about {
  background: linear-gradient(180deg, transparent 0%, rgba(195, 221, 235, 0.4) 50%, transparent 100%);
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: flex-start;
}

.about-text {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--mac-border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--mac-shadow-md);
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  color: var(--ink-secondary);
}

.about-text .btn {
  margin-top: 0.8rem;
}

/* Stack */
.stack {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--mac-border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--mac-shadow-md);
}

.stack h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--pastel-blue-700);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stack h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--pastel-blue-500);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.8rem;
}

.stack-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--mac-border-subtle);
}

.stack-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stack-col li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: rgba(240, 247, 255, 0.7);
  border: 1px solid rgba(186, 224, 253, 0.6);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.stack-col li:hover {
  background: var(--pastel-blue-100);
  border-color: var(--pastel-blue-400);
  color: var(--pastel-blue-700);
  transform: translateX(3px);
}

.stack-col:nth-child(2) li {
  background: rgba(240, 253, 244, 0.7);
  border-color: rgba(187, 247, 208, 0.7);
}

.stack-col:nth-child(2) li:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Proyectos */
.project-group {
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-group:last-child {
  margin-bottom: 0;
}

.projects-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--mac-border) 20%, var(--mac-border) 80%, transparent 100%);
  max-width: var(--max-width);
  margin: 3.5rem auto;
  opacity: 0.85;
}

.group-header {
  margin-bottom: 1.6rem;
}

.group-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.badge-live {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-wip {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.group-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.4rem;
}

.group-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}

.card-grid-single {
  grid-template-columns: minmax(310px, 480px);
}

.project-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--mac-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--mac-shadow-md);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mac-shadow-hover);
  border-color: var(--pastel-blue-300);
}

.card-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.1rem;
  background-color: var(--mac-chrome);
  border-bottom: 1px solid var(--mac-border);
  position: relative;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: opacity 0.15s ease;
}

.dot-red {
  background-color: var(--dot-red);
  border: 0.5px solid var(--dot-red-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.dot-yellow {
  background-color: var(--dot-yellow);
  border: 0.5px solid var(--dot-yellow-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.dot-green {
  background-color: var(--dot-green);
  border: 0.5px solid var(--dot-green-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.card-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--mac-border-subtle);
  position: relative;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-preview img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.55rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pastel-blue-700);
  background: rgba(240, 247, 255, 0.85);
  border: 1px solid rgba(186, 224, 253, 0.75);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pastel-blue-700);
  background-color: var(--pastel-pill-bg);
  border: 1px solid var(--pastel-blue-200);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.card-link::after {
  content: "↗";
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.card-link:hover {
  background-color: var(--pastel-blue-500);
  color: #ffffff;
  border-color: var(--pastel-blue-500);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.card-link:hover::after {
  transform: translate(2px, -2px);
}

/* Colaboraciones */
.collab {
  background: linear-gradient(180deg, rgba(195, 221, 235, 0.45) 0%, transparent 100%);
}

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

.collab-card {
  max-width: 680px;
  margin: 0 auto;
}

.collab-header {
  margin-bottom: 0.5rem;
}

.collab-subtitle {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.collab-role-block {
  margin-top: 0.4rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--mac-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--mac-shadow-sm);
}

.collab-role-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pastel-blue-700);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
}

.collab-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.collab-role-list li {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 1.15rem;
}

.collab-role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--pastel-blue-500);
}

.carousel {
  position: relative;
  background-color: #0f172a;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  background-color: #0f172a;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 5;
}

.carousel-arrow:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dots button.is-active {
  width: 22px;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.carousel-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hint-icon {
  display: block;
  stroke: #ffffff;
}

.card-disclaimer {
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.85);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.disclaimer-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pastel-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.disclaimer-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--pastel-blue-600);
}

.disclaimer-text {
  font-size: 0.88rem !important;
  color: var(--ink-secondary) !important;
  line-height: 1.45 !important;
  margin-bottom: 0 !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1120px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-md);
  border: 1px solid var(--mac-border);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  background-color: var(--mac-chrome);
  border-bottom: 1px solid var(--mac-border);
}

.lightbox-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lightbox-traffic-lights .dot-close {
  cursor: pointer;
  border: 0.5px solid var(--dot-red-border);
  background-color: var(--dot-red);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-traffic-lights .dot-close::before {
  content: "×";
  color: #7f0000;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lightbox-traffic-lights .dot-close:hover::before {
  opacity: 1;
}

.lightbox-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.lightbox-body {
  position: relative;
  background-color: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: calc(88vh - 120px);
  overflow: hidden;
}

.lightbox-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: calc(88vh - 130px);
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-arrow:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--mac-border);
}

.lightbox-caption {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin: 0;
}

.lightbox-note {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 0;
  }
  .lightbox-dialog {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .lightbox-body {
    max-height: calc(100vh - 130px);
  }
  .lightbox-img-container img {
    max-height: calc(100vh - 140px);
  }
  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Contacto */
.contact {
  text-align: center;
}

.contact .section-head {
  margin-bottom: 1.5rem;
}

.contact-lede {
  max-width: 520px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.15rem;
  color: var(--ink-secondary);
}

.contact-links {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.contact-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--mac-border);
  color: var(--ink-secondary);
  box-shadow: var(--mac-shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.contact-icon-btn:hover {
  background: #ffffff;
  border-color: var(--pastel-blue-400);
  color: var(--pastel-blue-700);
  transform: translateY(-3px) scale(1.06);
  box-shadow: var(--mac-shadow-md);
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

/* Footer */
.site-footer {
  padding: 3rem var(--gutter) 4rem var(--gutter);
  text-align: center;
  border-top: 1px solid var(--mac-border-subtle);
  background: rgba(255, 255, 255, 0.4);
}

.site-footer p {
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-faint);
}
