:root{
  --bg: #ffffff;
  --text: #0b0f14;
  --muted: #5b6673;
  --border: rgba(15, 23, 42, .12);
  --shadow: 0 20px 60px rgba(2, 8, 23, .08);
  --shadow2: 0 10px 30px rgba(2, 8, 23, .10);

  --accent: #0b6e63;            /* toque verde arquitectónico */
  --accent2: #0a4fa3;           /* toque azul arquitectónico */
  --accentSoft: rgba(11, 110, 99, .12);
  --radius: 18px;
  --radius2: 26px;
  --container: 1120px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --display: ui-serif, Georgia, "Times New Roman", serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
.link{ text-decoration: underline; text-underline-offset: 3px; }

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

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__logo{
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(2, 8, 23, .08);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.15; }
.brand__name{
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .5px;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .18em;
}

.nav{ display:flex; align-items:center; gap:10px; }
.nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:#fff;
  box-shadow: 0 6px 16px rgba(2,8,23,.06);
  cursor:pointer;
}
.nav__toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: #111827;
  margin: 5px auto;
  border-radius: 999px;
}
.nav__menu{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav__link{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: all .2s ease;
}
.nav__link:hover{
  background: rgba(2, 8, 23, .04);
  color: var(--text);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn--primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn--ghost{
  background: rgba(2,8,23,.03);
}
.btn--small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Hero */
.hero{
  padding: 34px 0 0;
  position: relative;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 26px;
  align-items: start;
  padding: 22px 0 10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(2,8,23,.02);
  width: fit-content;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(11, 110, 99, .12);
}
.hero__title{
  font-family: var(--display);
  font-size: clamp(40px, 4.2vw, 64px);
  letter-spacing: .6px;
  margin: 16px 0 8px;
  line-height: 1.05;
}
.hero__subtitle{
  font-size: 18px;
  color: var(--text);
  margin: 0 0 10px;
}
.hero__lead{
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 18px;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero__meta{
  display:grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  max-width: 640px;
}
.meta{
  display:flex;
  gap: 12px;
  align-items: baseline;
}
.meta__label{
  width: 72px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta__value{
  font-weight: 500;
  color: #111827;
}

.hero__visual{
  position: relative;
}
.visual-card{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(2,8,23,.02), rgba(2,8,23,.01));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.visual-card__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.65);
}
.pill{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 110, 99, .10);
  border: 1px solid rgba(11, 110, 99, .22);
  color: #0a3f39;
  font-weight: 600;
}
.pill--muted{
  background: rgba(2,8,23,.05);
  border: 1px solid var(--border);
  color: var(--muted);
}
.visual-card__body{ padding: 16px; }
.visual-card__title{ margin:0 0 6px; font-weight: 700; }
.visual-card__text{ margin:0 0 14px; color: var(--muted); }

.grid-mini{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini{
  height: 88px;
  border-radius: 16px;
  border: 1px dashed rgba(2,8,23,.18);
  background:
    linear-gradient(135deg, rgba(11,110,99,.10), rgba(10,79,163,.08));
}
.visual-card__footer{
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.65);
}
.chip{
  font-size: 13px;
  color: var(--muted);
}
.chip__k{ color: #111827; font-weight: 700; }

.hero__divider{ padding: 18px 0 0; }
.divider{
  position: relative;
  height: 18px;
}
.divider__line{
  position:absolute;
  left:0; right:0; top: 8px;
  height:1px;
  background: var(--border);
}
.divider__accent{
  position:absolute;
  left:0; top: 8px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* Sections */
.section{
  padding: 64px 0;
}
.section--alt{
  background: linear-gradient(180deg, rgba(2,8,23,.02), rgba(2,8,23,.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head{
  display:grid;
  gap: 10px;
  max-width: 860px;
  margin-bottom: 26px;
}
.section__head h2{
  font-family: var(--display);
  margin:0;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: .4px;
}
.section__head p{
  margin:0;
  color: var(--muted);
}

/* Highlights */
.highlights{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.highlight{
  display:flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,8,23,.05);
}
.highlight__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: var(--accentSoft);
  color: #0a3f39;
  font-weight: 800;
}
.highlight h3{ margin:0 0 4px; font-size: 16px; }
.highlight p{ margin:0; color: var(--muted); }

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2,8,23,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow2); }
.card__icon{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(11,110,99,.14), rgba(10,79,163,.10));
  border: 1px solid rgba(2,8,23,.08);
  font-weight: 800;
}
.card h3{ margin:0 0 6px; font-size: 16px; }
.card p{ margin:0; color: var(--muted); }

.note{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  display:flex;
  align-items:flex-start;
  gap: 10px;
}
.note__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* Steps */
.steps{
  list-style:none;
  padding:0; margin:0;
  display:grid;
  gap: 12px;
}
.step{
  display:flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2,8,23,.05);
}
.step__n{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.step__content h3{ margin:0 0 4px; font-size: 16px; }
.step__content p{ margin:0; color: var(--muted); }

/* Quote */
.quote{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: stretch;
}
.quote__content{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.quote__content h2{ margin:0 0 6px; }
.quote__content p{ margin:0 0 14px; color: var(--muted); }

.quote__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}
.copyline{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 12px 14px;
  border: 1px dashed rgba(2,8,23,.20);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11,110,99,.06), rgba(10,79,163,.05));
}
.copyline__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.copyline__value{
  font-weight: 700;
}

