/*
Theme Name: NEXO Engineering Partners
Theme URI: https://nexo.engineering/
Author: NEXO Engineering Partners
Description: Landing page informativa para NEXO Engineering Partners, editable con el editor nativo de WordPress y sin Elementor.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: nexo-engineering-partners
*/

/*
  ESTILOS ESTRUCTURALES
  Edita contenido en assets/content.js.
  Edita colores, fuentes y espacios globales en assets/variables.css.
*/

html {
  scroll-behavior: smooth;
}

body {
  background: var(--nexo-white);
  color: var(--nexo-navy);
  font-family: var(--nexo-font);
}

.nexo-page {
  overflow: hidden;
}

.nexo-header {
  backdrop-filter: blur(18px);
  background: rgba(0, 16, 48, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nexo-white);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.nexo-nav {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 74px;
  padding: 0 24px;
}

.nexo-nav img {
  display: block;
  height: auto;
  max-width: 182px;
}

.nexo-menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nexo-menu a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 9px 14px;
  text-decoration: none;
}

.nexo-menu a:hover,
.nexo-menu a:focus {
  border-color: rgba(120, 167, 216, 0.42);
  color: var(--nexo-white);
  outline: none;
}

.nexo-hero {
  background:
    linear-gradient(90deg, rgba(0, 16, 48, 0.94), rgba(0, 16, 48, 0.72) 54%, rgba(0, 16, 48, 0.38)),
    var(--nexo-hero-bg) center / cover no-repeat;
  color: var(--nexo-white);
  min-height: clamp(620px, 82vh, 780px);
  padding: 86px 24px 70px;
}

.nexo-hero-inner,
.nexo-section-inner {
  margin: 0 auto;
  max-width: var(--nexo-max-width);
}

.nexo-kicker {
  color: var(--nexo-sky);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.nexo-hero h1 {
  color: var(--nexo-white);
  font-size: clamp(3rem, 6.2vw, 6.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 900px;
}

.nexo-hero p {
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  margin: 28px 0 0;
  max-width: 690px;
}

.nexo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.nexo-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 0 21px;
  text-decoration: none;
}

.nexo-button-primary {
  background: var(--nexo-white);
  color: var(--nexo-navy);
}

.nexo-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--nexo-white);
}

.nexo-stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 70px;
  max-width: 820px;
}

.nexo-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
}

.nexo-stat strong {
  color: var(--nexo-white);
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.nexo-stat span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
}

.nexo-section {
  padding: var(--nexo-section-padding) 24px;
}

.nexo-section-alt {
  background:
    linear-gradient(180deg, rgba(232, 238, 247, 0.9), rgba(255, 255, 255, 1)),
    var(--nexo-about-bg) right 8% top 10% / 520px auto no-repeat;
}

.nexo-section-light {
  background: var(--nexo-white);
}

.nexo-section-testimonials {
  background: var(--nexo-ice);
}

.nexo-section-dark {
  background:
    radial-gradient(circle at 85% 18%, rgba(0, 87, 255, 0.22), transparent 32%),
    linear-gradient(180deg, var(--nexo-navy), var(--nexo-midnight));
  color: var(--nexo-white);
}

