*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  transition: background-color .35s ease, color .35s ease;
}

.theme-transitioning,
.theme-transitioning * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}

h1, h2, h3, h4, h5, h6, .btn, .nav-logo, .nav-links a {
  font-family: 'Outfit', sans-serif;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline-offset: 0;
}

:root, [data-theme="light"] {
  --color-bg: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-card: #FFFFFF;
  --color-text: #111111;
  --color-text-secondary: #666666;
  --color-accent: #FF8300;
  --color-accent-hover: #E88E0F;
  --color-text-on-accent: #FFFFFF;
  --color-border: #E8E8E8;

  --color-nav-bg: rgba(255,255,255,0.85);
  --color-glass-border: rgba(17,17,17,0.08);
  --color-code-bg: #F5F5F5;

  --color-footer-bg: #151515;
  --color-footer-text: #e0e0e0;
  --color-footer-border: rgba(255,255,255,0.15);

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --shadow-accent: 0 4px 20px rgba(255,159,28,0.35);

  --radius-pill: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

::selection {
  background: #93E1D8;
  color: #111;
}

[data-theme="dark"] {
  --color-bg: #0c0c0c;
  --color-surface: #151515;
  --color-card: #1a1a1a;
  --color-text: #f0f0f0;
  --color-text-secondary: #a0a0a0;
  --color-accent: #FF9300;
  --color-accent-hover: #FFC266;
  --color-text-on-accent: #FFFFFF;
  --color-border: #2a2a2a;
  --color-footer-bg: #151515;
  --color-footer-text: #e0e0e0;
  --color-footer-border: rgba(255,255,255,0.15);

  --color-nav-bg: rgba(12,12,12,0.85);
  --color-glass-border: rgba(240,240,240,0.08);
  --color-code-bg: #1a1a1a;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.32);
  --shadow-md: 0 8px 24px rgba(0,0,0,.40);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.50);
  --shadow-accent: 0 4px 20px rgba(255,179,71,0.30);

  --radius-pill: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] ::selection {
  background: #F877C7;
  color: #f0f0f0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 56px;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 12px;
  transition: color .35s ease;
}

.section-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 60px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--color-accent);
  padding: 8px 0;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn-text:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-glass-border);
  transition: box-shadow .35s ease, background-color .35s ease;
}

@supports (backdrop-filter: blur(12px)) {
  .navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
  transition: height .3s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar.scrolled .nav-inner {
  height: 60px;
}

.nav-logo {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.5px;
  transition: color .35s ease;
}
.nav-logo span {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color .25s cubic-bezier(.25,.46,.45,.94);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width .3s cubic-bezier(.25,.46,.45,.94);
}

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

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

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
}

.theme-btn:hover {
  transform: rotate(15deg);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

.lang-toggle {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: all .25s cubic-bezier(.25,.46,.45,.94);
}

.lang-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- OFF-CANVAS OVERLAY --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s ease;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

.nav-offcanvas {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-bg);
  z-index: 999;
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right .35s cubic-bezier(.25,.46,.45,.94);
  box-shadow: var(--shadow-lg);
}

.nav-offcanvas.open {
  right: 0;
}

.nav-offcanvas a {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  transition: color .25s;
}

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

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--color-bg);
  transition: background-color .35s ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero-title strong {
  font-weight: 700;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-subtitle strong {
  font-family: 'Outfit', sans-serif;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-ctas .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-shape {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.hero-shape.secondary {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -5%;
  right: 0;
  border-width: 2.5px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: float 7s ease-in-out infinite 0.5s reverse;
  z-index: 2;
}

.hero-shape.tertiary {
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -5%;
  left: 0;
  border-width: 2px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
  animation: float 8s ease-in-out infinite 1s;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PROYECTOS --- */
.proyectos {
  background: var(--color-surface);
  transition: background-color .35s ease;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.caso-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.caso-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--color-accent);
  transform: translateY(-8px) scale(1.02);
}

.caso-cover {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-size 0.4s ease;
}

.caso-card:hover .caso-cover {
  background-size: 115%;
}

.caso-cover-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.caso-card .caso-cover-content > * {
  display: none;
}

.caso-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.caso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  transition: all .25s;
}

.caso-card:hover .tag {
  background: var(--color-accent);
  color: #fff;
}

.caso-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0;
  font-family: 'Outfit', sans-serif;
}

.caso-abstract {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 16px 0 12px;
}

/* Mockup phone */
  .mockup-phone {
  width: 140px;
  height: 260px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  padding: 8px;
  position: relative;
  z-index: 2;
  transition: transform .3s ease;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-card {
  width: 80px;
  height: 100px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
}

.mockup-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
}

.shape-rocket {
  top: 15%;
  right: 15%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border: none;
  background: rgba(255,255,255,0.1);
}

.shape-sub {
  bottom: 20%;
  left: 10%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: none;
  background: rgba(255,255,255,0.08);
}

/* Split visual */
.split-visual {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.split-left, .split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mini-cal {
  width: 100%;
  height: 80px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}

.tooltip-fake {
  width: 80%;
  height: 30px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  position: relative;
}

.tooltip-fake::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}

.code-block {
  width: 100%;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
}

.form-fake {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-field {
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.form-field:nth-child(2) { width: 80%; }
.form-field:nth-child(3) { width: 60%; }

.signature-preview {
  width: 100%;
  height: 120px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
}

.caso-figuras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.fig-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,0.9);
  font-size: 28px;
  text-align: center;
  min-height: 160px;
}

.fig-placeholder small {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* --- ABOUT --- */
.about {
  background: var(--color-bg);
  transition: background-color .35s ease;
}

  .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--color-accent);
  font-weight: 600;
}

