:root {
  --cream: #f5ebdd;
  --petrol: #0e4d5b;
  --pink: #e9a8bd;
  --lavender: #cbb7e8;
  --mauve: #977c9f;
  --graphite: #303039;
  --oil-dark: #093943;
  --white: #fffefa;
  --line: rgba(14, 77, 91, 0.18);
  --wrap: 1400px;
  --header-height: 78px;
  --scroll-progress: 0%;
  --hero-shift: 0px;
  --step-progress: 0%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--graphite);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.1rem; /* Lectura principal: ~18px, manteniendo titulares aprobados. */
}

body::before {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: var(--scroll-progress);
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--mauve));
  content: "";
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--petrol);
  border-radius: 9px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(calc(100% - 76px), var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: 3%;
  left: 3%;
  color: var(--petrol);
  background: rgba(245, 235, 221, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(14, 77, 91, 0.08);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 12px 35px rgba(14, 77, 91, 0.14);
}

.nav-wrap {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--petrol);
}

.brand-picture { display: block; flex: 0 0 210px; width: 210px; }
.brand-image { display: block; width: 100%; height: auto; }
.brand-mobile-name { display: none; margin-left: 9px; font-size: 1rem; font-weight: 850; letter-spacing: -0.04em; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.55vw, 22px);
  color: #466168;
  font-size: 0.89rem;
  font-weight: 800;
}

.nav a { position: relative; padding: 8px 0; transition: color 180ms ease; }
.nav a:hover, .nav a[aria-current="location"] { color: var(--mauve); }
.nav-cta { padding: 11px 17px !important; color: var(--white) !important; background: var(--petrol); border-radius: 999px; }
.nav-indicator { position: absolute; bottom: -5px; left: 0; display: block; height: 3px; background: var(--pink); border-radius: 9px; opacity: 0; transition: opacity 160ms ease, transform 220ms ease, width 220ms ease; }
.nav-indicator.is-visible { opacity: 1; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--petrol);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.menu-button span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 9px; transition: transform 180ms ease, opacity 180ms ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

section { position: relative; overflow: hidden; }
.section-pad { padding: 130px 0; }
.dark { color: var(--cream); background: var(--petrol); }
.kicker, .eyebrow { color: var(--mauve); font-size: 0.875rem; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.dark .kicker { color: var(--pink); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 21px;
  border: 1px solid var(--petrol);
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--petrol); }
.button-light { color: var(--petrol); background: transparent; }
.dark .button-light { color: var(--cream); border-color: rgba(245, 235, 221, 0.6); }

.hero {
  min-height: auto;
  padding: 125px 0 62px;
  background: radial-gradient(circle at 84% 24%, rgba(233, 168, 189, 0.36), transparent 30%), var(--cream);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(430px, 0.9fr); align-items: center; gap: clamp(34px, 4vw, 56px); }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 600px; }