.nexo-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.nexo-section h2 {
  color: inherit;
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.nexo-lead {
  color: var(--nexo-body);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 24px 0 0;
}

.nexo-section-dark .nexo-lead,
.nexo-section-dark p,
.nexo-section-dark li {
  color: rgba(255, 255, 255, 0.78);
}

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

.nexo-service-grid,
.nexo-testimonial-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.nexo-testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexo-section-heading {
  max-width: 820px;
}

.nexo-info-card {
  background: var(--nexo-white);
  border: 1px solid rgba(0, 16, 48, 0.09);
  border-radius: var(--nexo-radius);
  box-shadow: 0 16px 44px rgba(0, 16, 48, 0.08);
  min-height: 164px;
  padding: 24px;
}

.nexo-info-card h3 {
  color: var(--nexo-navy);
  font-size: 1.06rem;
  margin: 0 0 12px;
}

.nexo-info-card p {
  color: var(--nexo-card-text);
  font-size: 0.96rem;
  line-height: 1.62;
  margin: 0;
}

.nexo-testimonial {
  background: var(--nexo-white);
  border: 1px solid rgba(0, 16, 48, 0.09);
  border-radius: var(--nexo-radius);
  box-shadow: 0 16px 44px rgba(0, 16, 48, 0.08);
  margin: 0;
  padding: 28px;
}

.nexo-testimonial blockquote {
  color: var(--nexo-navy);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.nexo-testimonial figcaption {
  border-top: 1px solid rgba(0, 16, 48, 0.1);
  margin-top: 24px;
  padding-top: 18px;
}

.nexo-testimonial strong,
.nexo-testimonial span {
  display: block;
}

.nexo-testimonial span {
  color: var(--nexo-card-text);
  font-size: 0.92rem;
  margin-top: 4px;
}

.nexo-roles-head {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 34px;
}

.nexo-roles {
  display: grid;
  gap: 14px;
}

.nexo-role {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 167, 216, 0.24);
  border-radius: var(--nexo-radius);
  box-shadow: none;
  color: var(--nexo-white);
  overflow: hidden;
}

.nexo-role summary {
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  list-style: none;
  padding: 24px;
}

.nexo-role summary::-webkit-details-marker {
  display: none;
}

.nexo-role summary::after {
  align-items: center;
  background: rgba(120, 167, 216, 0.14);
  border: 1px solid rgba(120, 167, 216, 0.28);
  border-radius: 999px;
  content: "+";
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 500;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nexo-role[open] summary::after {
  content: "-";
}

.nexo-role h3 {
  color: var(--nexo-white);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  margin: 0;
}

.nexo-role-meta {
  color: var(--nexo-sky);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}

.nexo-role-body {
  border-top: 1px solid rgba(120, 167, 216, 0.18);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 0 24px 24px;
}

.nexo-role-body p,
.nexo-role-body li {
  font-size: 0.97rem;
  line-height: 1.65;
}

.nexo-role-body ul {
  margin: 0;
  padding-left: 20px;
}

.nexo-contact {
  background:
    linear-gradient(90deg, rgba(0, 16, 48, 0.94), rgba(0, 16, 48, 0.78)),
    var(--nexo-contact-bg) right center / 540px auto no-repeat;
}

.nexo-contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nexo-radius);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  padding: clamp(28px, 5vw, 52px);
}

.nexo-contact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.nexo-contact-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nexo-radius);
  color: var(--nexo-white);
  padding: 16px 18px;
}

.nexo-contact-item span {
  color: var(--nexo-sky);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.nexo-contact-item a {
  color: var(--nexo-white);
  text-decoration: none;
}

.nexo-brand-image {
  align-self: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nexo-radius);
  padding: 18px;
}

.nexo-brand-image img {
  border-radius: 6px;
  display: block;
  height: auto;
  width: 100%;
}

.nexo-footer {
  background: var(--nexo-midnight);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
}

@media (max-width: 860px) {
  .nexo-nav,
  .nexo-grid,
  .nexo-roles-head,
  .nexo-role-body,
  .nexo-contact-panel,
  .nexo-service-grid,
  .nexo-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .nexo-nav {
    align-items: flex-start;
    display: grid;
    gap: 16px;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .nexo-menu {
    justify-content: flex-start;
  }

  .nexo-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .nexo-stats,
  .nexo-card-grid {
    grid-template-columns: 1fr;
  }

  .nexo-section {
    padding: 68px 20px;
  }
}

/* Ajustes para que los bloques nativos de Gutenberg mantengan el diseño NEXO */
.nexo-header .wp-block-image,
.nexo-brand-image .wp-block-image {
  margin: 0;
}

.nexo-actions .wp-block-button__link {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: 800;
  padding: 0;
}

.nexo-button-primary .wp-block-button__link {
  color: var(--nexo-navy);
}

.nexo-button-secondary .wp-block-button__link {
  color: var(--nexo-white);
}

.nexo-stats p,
.nexo-contact-item p,
.nexo-footer p {
  margin: 0;
}

.nexo-role > summary {
  color: var(--nexo-white);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-weight: 800;
}

.nexo-role .nexo-role-meta {
  margin: 0 24px 18px;
}

.nexo-testimonial.wp-block-quote {
  background: var(--nexo-white);
  border: 1px solid rgba(0, 16, 48, 0.09);
  border-radius: var(--nexo-radius);
  box-shadow: 0 16px 44px rgba(0, 16, 48, 0.08);
  margin: 0;
  padding: 28px;
}

.nexo-testimonial.wp-block-quote p {
  color: var(--nexo-navy);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.nexo-testimonial.wp-block-quote cite {
  border-top: 1px solid rgba(0, 16, 48, 0.1);
  color: var(--nexo-card-text);
  display: block;
  font-size: 0.92rem;
  font-style: normal;
  margin-top: 24px;
  padding-top: 18px;
}

.nexo-card-grid,
.nexo-service-grid,
.nexo-testimonial-grid,
.nexo-roles,
.nexo-contact-list,
.nexo-stats {
  width: 100%;
}
