/* Navegación flotante y tratamiento integrado del logotipo */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  background: rgba(244, 243, 238, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 12px 38px rgba(24, 39, 32, 0.12);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.nav-shell {
  height: 82px;
  padding: 0 18px 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
}

.brand img {
  width: 190px;
  height: 64px;
  mix-blend-mode: normal;
}

.nav-shell nav {
  gap: 7px;
}

.nav-shell nav a:not(.nav-cta) {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-shell nav a:not(.nav-cta):hover {
  background: rgba(49, 95, 76, 0.09);
}

.nav-cta {
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(23, 26, 24, 0.16);
  transition: transform 0.2s, background-color 0.2s;
}

.nav-cta:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.hero {
  padding-top: 146px;
}

footer {
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner img {
  width: 190px;
  height: 68px;
  background: transparent;
  mix-blend-mode: normal;
}

.footer-inner p {
  color: var(--muted);
}

.footer-inner > span {
  color: #7d8681;
}

@media (max-width: 900px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    border-radius: 18px;
  }

  .nav-shell {
    height: 72px;
    padding: 0 14px 0 17px;
  }

  .brand img {
    width: 158px;
    height: 52px;
  }

  .nav-shell nav {
    top: 82px;
    left: 0;
    right: 0;
    padding: 14px;
    background: rgba(244, 243, 238, 0.97);
    border: 1px solid rgba(49, 95, 76, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(24, 39, 32, 0.13);
  }

  .nav-shell nav a:not(.nav-cta) {
    padding: 12px 14px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 108px;
  }
}

/* Experiencia destacada */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.projects {
  position: relative;
  max-width: none;
  padding-right: max(32px, calc((100vw - 1240px) / 2 + 32px));
  padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px));
  background:
    radial-gradient(circle at 92% 9%, rgba(49, 95, 76, 0.1), transparent 27%),
    #e8ede9;
  border-top: 1px solid rgba(49, 95, 76, 0.12);
  border-bottom: 1px solid rgba(49, 95, 76, 0.12);
}

.projects .section-heading {
  padding: 46px 50px;
  color: #fff;
  background: linear-gradient(135deg, #244b3b, var(--green));
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(31, 70, 53, 0.16);
}

.projects .section-heading .eyebrow {
  color: #bcdccb;
}

.projects .section-heading h2 span {
  color: #d8e9e0;
}

.projects .section-heading > p {
  color: #e2ece7;
}

.featured-project {
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.featured-project:hover,
.featured-project[open] {
  border-color: rgba(49, 95, 76, 0.38);
  box-shadow: 0 18px 38px rgba(22, 42, 33, 0.1);
  transform: translateY(-3px);
}

.featured-project summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 7px 18px;
  align-items: center;
  min-height: 126px;
  padding: 25px 26px;
  cursor: pointer;
  list-style: none;
}

.featured-project summary:focus {
  outline: none;
}

.featured-project summary:focus-visible {
  border-radius: 18px;
  box-shadow: inset 0 0 0 3px rgba(49, 95, 76, 0.48);
}

.featured-project summary::-webkit-details-marker {
  display: none;
}

.featured-project summary h3 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font: 700 1.18rem/1.35 'Manrope', sans-serif;
}

.featured-project summary .project-type {
  grid-column: 1;
  grid-row: 1;
}

.featured-project summary b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--green);
  font-size: 1rem;
  white-space: nowrap;
}

.featured-project summary i {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-style: normal;
  transition: transform 220ms ease;
}

.featured-project[open] summary i {
  transform: rotate(45deg);
}

.project-detail {
  padding: 0 26px 25px;
  border-top: 1px solid #edf0ed;
}

.project-detail p {
  margin: 20px 0 8px;
  color: var(--muted);
}

.project-detail span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.projects-cta {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 95, 76, 0.14);
  border-radius: 20px;
}

.projects-cta p {
  max-width: 650px;
  margin: 0;
  color: #4f5b55;
}

/* Catálogo completo */
.catalog-page {
  background: var(--paper);
}

.catalog-page .site-header {
  background: rgba(244, 243, 238, 0.84);
}

.catalog-page [aria-current="page"] {
  color: var(--green);
}