.about-extra {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.extra-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.extra-item strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
}

.extra-item span,
.extra-item a {
  font-size: 15px;
  color: var(--color-text);
}

.extra-item a {
  color: var(--color-accent);
  font-weight: 500;
}

.extra-item a:hover {
  color: var(--color-accent);
}

/* About sidebar */
.about-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-photo {
  text-align: center;
  margin-bottom: 32px;
}

.about-photo-img-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

.about-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
}

.about-photo-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-md);
}

.about-photo h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  font-family: 'Outfit', sans-serif;
}

.about-role {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.about-skills {
  margin-bottom: 32px;
}

.about-skills h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  margin-bottom: 12px;
  margin-top: 24px;
}

.about-skills h4:first-child {
  margin-top: 0;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  background: var(--color-surface);
}

.skill-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  box-shadow: var(--shadow-accent);
  font-family: 'Outfit', sans-serif;
}

.btn-cta:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 20px;
}

/* --- TOAST --- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- FOOTER --- */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 80px 0 40px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}

.footer-title {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 16px;
  color: var(--color-footer-text);
}

.footer-email {
  font-size: 22px;
  color: var(--color-footer-text);
  font-weight: 500;
  opacity: 0.9;
  transition: opacity .25s;
}

.footer-email:hover {
  opacity: 1;
}

.footer-phone {
  font-size: 16px;
  opacity: 0.75;
  margin-top: 8px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link span {
  display: none;
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-footer-bg);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding-top: 24px;
  width: 100%;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.75;
}

.footer-bottom .brand {
  font-family: 'Outfit', sans-serif;
}

/* --- CASO PAGE --- */
.caso-page {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--color-bg);
  min-height: 100vh;
}

.caso-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color .25s;
}

.caso-page .back-link:hover {
  color: var(--color-accent);
}

.caso-page-header {
  margin-bottom: 48px;
}

.caso-page-header .caso-tags {
  margin-bottom: 16px;
}

.caso-page-header h1 {
  font-size: 44px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 8px;
}

.caso-page-header .caso-meta {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.caso-page-cover {
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.caso-section {
  max-width: 720px;
  margin: 0 auto 48px;
}

.caso-section h2 {
  font-size: 24px;
  font-weight: 500;
 /* color: var(--color-accent);*/
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.caso-section h2 span{
 color: var(--color-accent);
 font-weight: 700;
}

.caso-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 16px;
}

.caso-section p:last-child {
  margin-bottom: 0;
}

.caso-section .caso-figuras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.caso-fig-half,
.caso-fig-30,
.caso-fig-60 {
  margin: 24px auto;
  text-align: center;
}

.caso-fig-half {
  width: 50%;
}

.caso-fig-30 {
  width: 30%;
}

.caso-fig-60 {
  width: 60%;
}

.caso-fig-half img,
.caso-fig-30 img,
.caso-fig-60 img {
  width: 100%;
  border-radius: 12px;
}

.caso-fig-half figcaption,
.caso-fig-30 figcaption,
.caso-fig-60 figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.caso-layout-side {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 24px 0;
}

.caso-layout-side .caso-col-third {
  width: calc(33.33% - 16px);
}

.caso-layout-side .caso-col-two-thirds {
  width: calc(66.66% - 16px);
}

@media (max-width: 768px) {
  .caso-page-header h1 {
    font-size: 32px;
  }

  .caso-section .caso-figuras {
    grid-template-columns: 1fr;
  }

  .caso-fig-half,
  .caso-fig-30,
  .caso-fig-60 {
    width: 100%;
  }

  .caso-layout-side .caso-col-third,
  .caso-layout-side .caso-col-two-thirds {
    width: 100%;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-shape {
    width: 240px;
    height: 240px;
  }

  .hero-shape.secondary {
    width: 160px;
    height: 160px;
  }

  .hero-shape.tertiary {
    width: 140px;
    height: 140px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .caso-cover {
    min-height: 200px;
  }

  .section-title {
    font-size: 42px;
  }

  .section-desc {
    max-width: none;
  }

  .caso-figuras {
    grid-template-columns: 1fr;
  }
}

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

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .section-desc {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .proyectos-grid {
    grid-template-columns: 1fr;
  }

  .caso-body {
    padding: 24px;
  }

  .caso-title {
    font-size: 24px;
  }

  .about-text p {
    font-size: 16px;
  }

  .footer-title {
    font-size: 32px;
  }

  .footer-email {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-profile-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero-shape.secondary {
    width: 120px;
    height: 120px;
  }

  .hero-shape.tertiary {
    width: 100px;
    height: 100px;
  }

  .mockup-phone {
    width: 110px;
    height: 200px;
  }

  .footer-social {
    gap: 16px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  .about-photo-img-wrapper {
    width: 120px;
    height: 120px;
  }
}
