/* COSMOASIS — diseño responsive, colores planos y sin degradados */
:root {
  --paper: #F5F8F5;
  --white: #FFFFFF;
  --ink: #173F50;
  --ink-soft: #294A4B;
  --mint: #DCEFE2;
  --mint-strong: rgb(186, 222, 211);
  --aqua: #8FCBC1;
  --line: #D7E3DE;
  --muted: #647B78;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  height: 88px; padding: 0 max(32px, calc((100vw - 1120px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; min-width: 150px; }
.brand-logo { width: 150px; max-height: 58px; object-fit: contain; }
.brand-fallback { display: none; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -1.5px; }
.brand-fallback span { color: #4D8F8C; }
.main-nav { display: flex; align-items: center; gap: 7px; }
.nav-link { font-size: 14px; color: #385453; padding: 12px 15px; border: 1px solid transparent; border-radius: 28px; transition: background .2s, border-color .2s; }
.nav-link:hover, .nav-link.active { background: var(--mint); border-color: #C1DCD0; }
.nav-contact { background: var(--ink); color: white; padding-inline: 20px; }
.nav-contact:hover { background: #24596A; color: white; border-color: transparent; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 12px; width: 44px; height: 44px; padding: 11px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); }

.hero { min-height: 630px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-top: 68px; padding-bottom: 72px; }
.hero-copy { max-width: 590px; }
.eyebrow { color: #477E7A; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin: 0 0 22px; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; background: #6FAFA4; border-radius: 50%; margin-right: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--serif); font-size: clamp(48px, 5.2vw, 76px); line-height: 1.07; letter-spacing: -2.5px; margin-bottom: 26px; font-weight: 600; }
h1 em, h2 em { color: #386E70; font-weight: 600; }
.hero-description { color: #3F5B5A; font-size: 16px; line-height: 1.9; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 23px; border-radius: 28px; font-size: 14px; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { background: #24596A; }
.button-secondary { color: var(--ink); background: white; border: 1px solid #C9D9D9; }
.trust-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 26px; }
.trust-mark { display: grid; place-items: center; width: 21px; height: 21px; background: var(--mint); border-radius: 50%; color: #38736C; font-weight: 700; }

.hero-art { position: relative; min-height: 430px; display: grid; place-items: center; }
.art-card-back { width: min(390px, 100%); height: 390px; position: relative; border-radius: 48% 48% 36% 36% / 40% 40% 25% 25%; background: var(--mint); border: 1px solid #B8D8CD; overflow: hidden; }
.art-card-back::before { content: ""; position: absolute; left: -12%; right: -12%; bottom: -5%; height: 30%; background: #C5E1D0; border-radius: 50% 50% 0 0; transform: rotate(-5deg); }
.art-card-back::after { content: ""; position: absolute; left: 9%; right: 9%; bottom: 0; height: 16%; background: #B0D8CB; border-radius: 50% 50% 0 0; transform: rotate(5deg); }
.planet { position: absolute; width: 135px; height: 135px; top: 105px; left: calc(50% - 67px); border-radius: 50%; background: #B6DFD5; border: 1px solid #A1CFC5; z-index: 2; }
.planet span { position: absolute; width: 200px; height: 70px; left: -33px; top: 32px; border: 1px solid #78ADA9; border-radius: 50%; transform: rotate(-19deg); }
.orbit { position: absolute; z-index: 3; width: 300px; height: 94px; border: 1px solid #9BC6C1; border-radius: 50%; top: 112px; left: 50%; }
.orbit-one { transform: translateX(-50%) rotate(17deg); }
.orbit-two { transform: translateX(-50%) rotate(-17deg); width: 260px; border-color: #79AAA8; }
.planet-dot { position: absolute; z-index: 4; width: 16px; height: 16px; top: 215px; left: 28%; background: var(--ink); border-radius: 50%; }
.mini-star, .art-spark { position: absolute; z-index: 5; color: white; }
.star-one { top: 50px; right: 28%; font-size: 17px; }
.star-two { top: 115px; left: 21%; font-size: 22px; }
.art-spark { color: #6BA9A1; font-size: 30px; }
.spark-left { left: 3%; top: 20%; }
.spark-right { right: 2%; bottom: 20%; }
.art-note { position: absolute; z-index: 6; bottom: 18px; left: -18px; display: flex; gap: 12px; align-items: center; padding: 15px 18px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 30px #173F500D; }
.note-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--mint); color: #397A73; border-radius: 12px; font-size: 22px; }
.art-note strong, .art-note small { display: block; }
.art-note strong { font-size: 12px; margin-bottom: 4px; }
.art-note small { color: var(--muted); font-size: 10px; }

.welcome-strip { background: var(--mint); border-block: 1px solid #CDE3D8; }
.welcome-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; }
.welcome-inner p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 25px); }
.welcome-inner strong { color: #326F6C; }
.strip-symbol { color: #5B9C92; font-size: 30px; }
.services-section { padding-top: 105px; padding-bottom: 110px; }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading h2, .process-layout h2, .about-copy h2 { font-family: var(--serif); font-size: clamp(36px, 4vw, 53px); line-height: 1.16; letter-spacing: -1.3px; margin-bottom: 18px; }
.section-heading > p:last-child, .process-intro, .about-copy > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 600px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 29px 25px 26px; min-height: 280px; transition: transform .2s, border-color .2s; }
.service-card:hover { transform: translateY(-5px); border-color: #A7D1C4; }
.featured-card { background: #E7F2EB; border-color: #C9E1D5; }
.service-number { position: absolute; top: 26px; right: 25px; color: #87A49B; font-size: 12px; }
.service-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px 15px 15px 5px; background: var(--mint); color: var(--ink); font-size: 24px; margin-bottom: 22px; }
.icon-app { background: #C9E7DE; }
.icon-data { background: #E8EEE5; }
.service-card h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 12px; }
.service-card p { font-size: 13px; line-height: 1.75; color: var(--muted); min-height: 68px; }
.text-link { font-size: 12px; font-weight: 700; color: #376F6D; }
.text-link span { margin-left: 6px; }

.process-section { background: #E8F1EB; padding-block: 88px; border-block: 1px solid #D6E5DC; }
.process-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.process-layout h2 { font-size: clamp(35px, 3.7vw, 49px); }
.process-intro { max-width: 420px; }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 18px; padding: 20px; background: #F8FAF7; border: 1px solid #D8E6DE; border-radius: 16px; }
.step > span { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--mint); border-radius: 50%; font-family: var(--serif); font-size: 18px; }
.step h3 { font-size: 15px; margin: 1px 0 7px; }
.step p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }

.about-section { display: grid; grid-template-columns: .55fr 1.45fr; gap: 70px; align-items: center; padding-block: 105px; }
.about-mark { width: 190px; height: 190px; border: 1px solid #BCD9CE; border-radius: 42% 58% 53% 47% / 48% 40% 60% 52%; background: var(--mint); display: grid; place-items: center; position: relative; transform: rotate(-5deg); }
.about-mark span { font-family: var(--serif); font-size: 110px; color: var(--ink); transform: rotate(5deg); }
.about-mark i { position: absolute; top: 25px; right: 28px; color: #548F87; font-size: 28px; font-style: normal; }
.about-copy h2 { max-width: 710px; }
.about-copy > p:last-child { max-width: 720px; margin-bottom: 0; }

.contact-section { background: var(--ink); color: white; padding-block: 64px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-section .eyebrow { color: #B7DCD0; margin-bottom: 13px; }
.contact-section h2 { font-family: var(--serif); font-size: clamp(31px, 4vw, 47px); margin-bottom: 12px; }
.contact-section p:not(.eyebrow) { color: #D1E2DF; font-size: 14px; margin: 0; }
.button-light { flex-shrink: 0; color: var(--ink); background: white; }
.button-light:hover { background: var(--mint); }
.site-footer { width: min(1120px, calc(100% - 64px)); margin: auto; padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.footer-brand span { font: 10px var(--sans); vertical-align: top; margin-left: 2px; }
.site-footer p { color: var(--muted); font-size: 12px; margin: 0; }
.back-top { color: #477E7A; font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .site-header { padding-inline: 28px; }
  .main-nav { gap: 1px; }
  .nav-link { padding: 10px 11px; font-size: 12px; }
  .hero { gap: 30px; }
  .art-card-back { height: 330px; }
  .hero-art { min-height: 370px; }
  .process-layout { gap: 45px; }
  .about-section { gap: 40px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .section-wrap, .site-footer { width: min(100% - 40px, 520px); }
  .site-header { height: 76px; padding-inline: 20px; }
  .brand-logo { width: 128px; }
  .menu-toggle { display: block; position: relative; z-index: 22; }
  .main-nav {
    display: none; position: absolute; top: 75px; left: 0; right: 0; z-index: 21;
    padding: 14px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 18px #173F500D; align-items: stretch; gap: 5px;
  }
  .main-nav.open { display: flex; flex-direction: column; }
  .nav-link { font-size: 14px; padding: 13px 15px; border-radius: 12px; }
  .nav-contact { text-align: center; margin-top: 4px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 58px; padding-bottom: 48px; }
  h1 { font-size: clamp(45px, 12vw, 64px); letter-spacing: -1.8px; }
  .hero-description { font-size: 15px; }
  .hero-art { min-height: 345px; margin-top: 5px; }
  .art-card-back { width: min(330px, 86%); height: 320px; }
  .art-note { left: 0; bottom: 0; }
  .spark-left { left: 0; }
  .spark-right { right: 0; }
  .welcome-inner { padding-block: 21px; }
  .services-section { padding-block: 70px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card p { min-height: 0; }
  .process-section { padding-block: 68px; }
  .process-layout { grid-template-columns: 1fr; gap: 25px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; padding-block: 70px; }
  .about-mark { width: 135px; height: 135px; }
  .about-mark span { font-size: 80px; }
  .about-mark i { top: 15px; right: 19px; font-size: 22px; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-wrap: wrap; padding-block: 25px; }
  .site-footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== COSMOASIS v2: navegación oscura, páginas internas, componentes ===== */
:root { --night: #0F2E3A; --night-2: #143A48; --mono: "JetBrains Mono", Consolas, monospace; }
/* Header NO anclado (ya no es sticky) y más oscuro */
.site-header { position: relative; height: 96px; background: var(--night); border-bottom: 1px solid #1E4A5A; z-index: 30; }
.brand-logo { width: auto; height: 56px; max-height: none; }
.nav-link { color: #CFE5E0; }
.nav-link:hover, .nav-link.active { background: var(--night-2); border-color: #2B6272; color: #fff; }
.main-nav { gap: 6px; }
.dropdown { position: relative; }
.dd-btn { background: transparent; cursor: pointer; font-size: 14px; }
.dd-btn i { font-style: normal; display: inline-block; margin-left: 4px; transition: transform .2s; }
.dropdown.open .dd-btn i { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 8px; background: var(--night); border: 1px solid #2B6272; border-radius: 16px; box-shadow: 0 18px 30px #0F2E3A40; }
.dropdown.open .dd-menu { display: grid; gap: 2px; }
.dd-menu a { padding: 12px 14px; border-radius: 10px; font-size: 14px; color: #CFE5E0; }
.dd-menu a:hover, .dd-menu a.current { background: var(--night-2); color: #fff; }
.menu-toggle { background: var(--night-2); border-color: #2B6272; }
.menu-toggle span { background: #fff; }
html { scroll-padding-top: 20px; }

/* Menú hamburguesa solo en tablet y celular */
@media (max-width: 1024px) {
  .site-header { padding-inline: 28px; }
  .menu-toggle { display: block; position: relative; z-index: 22; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 21; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 22px; background: var(--night); border-bottom: 1px solid #1E4A5A; box-shadow: 0 16px 24px #0F2E3A33; }
  .main-nav.open { display: flex; }
  .nav-link { font-size: 15px; padding: 14px 16px; border-radius: 12px; text-align: left; width: 100%; }
  .dd-btn { display: flex; justify-content: space-between; }
  .dd-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid #2B6272; border-radius: 0; margin: 4px 0 4px 16px; background: transparent; min-width: 0; }
}
@media (min-width: 1025px) { .menu-toggle { display: none !important; } .main-nav { display: flex !important; } }
@media (max-width: 700px) { .site-header { height: 84px; padding-inline: 20px; } .brand-logo { height: 48px; width: auto; } }

/* Footer oscuro */
.site-footer { display: block; width: auto; margin: 0; padding: 0; background: var(--night); color: #CFE5E0; }
.footer-grid { width: min(1120px, calc(100% - 64px)); margin: auto; padding-block: 56px 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.footer-grid h4 { font: 700 12px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: #8FCBC1; margin: 0 0 14px; }
.footer-grid a, .footer-grid span { display: block; font-size: 14px; color: #CFE5E0; margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.site-footer p { color: #A9C7C2; font-size: 13px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #1E4A5A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px max(32px, calc((100vw - 1120px) / 2)); }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; width: calc(100% - 40px); } .footer-bottom { padding-inline: 20px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Recuadros para imágenes (se llenan después) */
.slot { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; border: 2px dashed #9CC7BE; border-radius: 18px; background: #EAF3EE; overflow: hidden; display: grid; place-items: center; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.slot figcaption { text-align: center; color: #477E7A; font-size: 13px; font-weight: 600; padding: 12px; }
.slot figcaption b { display: block; font-size: 28px; margin-bottom: 4px; }
.slot figcaption small { display: block; font: 11px var(--mono); color: #7A9A95; margin-top: 4px; }
.slot-wide { aspect-ratio: 16 / 9; }
.slot-face { aspect-ratio: 1; border-radius: 50%; max-width: 220px; margin-inline: auto; }

/* Encabezado de páginas internas */
.page-hero { background: var(--mint); border-bottom: 1px solid #CDE3D8; padding-block: 72px 64px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: 800px; letter-spacing: -1.8px; }
.page-hero p:last-child { color: #3F5B5A; font-size: 16px; line-height: 1.8; max-width: 620px; margin: 0; }
main > section.section-wrap:not(.hero) { padding-block: 72px; }

/* Carrusel */
.carousel-section { padding-block: 80px 20px !important; }
.carousel { position: relative; overflow: hidden; border-radius: 24px; background: var(--night); }
.track { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; position: relative; }
.slide .slot { border-radius: 0; border: 0; border-bottom: 2px dashed #9CC7BE; max-height: 520px; }
.slide-cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 28px 26px 28px; background: #0F2E3AE6; color: #fff; z-index: 3; }
.slide-cap h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.slide-cap p { margin: 0; color: #CFE5E0; font-size: 14px; }
.c-btn { position: absolute; top: 40%; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--night); font-size: 26px; cursor: pointer; }
.prev { left: 14px; } .next { right: 14px; }
.dots { position: absolute; right: 24px; bottom: 28px; z-index: 4; display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #ffffff66; cursor: pointer; padding: 0; }
.dots button.on { background: #8FCBC1; width: 26px; border-radius: 6px; }

/* Proyectos */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.project .slot { border-radius: 0; border-width: 0 0 2px; }
.project-body { padding: 28px; position: relative; }
.project-body .service-number { position: static; display: block; margin-bottom: 10px; }
.project-body h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.project-body p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.tags span { font: 12px var(--mono); background: var(--mint); color: #2F6561; padding: 5px 11px; border-radius: 20px; }

/* Nosotros */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px; }
.mv-card.dark { background: var(--night); color: #fff; border-color: var(--night); }
.mv-card.dark p { color: #CFE5E0; }
.mv-tag { display: inline-block; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 1.5px; background: var(--mint); color: #2F6561; padding: 6px 12px; border-radius: 8px; margin-bottom: 18px; }
.mv-card h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 12px; }
.mv-card p { line-height: 1.85; color: var(--muted); margin: 0; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.member h3 { font-family: var(--serif); margin: 18px 0 4px; font-size: 22px; }
.member p { color: var(--muted); margin: 0; font-size: 14px; }
.values-band { background: #E8F1EB; border-block: 1px solid #D6E5DC; padding-block: 80px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.value span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--night); color: #8FCBC1; font-size: 20px; margin-bottom: 16px; }
.value h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }

/* Contacto y formulario */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: 15px var(--sans); color: var(--ink); padding: 13px 15px; border: 1px solid #C9D9D9; border-radius: 12px; background: #FAFCFA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #8FCBC1; border-color: #8FCBC1; }
.field .bad { border-color: #C0392B; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.form .button { justify-self: start; border: 0; cursor: pointer; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-msg.ok { color: #2F7A5A; } .form-msg.err { color: #C0392B; }
.side-info { background: var(--mint); border-radius: 22px; padding: 30px; }
.side-info h3 { font-family: var(--serif); font-size: 22px; }
.side-info p { color: #3F5B5A; }
.db-section { background: var(--night); color: #fff; padding-block: 80px; }
.db-section .eyebrow { color: #8FCBC1; }
.db-section h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); }
.db-section h2 em { color: #8FCBC1; }
.db-section .section-heading > p:last-child { color: #CFE5E0; }
.db-section code { font-family: var(--mono); color: #8FCBC1; }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.code-box { background: #0A222C; border: 1px solid #1E4A5A; border-radius: 16px; overflow: hidden; min-width: 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #123644; font: 12px var(--mono); color: #8FCBC1; }
.copy { background: #8FCBC1; color: var(--night); border: 0; border-radius: 8px; padding: 6px 12px; font: 600 12px var(--sans); cursor: pointer; }
.code-box pre { margin: 0; padding: 18px; overflow: auto; max-height: 480px; font: 12.5px/1.65 var(--mono); color: #D8ECE7; }

/* Site map, manual, mapa */
.sitemap, .sitemap ul { list-style: none; margin: 0; padding-left: 26px; border-left: 2px solid #BCD9CE; }
.sitemap { border: 0; padding: 0; }
.sitemap li { margin: 12px 0; font-size: 15px; color: var(--muted); }
.sm-top { font-weight: 700; color: var(--ink); font-size: 17px; }
a.sm-top:hover, .sitemap a:hover { color: #386E70; text-decoration: underline; }
.manual { display: grid; gap: 28px; }
.manual-step { display: grid; grid-template-columns: 60px 1fr 1.2fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.manual-step:nth-child(even) { grid-template-columns: 60px 1.2fr 1fr; }
.manual-step:nth-child(even) .slot { order: 2; }
.manual-step:nth-child(even) .m-text { order: 3; }
.m-num { width: 52px; height: 52px; border-radius: 50%; background: var(--night); color: #8FCBC1; display: grid; place-items: center; font: 700 22px var(--serif); }
.m-text h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 8px; }
.m-text p { color: var(--muted); line-height: 1.8; margin: 0; font-size: 15px; }
.map-box { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 520px; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { margin-top: 16px; }

@media (max-width: 900px) {
  .projects-grid, .mv, .contact-layout, .code-grid { grid-template-columns: 1fr; }
  .team, .values { grid-template-columns: 1fr 1fr; }
  .manual-step, .manual-step:nth-child(even) { grid-template-columns: 52px 1fr; }
  .manual-step .slot { grid-column: 1 / -1; order: 3 !important; }
  .manual-step .m-text { order: 2 !important; }
}
@media (max-width: 600px) { .team, .values, .row2 { grid-template-columns: 1fr; } .form { padding: 22px; } .page-hero { padding-block: 52px 44px; } .map-box { height: 380px; } }