.catalog-hero {
  padding: 176px 32px 60px;
  background: linear-gradient(145deg, #eef1ed 0%, var(--paper) 60%);
}

.catalog-hero-inner,
.catalog-section {
  max-width: 1240px;
  margin: auto;
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  margin-bottom: 54px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(49, 95, 76, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(28, 58, 45, 0.08);
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease,
    box-shadow 220ms ease;
}

.back-link:hover {
  color: #fff;
  background: var(--green);
  transform: translateX(-4px);
  box-shadow: 0 15px 30px rgba(28, 58, 45, 0.18);
}

.back-link:focus-visible {
  outline: 3px solid #9fc9b5;
  outline-offset: 4px;
}

.catalog-hero h1 {
  max-width: 970px;
  margin: 0;
  font: 700 clamp(3.1rem, 6.2vw, 6.7rem)/0.98 'Manrope', sans-serif;
  letter-spacing: -0.06em;
}

.catalog-hero h1 em {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 400;
}

.catalog-hero-inner > p:not(.eyebrow) {
  max-width: 690px;
  margin: 30px 0 42px;
  color: var(--muted);
  font-size: 1.12rem;
}

.catalog-stats {
  display: flex;
  gap: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.catalog-stats span {
  color: var(--muted);
}

.catalog-stats b {
  margin-right: 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.catalog-section {
  padding: 110px 32px;
}

.catalog-hero + .catalog-section {
  padding-top: 72px;
}

.catalog-alt {
  max-width: none;
  padding-right: max(32px, calc((100vw - 1240px) / 2 + 32px));
  padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px));
  background: #e8ebe7;
}

.catalog-heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.catalog-heading > span {
  color: var(--green);
  font: 400 2.4rem var(--serif);
}

.catalog-heading .eyebrow {
  margin-bottom: 10px;
}

.catalog-heading h2 {
  margin: 0;
  font: 700 clamp(2.2rem, 4vw, 4rem)/1.06 'Manrope', sans-serif;
  letter-spacing: -0.045em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card {
  position: relative;
  min-height: 235px;
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(49, 95, 76, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(29, 48, 39, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.catalog-card:hover {
  box-shadow: 0 18px 36px rgba(29, 48, 39, 0.1);
  transform: translateY(-4px);
}

.catalog-card.important::after {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(49, 95, 76, 0.1);
}

.catalog-card > span,
.consulting-card > span {
  display: block;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.catalog-card h3 {
  max-width: 300px;
  margin: 0 0 13px;
  font: 700 1.2rem/1.35 'Manrope', sans-serif;
}

.catalog-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.catalog-card b {
  position: absolute;
  right: 30px;
  bottom: 26px;
  left: 30px;
  padding-top: 14px;
  color: #53615a;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.catalog-grid.compact .catalog-card {
  min-height: 190px;
}

.consulting-section {
  padding-bottom: 130px;
}

.consulting-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.catalog-return {
  display: flex;
  justify-content: flex-start;
  margin-top: 46px;
}

.back-link-bottom {
  margin-bottom: 0;
  background: #fff;
}

.consulting-card {
  padding: 38px;
  color: #fff;
  background: var(--ink);
  border-radius: 22px;
}

.consulting-card:last-child {
  background: var(--green);
}

.consulting-card > span {
  color: #b9dbc9;
}

.consulting-card h3 {
  margin: 0 0 20px;
  font: 700 1.55rem 'Manrope', sans-serif;
}

.consulting-card p {
  margin: 0;
  color: #d1d9d5;
}

.catalog-contact {
  padding: 100px 32px;
  color: #fff;
  text-align: center;
  background: var(--green);
}

.catalog-contact > div {
  max-width: 800px;
  margin: auto;
}

.catalog-contact h2 {
  margin: 0;
  font: 700 clamp(2.5rem, 5vw, 4.8rem)/1.05 'Manrope', sans-serif;
  letter-spacing: -0.05em;
}

.catalog-contact p:not(.eyebrow) {
  margin: 22px 0 34px;
  color: #e4eee9;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .featured-projects,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-project summary {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .featured-project summary b {
    display: none;
  }

  .featured-project summary i {
    grid-column: 2;
  }

  .project-detail {
    padding-left: 26px;
  }

  .catalog-hero {
    padding-top: 142px;
  }

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

@media (max-width: 640px) {
  .featured-projects,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .featured-project summary {
    grid-template-columns: 1fr 28px;
    gap: 10px 16px;
  }

  .featured-project summary .project-type {
    grid-column: 1;
  }

  .featured-project summary h3 {
    grid-column: 1;
  }

  .featured-project summary i {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .project-detail {
    padding: 0 24px 24px;
  }

  .projects-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects {
    padding-right: 20px;
    padding-left: 20px;
  }

  .projects .section-heading {
    padding: 34px 28px;
    border-radius: 22px;
  }

  .catalog-hero {
    padding: 128px 20px 52px;
  }

  .back-link {
    margin-bottom: 38px;
  }

  .catalog-hero h1 {
    font-size: 3.1rem;
  }

  .catalog-stats {
    flex-direction: column;
    gap: 12px;
  }

  .catalog-section,
  .catalog-alt {
    padding: 76px 20px;
  }

  .catalog-hero + .catalog-section {
    padding-top: 58px;
  }

  .catalog-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-heading > span {
    font-size: 1.7rem;
  }

  .catalog-card {
    min-height: 220px;
  }

  .consulting-card {
    padding: 30px 26px;
  }
}

/* Sistema de acciones */
.button {
  position: relative;
  isolation: isolate;
  min-height: 54px;
  padding: 15px 24px;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(13, 25, 20, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease,
    border-color 220ms ease, color 220ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.24) 50%, transparent 78%);
  transform: translateX(-125%);
  transition: transform 550ms ease;
}

.button:hover::before {
  transform: translateX(125%);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(13, 25, 20, 0.2);
}

.button:active {
  transform: translateY(-1px);
}

.button span {
  transition: transform 220ms ease;
}

.button:hover span {
  transform: translate(3px, -3px);
}

.button:focus-visible,
.contact-actions > a:focus-visible,
.whatsapp:focus-visible {
  outline: 3px solid #b8ddc9;
  outline-offset: 4px;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), #254c3d);
  box-shadow: 0 12px 26px rgba(49, 95, 76, 0.24);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.button.white {
  color: var(--green);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(18, 44, 34, 0.2);
}

.button.white:hover {
  color: #173a2d;
  background: #f2faf6;
}

/* Contraste en las secciones oscuras */
.cammesa-copy > p:not(.eyebrow) {
  color: #cbd3cf;
}

.stage p {
  color: #bec8c3;
}

.stage > span {
  color: #acd0bc;
}

.stages,
.stage {
  border-color: rgba(255, 255, 255, 0.18);
}

.contact .eyebrow.light {
  color: #cce4d8;
}

.contact-inner > p:not(.eyebrow) {
  color: #f0f5f2;
}

.contact-actions > a:not(.button) {
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: transform 220ms ease, color 220ms ease, background-color 220ms ease,
    box-shadow 220ms ease;
}

.contact-actions > a:not(.button):hover {
  color: var(--green);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(18, 44, 34, 0.18);
}

/* Tarjetas de servicios */
.service-grid {
  gap: 16px;
  background: transparent;
  border: 0;
}

.service-card,
.service-card.featured {
  color: #fff;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(28, 58, 45, 0.11);
  transition: opacity 700ms ease, transform 280ms ease, color 280ms ease,
    background-color 280ms ease, box-shadow 280ms ease;
}

.service-card .service-number,
.service-card .service-icon,
.service-card p,
.service-card li,
.service-card.featured p,
.service-card.featured li {
  color: #e3eee8;
}

.service-card .service-number {
  color: #bcd8ca;
}

.service-card ul,
.service-card.featured ul {
  border-color: rgba(255, 255, 255, 0.24);
}

.service-card li::before,
.service-card.featured li::before {
  color: #d6e8df;
}

.service-card:hover,
.service-card.featured:hover {
  color: var(--ink);
  background: #f8faf7;
  border-color: rgba(49, 95, 76, 0.2);
  box-shadow: 0 20px 42px rgba(28, 58, 45, 0.14);
  transform: translateY(-5px);
}

.service-card:hover .service-number,
.service-card:hover .service-icon,
.service-card:hover p,
.service-card:hover li,
.service-card.featured:hover p,
.service-card.featured:hover li {
  color: #59655f;
}

.service-card:hover .service-number,
.service-card:hover .service-icon,
.service-card:hover li::before {
  color: var(--green);
}

.service-card:hover ul,
.service-card.featured:hover ul {
  border-color: var(--line);
}

/* Acceso directo a WhatsApp */
.whatsapp {
  display: grid;
  width: 60px;
  height: 60px;
  padding: 0;
  place-items: center;
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(20, 67, 46, 0.3);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 36px rgba(20, 67, 46, 0.38);
}

.whatsapp svg {
  width: 31px;
  height: 31px;
  fill: #fff;
}

@media (max-width: 560px) {
  .button {
    min-height: 52px;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button::before,
  .button span,
  .contact-actions > a:not(.button),
  .whatsapp,
  .back-link {
    transition: none;
  }
}

/* Ajustes de jerarquía visual en portada */
.hero-panel {
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(28, 62, 48, 0.16);
}

.trust-strip {
  gap: 0;
  padding: 30px 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.trust-strip span {
  flex: 1;
  padding: 5px 30px;
  text-align: center;
}

.trust-strip span + i + span {
  border-left: 1px solid rgba(49, 95, 76, 0.3);
}

.trust-strip i {
  display: none;
}

/* Footer institucional */
footer {
  padding-top: 52px;
  padding-bottom: 52px;
}

.footer-inner {
  min-height: 94px;
}

.footer-inner p {
  font-size: 1rem;
}

.footer-inner > span {
  font-size: 0.86rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .trust-strip {
    gap: 0;
    overflow: visible;
    white-space: normal;
  }

  .trust-strip span {
    min-width: 210px;
  }
}

@media (max-width: 560px) {
  .hero-panel {
    border-radius: 20px;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 0;
  }

  .trust-strip span {
    min-width: 0;
    padding: 16px 10px;
    font-size: 0.76rem;
  }

  .trust-strip span + i + span {
    border-left: 0;
  }

  .trust-strip span:nth-of-type(even) {
    border-left: 1px solid rgba(49, 95, 76, 0.3);
  }

  .trust-strip span:nth-of-type(n + 3) {
    border-top: 1px solid rgba(49, 95, 76, 0.3);
  }

  footer {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}