.aside-card{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.75);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(2,8,23,.05);
}
.aside-card__title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.aside-card__text{ font-weight: 600; }
.aside-card__divider{ height: 1px; background: var(--border); margin: 14px 0; }

/* Tabs & placeholder gallery */
.tabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2,8,23,.02);
  color: var(--muted);
  font-weight: 600;
}
.tab:disabled{
  opacity: .75;
  cursor: not-allowed;
}
.placeholder-gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ph{
  height: 170px;
  border-radius: var(--radius);
  border: 1px dashed rgba(2,8,23,.22);
  background:
    linear-gradient(135deg, rgba(11,110,99,.10), rgba(10,79,163,.08));
}

/* Social pending */
.social-pending{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.social-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2,8,23,.05);
}
.social-card__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.social-card__value{ font-weight: 700; }

/* Contact */
.contact__head h2{ margin:0 0 6px; }
.contact__head p{ margin:0 0 16px; color: var(--muted); }
.contact__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.contact__card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2,8,23,.05);
}
.contact__k{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact__v{
  font-weight: 800;
  font-size: 16px;
}
.contact__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Footer */
.footer{
  padding: 34px 0 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .7fr 1.1fr;
  gap: 14px;
  align-items:start;
}
.footer__brand{
  display:flex;
  gap: 12px;
  align-items:center;
}
.footer__logo{
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.footer__name{
  font-family: var(--display);
  font-weight: 700;
}
.footer__muted{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
}
.footer__links{
  display:grid;
  gap: 10px;
  color: var(--muted);
}
.footer__links a:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__info{ color: var(--muted); display:grid; gap: 8px; }
.footer__info strong{ color: var(--text); }

.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content:flex-end;
}
.backtop{
  color: var(--muted);
}
.backtop:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .quote{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .highlights{ grid-template-columns: 1fr; }
  .contact__grid{ grid-template-columns: 1fr; }
  .social-pending{ grid-template-columns: 1fr; }
  .placeholder-gallery{ grid-template-columns: repeat(2, 1fr); }
  .footer__grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav__menu{
    position: absolute;
    right: 20px;
    top: 72px;
    width: min(360px, calc(100vw - 40px));
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow2);
  }
  .nav__menu.is-open{ display:flex; }
  .nav__link{ padding: 12px 12px; }
}

@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
  .placeholder-gallery{ grid-template-columns: 1fr; }
}
