/* Additions only: shared navigation, SEO service page and new portfolio cases. */
.hero-seo-link { display: inline-block; margin: 4px 0 0; padding-bottom: 5px; border-bottom: 1px solid var(--coral); text-decoration: none; font-size: .9rem; font-weight: 700; }
.hero.hero .hero-image-stage { border-radius: 22px; background: #fffbf7; border: 1px solid #1c1c1c15; box-shadow: 0 24px 65px #382d211a; overflow: hidden; }
.hero .hero-image-stage::before, .hero .hero-image-stage::after { display: none !important; }
.hero .hero-image-stage .hero-main-image, .hero .hero-image-stage .hero-main-image-next {
  position: absolute; inset: 0 0 auto; width: 100%; height: calc(100% - 88px);
  border: 0; border-radius: 0; object-fit: cover; object-position: center;
  background: #f9f5ef; box-shadow: none; transform: none; animation: none; opacity: 1; transition: none;
}
.hero .hero-main-image-next { visibility: hidden; }
/* Keep the original desk scenes focused on the work, not the empty left side.
   Applied to both layers so the framing stays identical through each wipe. */
.hero .hero-image-stage img[src*="hero-cb-creative-real-work"],
.hero .hero-image-stage img[src*="hero-project-luti"],
.hero .hero-image-stage img[src*="hero-project-nutriwellness"],
.hero .hero-image-stage img[src*="hero-project-adn"],
.hero .hero-image-stage img[src*="hero-project-tnbr"],
.hero .hero-image-stage img[src*="hero-project-carparin"] { object-position: 100% center; }
.hero .hero-image-stage .hero-art-note { left: 22px; top: auto; bottom: 17px; width: auto; max-width: calc(100% - 220px); padding: 0; border: 0; background: none; box-shadow: none; transform: none; scale: 1; }
.hero .hero-art-note span { font-size: .55rem; }
.hero .hero-art-note strong { font-size: 1.35rem; }
.hero .hero-art-note i, .hero .hero-process-line { display: none; }
.hero .hero-showcase-dots { left: auto; right: 16px; bottom: 25px; box-shadow: none; border: 0; padding: 0; gap: 2px; background: none; }
.hero .hero-showcase-dots button { width: 20px; height: 28px; background: none; border-radius: 4px; position: relative; }
.hero .hero-showcase-dots button::after { content: ""; position: absolute; inset: 11px 4px; border-radius: 4px; background: #d5cec6; }
.hero .hero-showcase-dots button.is-active::after { background: var(--coral); }
.hero .hero-showcase-dots button:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
@media (min-width: 1051px) {
  .hero.hero { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 32px; padding-left: max(5vw, calc((100vw - 1600px)/2)); padding-right: max(5vw, calc((100vw - 1600px)/2)); }
  .hero .hero-image-stage { width: 100%; height: auto; aspect-ratio: 1.18; top: 0; justify-self: center; }
  .hero .hero-copy { top: 0; }
  .hero.hero h1 { font-size: clamp(3rem,4.15vw,4.8rem); }
}
@media (max-width: 700px) {
  .hero.hero .hero-image-stage { height: auto; min-height: 0; aspect-ratio: .98; margin-top: 24px; }
  .hero .hero-image-stage .hero-main-image, .hero .hero-image-stage .hero-main-image-next { height: calc(100% - 96px); }
  .hero .hero-image-stage .hero-art-note { left: 16px; bottom: 43px; max-width: calc(100% - 32px); }
  .hero .hero-showcase-dots { right: auto; left: 12px; bottom: 7px; }
  .hero .hero-art-note strong { font-size: 1.1rem; }
}
.nav-services { position: relative; }
.nav-services summary { cursor: pointer; list-style: none; white-space: nowrap; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: "⌄"; margin-left: .4em; color: var(--coral); }
.nav-services-menu { position: absolute; top: calc(100% + 18px); left: -20px; min-width: 230px; display: grid; gap: 6px; padding: 14px; background: #fffaf4; border: 1px solid #1c1c1c18; border-radius: 16px; box-shadow: var(--shadow); }
.nav-services-menu a { padding: 10px; border-radius: 6px; }
.nav-services-menu a:hover, .nav-services-menu a:focus-visible { background: var(--nude); }
.seo-plan-note { max-width: 820px; margin: 28px auto 0; padding: 18px 24px; border-left: 3px solid var(--coral); font-size: .9rem; color: #555; }
.seo-home { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.seo-home h2 { max-width: 650px; font-size: clamp(2rem, 3.3vw, 3.4rem); }
.seo-home p:not(.eyebrow) { font-size: 1rem; line-height: 1.8; margin: 0 0 26px; max-width: 650px; }
.corporate-card .corporate-visual .case-main { position: absolute; inset: 0; width: 100%; height: calc(100% - 30px); object-fit: contain; object-position: center top; transform: none; }
.corporate-card .corporate-visual { background: #fcfaf6; }
.corporate-card .case-service-ribbon { background: var(--charcoal); color: var(--cream); }
#trabajos .corporate-card .case-copy > p:first-of-type { width: 100% !important; max-width: 100% !important; font-size: .6rem !important; letter-spacing: .07em !important; line-height: 1.3 !important; }
#trabajos .corporate-card .case-copy > span { flex-shrink: 1; min-height: 0; }
#trabajos .corporate-card .case-copy { padding: 18px !important; }
#trabajos .corporate-card .case-copy .text-button { flex-shrink: 0; padding-top: 10px; }
.seo-page .seo-hero { padding-top: clamp(170px, 16vw, 220px); padding-bottom: 72px; max-width: 1300px; margin: auto; }
.seo-hero h1 { max-width: 1060px; font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: 1.08; }
.seo-hero h1 em { color: var(--coral); font-weight: inherit; }
.seo-lead { max-width: 820px; margin: 28px 0; font-size: 1.08rem; line-height: 1.85; }
.seo-services { padding-top: 30px; }
.seo-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 32px; }
.seo-scroll-cue { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 0; }
.seo-scroll-cue small { display: block; color: #68605b; font-size: .76rem; margin-bottom: 2px; }
.seo-scroll-cue strong { display: block; font-size: .88rem; font-weight: 650; }
.seo-scroll-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--coral); border-radius: 50%; color: #a74359; font-size: 1.2rem; transition: transform .2s ease; }
.seo-scroll-cue:hover .seo-scroll-arrow { transform: translateY(3px); }
.seo-scroll-cue:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 6px; border-radius: 4px; }
#detalle-seo { scroll-margin-top: 140px; }
@media (prefers-reduced-motion: reduce) {
  html:has(.seo-page) { scroll-behavior: auto; }
  .seo-scroll-arrow { transition: none; }
}
.seo-page h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.1; }
.seo-services { max-width: 1380px; margin-inline: auto; }
.seo-page .seo-services > h2 { max-width: 760px; font-size: clamp(2rem, 3vw, 3rem); }
.seo-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; }
.seo-service-card {
  --card-accent: #b85870; --card-tint: #f8e8eb;
  position: relative; background: linear-gradient(135deg, var(--card-tint), #fffbf7 44%);
  border: 1px solid #1c1c1c14; border-radius: 20px; padding: clamp(22px, 2.2vw, 30px);
  box-shadow: 0 8px 24px #382d2105; transition: transform .25s ease, box-shadow .25s ease;
}
.seo-service-card:nth-child(2) { --card-accent: #8d713c; --card-tint: #f5eddb; }
.seo-service-card:nth-child(3) { --card-accent: #50716a; --card-tint: #e8efea; }
.seo-service-card:nth-child(4) { --card-accent: #786079; --card-tint: #f0e9f0; }
.seo-service-card::after { content: ""; position: absolute; top: 37px; right: 30px; width: 46px; height: 9px; border-top: 2px solid var(--card-accent); border-radius: 50%; transform: rotate(-8deg); opacity: .65; }
.seo-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; color: var(--card-accent); font-size: .7rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 15px; }
.seo-service-card h3 { font-size: clamp(1.5rem, 1.9vw, 1.85rem); line-height: 1.13; max-width: 420px; }
.seo-service-card p { color: #5c5752; margin: 14px 0 18px; font-size: .88rem; line-height: 1.6; }
.seo-service-card ul { list-style: none; padding: 17px 0 0; margin: 0; border-top: 1px solid #1c1c1c12; }
.seo-service-card li { position: relative; padding-left: 16px; margin: 0 0 7px; font-size: .82rem; line-height: 1.5; break-inside: avoid; }
.seo-service-card li::before { content: ""; position: absolute; top: .58em; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--card-accent); }
@media (min-width: 1200px) {
  .seo-service-card ul { columns: 2; column-gap: 24px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .seo-service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #382d2110; }
}
.seo-process ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 42px 0 0; }
.seo-process li { border-top: 1px solid #1c1c1c24; padding-top: 20px; }
.seo-process li > span { font-family: var(--font-title); font-size: 2.4rem; }
.seo-process li p { max-width: 240px; line-height: 1.7; }
.seo-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 24px; }
.seo-price-grid article { padding: 28px; background: #fffbf7; border: 1px solid #1c1c1c18; border-radius: 18px; }
.seo-price-grid h3 { font-size: 1.7rem; line-height: 1.2; }
.seo-price-grid p { margin-bottom: 0; font-weight: 700; }
.seo-price-note { max-width: 760px; color: #555; font-size: .9rem; }
.seo-expectations { max-width: 860px; margin: 46px auto 0; border-left: 3px solid var(--champagne); padding: 6px 26px; }
.seo-expectations p { font-size: 1.05rem; line-height: 1.8; }
.seo-closing { text-align: center; }
.seo-closing h2 { max-width: 700px; margin: 0 auto 30px; }
.seo-page .button { max-width: 100%; text-align: center; white-space: normal; }
@media (max-width: 1050px) {
  .nav-services-menu { position: static; min-width: 0; margin-top: 12px; box-shadow: none; font-size: 1rem; }
  .site-nav { overflow-y: auto; max-height: 100dvh; }
  .seo-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .seo-home, .seo-service-grid, .seo-price-grid { grid-template-columns: 1fr; }
  .seo-page .seo-hero { padding-top: 150px; padding-bottom: 45px; }
  .seo-lead { font-size: 1rem; }
  .seo-process ol { gap: 20px; }
}