.hero-topline p { margin: 0; }
.hero-coordinate { color: rgba(14, 77, 91, 0.56); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85rem; }
.hero h1 { max-width: 900px; margin: 36px 0 0; color: var(--petrol); font-size: clamp(3.6rem, 5.6vw, 5.8rem); font-weight: 850; letter-spacing: -0.092em; line-height: 0.9; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.hero h1 .line-inner { display: block; }
.has-js .hero h1 .line-inner { opacity: 0; transform: translateY(105%); animation: slideIn 1s cubic-bezier(0.2, 0.8, 0.25, 1) forwards; }
.has-js .hero h1 .line:nth-child(2) .line-inner { animation-delay: 120ms; }
.hero h1 .accent, .section-title span { color: var(--mauve); }

.hero-lower { display: block; margin-top: clamp(36px, 4vw, 52px); }
.hero-summary { max-width: 490px; }
.hero-summary > p:first-child { margin: 0 0 24px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.micro-note { margin: 20px 0 0; color: #677174; font-size: 0.95rem; letter-spacing: 0.02em; }
.micro-note span { color: var(--mauve); }
.scroll-mark { display: flex; align-items: center; gap: 12px; margin-top: 32px; color: var(--petrol); font-size: 0.83rem; font-weight: 800; letter-spacing: 0.12em; }
.scroll-mark span { display: inline-block; width: 1px; height: 52px; background: var(--petrol); transform-origin: top; animation: linePulse 2.4s ease-in-out infinite; }

.hero-art { position: relative; min-height: 500px; display: grid; place-items: center; transform: translateY(var(--hero-shift)); transition: transform 120ms linear; }
.hero-orbit { position: absolute; width: min(94%, 570px); aspect-ratio: 1; border: 1px solid rgba(151, 124, 159, 0.28); border-radius: 50%; box-shadow: 0 0 0 44px rgba(203, 183, 232, 0.11), 0 0 0 88px rgba(233, 168, 189, 0.08); }
.hero-preview { position: relative; z-index: 1; width: min(100%, 570px); overflow: hidden; background: var(--white); border: 7px solid var(--petrol); border-radius: 21px; box-shadow: 24px 30px 0 rgba(14, 77, 91, 0.12), 0 26px 65px rgba(14, 77, 91, 0.2); transform: rotate(3deg); animation: previewFloat 8s ease-in-out infinite; }
.preview-head, .browser-bar { display: flex; height: 34px; align-items: center; gap: 6px; padding: 0 14px; color: #667377; background: #fffaf3; border-bottom: 1px solid #e4dbd2; font-size: 0.72rem; }
.preview-head i, .browser-bar i { width: 8px; height: 8px; background: var(--pink); border-radius: 50%; }
.preview-head i:nth-child(2), .browser-bar i:nth-child(2) { background: var(--lavender); }
.preview-head i:nth-child(3), .browser-bar i:nth-child(3) { background: var(--mauve); }
.preview-head span, .browser-bar span { margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-preview img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; object-position: center; }
.hero-preview-label { position: absolute; right: 17px; bottom: 15px; padding: 8px 11px; color: var(--petrol); background: rgba(245, 235, 221, 0.9); border-radius: 8px; font-size: 0.83rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.floating-label { position: absolute; z-index: 2; right: 2%; bottom: 10%; padding: 14px 20px; color: var(--cream); background: var(--petrol); border-radius: 13px; box-shadow: 0 15px 40px rgba(14, 77, 91, 0.19); font-size: 0.94rem; font-weight: 850; transform: rotate(3deg); animation: labelDrift 5s ease-in-out infinite alternate; }

.marquee, .ticker-band { overflow: hidden; color: #ffffff; background: var(--pink); font-size: clamp(1.1rem, 2.7vw, 2.2rem); font-weight: 900; letter-spacing: -0.05em; white-space: nowrap; }
.marquee { padding: 17px 0; }
.marquee > div, .ticker-band > div { width: max-content; animation: marquee 30s linear infinite; }
.marquee span, .ticker-band span { padding: 0 16px; color: inherit; }

.section-intro { display: grid; grid-template-columns: 1fr minmax(250px, 0.7fr); align-items: end; gap: 8%; margin: 24px 0 52px; }
.section-intro > p { max-width: 470px; margin: 0 0 5px; color: #597078; font-size: 1.12rem; line-height: 1.7; }
.dark .section-intro > p { color: rgba(245, 235, 221, 0.73); }
.section-title { max-width: 830px; margin: 0; color: var(--petrol); font-size: clamp(3.2rem, 6.5vw, 7rem); font-weight: 850; letter-spacing: -0.09em; line-height: 0.92; }
.dark .section-title { color: var(--cream); }

.neon-title { text-shadow: none; }
.neon-title .accent, .section-title.neon-title > span { text-shadow: none; }
.dark .neon-title .accent, .dark .section-title.neon-title > span,
.contact .neon-title .accent, .contact .section-title.neon-title > span { color: var(--lavender); }

.services-section { background: var(--petrol); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
/* Tarjetas de servicios: superficies diferenciadas sin cambiar su estructura. */
.service-card {
  --card-surface: var(--cream);
  --card-accent: var(--pink);
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  color: var(--petrol);
  background: var(--card-surface);
  border: 1px solid rgba(14, 77, 91, 0.22);
  border-radius: 22px;
  transition: transform 350ms ease, background 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}
.service-card:nth-child(2) { --card-surface: var(--lavender); --card-accent: var(--mauve); }
.service-card:nth-child(3) { --card-surface: var(--pink); --card-accent: var(--lavender); }
.service-card::before { position: absolute; top: var(--my, 50%); left: var(--mx, 50%); z-index: -1; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%); content: ""; opacity: 0; transform: translate(-50%, -50%); transition: opacity 220ms ease; pointer-events: none; }
.service-card::after { position: absolute; top: 0; right: 22px; width: 46px; height: 4px; background: var(--card-accent); border-radius: 0 0 4px 4px; content: ""; pointer-events: none; }
.service-card:hover, .service-card:focus-within { background: var(--card-surface); border-color: rgba(14, 77, 91, 0.46); box-shadow: 0 18px 36px rgba(4, 32, 39, 0.15); transform: translateY(-8px); }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--petrol); font-size: 0.88rem; font-weight: 850; letter-spacing: 0.16em; }
.service-arrow { color: var(--petrol); font-size: 1.35rem; font-weight: 500; }
.service-visual { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(14, 77, 91, 0.14); border-radius: 12px; opacity: 0.96; transition: transform 450ms cubic-bezier(0.2, 0.8, 0.25, 1), opacity 300ms ease; }
.service-card:hover .service-visual { opacity: 1; transform: scale(1.035); }
.service-card h3 { max-width: 350px; margin: 0; color: var(--petrol); font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -0.075em; line-height: 0.98; }
.service-card p { margin: 12px 0 0; color: #254b55; font-size: 1.08rem; line-height: 1.65; }
.service-link { display: flex; margin-top: auto; align-items: center; justify-content: space-between; padding: 0; color: var(--petrol); background: transparent; border: 0; font-size: 0.98rem; font-weight: 850; text-align: left; }
.service-link span { color: var(--petrol); font-size: 1.1rem; transition: transform 180ms ease; }
.service-link:hover span, .service-link:focus-visible span { transform: translateX(4px); }

/* El panel toma el mismo tono de la tarjeta seleccionada. */
.service-detail { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 18px; padding: 26px 28px; color: var(--petrol); background: var(--cream); border: 1px solid rgba(14, 77, 91, 0.24); border-radius: 18px; }
.service-detail[data-service="gestion"] { background: var(--lavender); }
.service-detail[data-service="software"] { background: var(--pink); }
.service-detail[hidden] { display: none; }
.services-section .service-detail .kicker { margin: 0 0 8px; color: var(--petrol); }
.service-detail h3 { margin: 0; font-size: 1.75rem; letter-spacing: -0.05em; }
.service-detail p:last-child { max-width: 780px; font-size: 1.08rem; margin: 8px 0 0; color: #254b55; line-height: 1.65; }
.services-section .service-detail .button-light { color: var(--petrol); border-color: var(--petrol); background: rgba(255, 254, 250, 0.24); }
.services-section .service-detail .button-light:hover { background: rgba(255, 254, 250, 0.48); }

.projects { background: #fcf8f1; }
.projects-intro { margin-top: 0; }
.portfolio-grid { display: grid; gap: 42px; }
.portfolio-card { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr); min-height: 560px; overflow: hidden; background: var(--petrol); border-radius: 24px; box-shadow: 0 25px 65px rgba(14, 77, 91, 0.12); }
.portfolio-media { display: grid; min-height: 560px; place-items: center; padding: clamp(24px, 4vw, 60px); background: linear-gradient(135deg, #e8dff0, var(--lavender)); }
.portfolio-browser { width: 100%; overflow: hidden; background: var(--white); border: 6px solid var(--petrol); border-radius: 15px; box-shadow: 17px 23px 0 rgba(14, 77, 91, 0.19); transform: rotate(-2deg); transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease; }
.portfolio-browser .browser-bar { display: none; }
.portfolio-card:hover .portfolio-browser, .portfolio-card:focus-within .portfolio-browser { box-shadow: 22px 28px 0 rgba(14, 77, 91, 0.16); transform: rotate(0) translateY(-8px) scale(1.015); }
.portfolio-browser img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #fff; }
.portfolio-info { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(30px, 4.5vw, 68px) clamp(24px, 4vw, 55px); color: var(--cream); }
.portfolio-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--pink); font-size: 0.84rem; font-weight: 850; letter-spacing: 0.12em; }
.status { padding: 7px 10px; color: var(--petrol); background: var(--pink); border-radius: 999px; }
.portfolio-info h3 { margin: 0 0 15px; color: var(--cream); font-size: clamp(3rem, 5vw, 5.4rem); letter-spacing: -0.09em; line-height: 0.9; }
.portfolio-info p { margin: 0; font-size: 1.08rem; color: rgba(245, 235, 221, 0.76); line-height: 1.7; }
.portfolio-link, .portfolio-link-note { margin-top: auto !important; font-size: 0.98rem !important; font-weight: 850; letter-spacing: 0.04em; }
.portfolio-link { color: var(--pink) !important; }
.portfolio-link:hover { color: var(--cream) !important; }
.portfolio-link-note { color: rgba(245, 235, 221, 0.53) !important; }
.portfolio-note { display: flex; align-items: start; justify-content: space-between; gap: 32px; margin-top: 24px; padding-top: 17px; border-top: 1px solid rgba(151, 124, 159, 0.38); color: #6f6a75; font-size: 0.88rem; font-weight: 800; letter-spacing: 0.08em; }
.portfolio-note span:last-child { max-width: 500px; color: #8a7f8b; font-weight: 500; letter-spacing: 0; line-height: 1.55; text-align: right; }

.process { background: var(--cream); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 66px; padding-top: 24px; }
.steps::before { position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--petrol) var(--step-progress), rgba(14, 77, 91, 0.18) var(--step-progress)); content: ""; transition: background 250ms ease; }
.step { position: relative; z-index: 1; min-height: 220px; padding: 25px 22px 24px; background: rgba(255, 254, 250, 0.42); border: 1px solid rgba(14, 77, 91, 0.18); border-radius: 18px; transition: transform 400ms ease, opacity 400ms ease, border-color 250ms ease, background 250ms ease; }
.step:nth-child(1) { --step-accent: #E9A8BD; }
.step:nth-child(2) { --step-accent: #CBB7E8; }
.step:nth-child(3) { --step-accent: #0E4D5B; }
.step:nth-child(4) { --step-accent: #977C9F; }
.step::after { position: absolute; top: -1px; right: 20px; width: 42px; height: 3px; background: var(--step-accent); border-radius: 0 0 8px 8px; content: ""; }
.step:nth-child(even) { --step-offset: 16px; transform: translateY(var(--step-offset)); }
.step b { display: inline-flex; align-items: center; gap: 10px; color: var(--petrol); font-size: 0.88rem; letter-spacing: 0.16em; }
.step b::before { width: 10px; height: 10px; flex: 0 0 auto; background: var(--cream); border: 2px solid var(--step-accent); border-radius: 50%; box-shadow: 0 0 0 5px var(--cream); content: ""; }
.step h3 { margin: 30px 0 14px; color: var(--petrol); font-size: clamp(1.6rem, 2.5vw, 2.6rem); letter-spacing: -0.07em; }
.step p { max-width: 240px; margin: 0; color: #59696c; font-size: 1.08rem; line-height: 1.65; }
.step:hover, .step:focus-within { background: rgba(255, 254, 250, 0.78); border-color: var(--step-accent); }
.step.active { --step-offset: -8px; background: rgba(255, 254, 250, 0.78); border-color: var(--step-accent); transform: translateY(var(--step-offset)); }
.step.active b::before { background: var(--step-accent); }

.ticker-band { padding: 20px 0; background: var(--pink); }
.ticker-band span { color: inherit; }
.about { background: #e8dff0; }
.about-layout { display: grid; gap: 42px; }
.about-heading { max-width: 920px; }
.about-grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 8%; }
.portrait { position: relative; max-width: 520px; margin: 0 auto; padding: 25px; isolation: isolate; background: linear-gradient(145deg, var(--mauve), var(--pink)); border-radius: 48px 48px 150px 150px; transform: translateY(var(--about-shift, 0px)); transition: transform 120ms linear; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 36px 36px 126px 126px; box-shadow: 0 18px 42px rgba(26, 62, 71, 0.13); }
.portrait-label { position: absolute; right: 16px; bottom: 13px; padding: 10px 13px; color: var(--petrol); background: rgba(255, 253, 240, 0.92); border-radius: 10px; font-size: 0.93rem; font-weight: 850; }
.portrait-label b { color: var(--pink); }
.code-object, .terminal-object, .cursor-object { position: absolute; z-index: 2; box-shadow: 0 14px 28px rgba(26, 62, 71, 0.16); pointer-events: none; }
.code-object { top: -28px; left: -44px; width: min(210px, 42%); padding: 11px 13px 14px; color: var(--cream); background: var(--petrol); border: 1px solid rgba(245, 235, 221, 0.26); border-radius: 13px; transform: rotate(-6deg); }
.code-object-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 13px; color: rgba(245, 235, 221, 0.58); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.7rem; }
.code-object-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.code-object-bar i:nth-child(2) { background: var(--lavender); }
.code-object-bar i:nth-child(3) { background: var(--cream); }
.code-object-bar span { margin-left: 5px; }
.code-object code, .terminal-object code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.82rem; }
.code-object code b, .terminal-object code b { color: var(--pink); }
.code-object code em { color: var(--lavender); font-style: normal; }
.terminal-object { right: -35px; bottom: 54px; display: grid; gap: 8px; min-width: 162px; padding: 13px 15px; color: var(--cream); background: #263c45; border: 1px solid rgba(245, 235, 221, 0.22); border-radius: 12px; transform: rotate(4deg); }
.terminal-object > span { color: rgba(245, 235, 221, 0.62); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.7rem; }
.terminal-object code em { color: var(--pink); font-style: normal; }
.cursor-object { right: 18%; top: -33px; display: grid; width: 42px; height: 42px; place-items: center; color: var(--petrol); background: var(--cream); border: 4px solid var(--pink); border-radius: 50%; font-size: 0.82rem; transform: rotate(12deg); }
.about-copy > p { max-width: 660px; margin: 17px 0 0; font-size: 1.1rem; color: #5e6b70; line-height: 1.68; }
.about-copy strong { color: var(--petrol); }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 25px; }
.about-tags span { padding: 7px 10px; color: #51666c; background: #f5f0f1; border-radius: 999px; font-size: 0.93rem; font-weight: 800; }

.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(46px, 9vw, 110px); }
.faq-heading p { max-width: 430px; font-size: 1.08rem; line-height: 1.7; }
.faqs details { border-top: 1px solid rgba(151, 124, 159, 0.34); transition: background 260ms ease, border-color 260ms ease; }
.faqs details:last-child { border-bottom: 1px solid rgba(151, 124, 159, 0.34); }
.faqs details[open] { background: rgba(203, 183, 232, 0.16); border-color: rgba(151, 124, 159, 0.52); }
.faqs summary { position: relative; padding: 20px 35px 20px 0; color: var(--graphite); font-size: 1.15rem; font-weight: 800; cursor: pointer; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { position: absolute; top: 50%; right: 7px; color: var(--mauve); content: "+"; font-size: 1.3rem; transform: translateY(-50%); transition: transform 180ms ease; }
.faqs details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faqs details p { max-width: 650px; margin: -2px 35px 20px 0; color: #4f4d58; font-size: 1.08rem; line-height: 1.65; }

.contact { color: var(--cream); background: linear-gradient(135deg, var(--petrol) 0%, var(--oil-dark) 100%); }
.contact::before, .contact::after { position: absolute; content: ""; pointer-events: none; }
.contact::before { bottom: -340px; left: -150px; width: 540px; height: 540px; background: radial-gradient(circle, rgba(203, 183, 232, 0.24), transparent 70%); }
.contact::after { top: -210px; right: -110px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(233, 168, 189, 0.18), transparent 70%); animation: contactGlow 14s ease-in-out infinite; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr); align-items: stretch; gap: 48px; }
.contact .section-title { max-width: 740px; color: var(--cream); font-size: clamp(3.8rem, 7.8vw, 8rem); }
.contact-copy { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.contact-copy > p { max-width: 520px; font-size: 1.1rem; align-self: center; margin: 0; padding: 25px 0 30px; color: var(--cream); line-height: 1.7; }
.contact-actions { display: flex; flex-direction: column; gap: 0; }
.contact-options { display: grid; gap: 10px; margin-top: auto; margin-bottom: 18px; }
.contact-copy > .contact-button, .contact-actions > .contact-button { width: min(100%, 370px); }
.contact-copy > .contact-button { align-self: end; }
.contact-button { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 1.02rem; font-weight: 850; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.contact-button:hover { transform: translateX(4px); }
.contact-button-label { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.contact-button-light { color: var(--petrol); background: var(--cream); border-color: var(--cream); }
.contact-button-light:hover { background: var(--white); border-color: var(--white); }
.contact-button-outline { color: var(--petrol); background: var(--lavender); border-color: var(--lavender); box-shadow: 0 8px 18px rgba(3, 31, 38, 0.1); }
.contact-button-outline:hover { background: var(--cream); border-color: var(--cream); }
.contact-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.contact-icon-dot { fill: currentColor; stroke: none; }
.select-label { color: rgba(245, 235, 221, 0.88); font-size: 0.89rem; font-weight: 750; }
.select-wrap { position: relative; width: min(100%, 370px); }
.select { width: 100%; max-width: none; padding: 14px 44px 14px 15px; color: var(--petrol); background: var(--cream); border: 0; border-radius: 12px; box-shadow: 0 8px 18px rgba(3, 31, 38, 0.08); cursor: pointer; appearance: none; transition: transform 220ms ease, box-shadow 220ms ease; }
.select-wrap:hover .select, .select-wrap:focus-within .select { transform: translateY(-2px); box-shadow: 0 13px 25px rgba(3, 31, 38, 0.14); }
.select:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.select-arrow { position: absolute; z-index: 1; top: 50%; right: 17px; width: 8px; height: 8px; border-right: 1.5px solid var(--petrol); border-bottom: 1.5px solid var(--petrol); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.contact-options-note { position: relative; margin: 4px 0 0; padding-bottom: 11px; color: rgba(245, 235, 221, 0.78); font-size: 0.94rem; line-height: 1.5; }
.contact-options-note::after { position: absolute; bottom: 0; left: 0; width: 42px; height: 1px; background: var(--pink); content: ""; opacity: 0.7; }

.footer { padding: 45px 0 20px; color: #6e7879; background: #fcfaf6; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: start; }
.footer-brand { display: block; width: min(255px, 100%); }
.footer-brand img { width: 100%; height: auto; }
.footer-grid p { margin: 15px 0 0; font-size: 1rem; line-height: 1.55; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 9px 28px; color: #55686d; font-size: 1rem; font-weight: 750; }
.footer-nav a:hover { color: var(--mauve); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 14px; border-top: 1px solid #ece4dd; font-size: 0.91rem; }

.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.has-js .reveal.visible { opacity: 1; transform: none; }

@keyframes slideIn { to { opacity: 1; transform: translateY(0); } }
@keyframes linePulse { 50% { transform: scaleY(0.45); } }
@keyframes previewFloat { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-14px); } }
@keyframes labelDrift { to { transform: translateY(-17px) rotate(-2deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes contactGlow { 50% { transform: translate(35px, 25px); } }

@media (max-width: 1100px) {
  .nav { gap: 10px; font-size: 0.86rem; }
  .hero h1 { font-size: clamp(4rem, 8.2vw, 7rem); }
  .portfolio-card { grid-template-columns: minmax(0, 1.2fr) minmax(245px, 0.8fr); }
}

@media (max-width: 900px) {
  :root { --header-height: 70px; }
  .menu-button { display: flex; }
  .nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; color: #466168; background: rgba(255, 254, 250, 0.97); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12); }
  .nav.open { display: flex; }
  .nav a:not(.nav-cta) { padding: 12px 10px; }
  .nav-cta { margin-top: 7px; text-align: center; }
  .nav-indicator { display: none; }
  .brand-picture { flex-basis: 40px; width: 40px; }
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 480px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-visual { max-height: 280px; }
  .section-intro, .about-grid, .faq-grid, .contact-inner { grid-template-columns: 1fr; }
  .section-intro { gap: 24px; }
  .section-intro > p { margin: 0; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-media { min-height: 390px; }
  .portfolio-info { min-height: 370px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { width: min(100%, 430px); min-width: 0; }
  .contact-copy { display: flex; flex-direction: column; min-width: 0; }
  .contact-copy > p { align-self: stretch; margin: 20px 0 24px; padding: 0; }
  .contact-options { margin-top: 0; margin-bottom: 18px; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 36px), var(--wrap)); }
  .site-header { top: 10px; }
  .brand-picture { width: 40px; height: 40px; }
  .brand-image { width: 40px; height: 40px; object-fit: contain; }
  .brand-mobile-name { display: inline; }
  .hero { min-height: auto; padding: 120px 0 78px; }
  .hero-topline { align-items: start; flex-direction: column; gap: 8px; }
  .hero-coordinate { display: none; }
  .hero h1 { margin-top: 46px; font-size: clamp(3.1rem, 13vw, 5.4rem); }
  .hero-lower { display: block; margin-top: 42px; }
  .scroll-mark { margin-top: 28px; }
  .hero-art { min-height: 390px; transform: none; }
  .hero-orbit { width: 90%; }
  .hero-preview { width: min(100%, 570px); }
  .floating-label { right: 0; bottom: 5%; }
  .scroll-mark { display: none; }
  .section-pad { padding: 90px 0; }
  .section-title { font-size: clamp(3rem, 12vw, 5.3rem); }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 50px; padding-top: 0; }
  .steps::before { top: 0; bottom: 0; left: 5px; width: 2px; height: var(--step-progress); }
  .step, .step:nth-child(even) { min-height: 0; margin-left: 16px; padding: 22px 20px 32px 28px; border: 1px solid rgba(14, 77, 91, 0.18); border-left: 3px solid var(--step-accent); border-radius: 0 16px 16px 16px; transform: none; }
  .step.active { transform: none; }
  .portfolio-media { min-height: 0; padding: 27px 18px; }
  .portfolio-browser { border-width: 5px; transform: rotate(-1deg); }
  .portfolio-info { min-height: 330px; padding: 32px 25px; }
  .portfolio-note { align-items: start; flex-direction: column; gap: 10px; }
  .portfolio-note span:last-child { text-align: left; }
  .about-grid { gap: 38px; }
  .portrait { padding: 18px; border-radius: 38px 38px 96px 96px; }
  .portrait img { border-radius: 28px 28px 78px 78px; }
  .code-object { top: -20px; left: -8px; width: 180px; }
  .terminal-object { right: -7px; bottom: 42px; }
  .cursor-object { right: 19%; top: -25px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .hero h1 { font-size: clamp(2.95rem, 14vw, 4.2rem); }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-art { min-height: 325px; }
  .hero-preview { border-width: 5px; }
  .preview-head { height: 29px; }
  .preview-head span { display: none; }
  .service-card { padding: 23px; }
  .service-card h3 { font-size: 2.25rem; }
  .service-detail { align-items: flex-start; flex-direction: column; padding: 21px; }
  .portfolio-info h3 { font-size: 3.4rem; }
  .portfolio-top { align-items: start; flex-direction: column; }
  .contact .section-title { font-size: clamp(3.3rem, 14vw, 5rem); }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 9px 16px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .has-js .reveal, .has-js .hero h1 .line-inner { opacity: 1; transform: none; }
  .neon-title, .has-js .neon-title.visible { text-shadow: none !important; }
  .hero-art, .portrait { transform: none !important; }
  .steps::before { transition: none; }
}

/* Accesibilidad: agrandar textos sin ampliar los titulares gigantes. */
.service-link, .portfolio-link, .contact-button, .button { line-height: 1.35; }
.service-link { min-height: 36px; }
.portfolio-info h3 a { color: inherit; text-decoration: none; }
.portfolio-info h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
