:root {
  --endast-blue: #091929;
  --endast-red: #ff4342;
  --bg-light: #f5f7fa;
  --text-main: #091929;
  --text-muted: #5b6b7f;
  --border-soft: #d3dde8;
  --white: #ffffff;
  --max-width: 1100px;
  --radius: 8px;
}

/* Reset mínimo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Corbel", "Arial", sans-serif;
  background: #ffffff;
  color: var(--text-main);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 36px;
}

.brand-text {
  display: none;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

/* Estilo general de los links del menú */
.main-nav a {
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

/* Hover general */
.main-nav a:hover {
  color: var(--text-main);
  border-bottom-color: var(--endast-red);
}

/* Estado ACTIVO explícito del menú */
.main-nav a.nav-active {
  color: var(--text-main) !important;
  border-bottom: 2px solid var(--endast-red) !important;
  font-weight: 600;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #ffebe9, #ffffff 55%);
  border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
  padding: 3rem 1.5rem 4rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text p {
  max-width: 40rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--endast-red);
  color: #ffffff;
}

.btn-primary:hover {
  background: #e03332;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  border-color: var(--endast-red);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Secciones genéricas */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-lead {
  max-width: 36rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
}

.section-alt .card {
  background: #ffffff;
}

.card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Beneficios */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.benefit h3 {
  margin-bottom: 0.4rem;
}

.benefit p {
  color: var(--text-muted);
}

/* CTA final */

.section-cta {
  background: var(--endast-blue);
  color: #ffffff;
}

.section-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-cta p {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.8);
}

.btn-light {
  background: #ffffff;
  color: var(--endast-blue);
  border-color: transparent;
}

.btn-light:hover {
  background: #f3f3f3;
}

/* Footer */

.site-footer {
  background: #050b12;
  color: #d5dde8;
  margin-top: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
}

.footer-logo {
  height: 28px;
  margin-bottom: 0.8rem;
}

.footer-col h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #ffffff;
}

.footer-col p {
  font-size: 0.9rem;
  color: #bcc7d8;
}

.footer-quote {
  margin-top: 0.8rem;
  font-style: italic;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-col a {
  color: #d5dde8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-contact li {
  margin-bottom: 0.3rem;
}

.footer-linkedin {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-linkedin:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 0;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-to-top {
  color: #d5dde8;
}

.back-to-top:hover {
  color: #ffffff;
}

/* Responsivo */

@media (min-width: 640px) {
  .brand-text {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.75rem 1.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }

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

/* Soluciones */

/* Estado activo del menú */

.main-nav a.nav-active {
  color: var(--text-main);
  border-bottom-color: var(--endast-red);
  font-weight: 600;
}


.hero-small .hero-inner {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.solutions-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.solutions-nav span {
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.solutions-nav a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-main);
}

.solutions-nav a:hover {
  border-color: var(--endast-red);
}

.solutions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.solutions-text h2 {
  margin-top: 0;
}

.solutions-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--endast-red);
  margin-bottom: 0.3rem;
}

.solutions-list {
  margin: 1.2rem 0;
}

.solutions-list h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.solutions-list ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.solutions-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.solutions-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.solutions-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 1.1rem 1.2rem;
  background: #ffffff;
}

.section-alt .side-card {
  background: #fdfdfd;
}

.side-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.side-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}

.side-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* Responsivo soluciones */

@media (max-width: 900px) {
  .solutions-layout {
    grid-template-columns: 1fr;
  }
}

/* Industrias */

.industries-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.industries-text h2 {
  margin-top: 0;
}

.industries-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--endast-red);
  margin-bottom: 0.3rem;
}

.industries-list {
  margin: 1.2rem 0;
}

.industries-list h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.industries-list ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.industries-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.industries-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* Responsivo industrias */
@media (max-width: 900px) {
  .industries-layout {
    grid-template-columns: 1fr;
  }
}

/* Nosotros */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.about-bullets {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 1.1rem;
}

.about-bullets li {
  margin-bottom: 0.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-block {
  max-width: 800px;
}

.about-values .card p {
  font-size: 0.9rem;
}

/* responsive */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}
/* Servicios */

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.services-text h2 {
  margin-top: 0;
}

.services-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.services-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Proyectos */

.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.projects-text h2 {
  margin-top: 0;
}

.projects-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--endast-red);
  margin-bottom: 0.3rem;
}

.projects-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* responsive servicios / proyectos */
@media (max-width: 900px) {
  .services-layout,
  .projects-layout {
    grid-template-columns: 1fr;
  }
}

/* Contacto */

.hero-small .hero-inner {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-copy h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-copy p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0.75rem;
  font-size: 0.95rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-list a {
  color: var(--endast-blue);
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-trust h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}

.contact-trust .about-bullets {
  margin-top: 0.2rem;
}

.contact-card {
  max-width: 480px;
  width: 100%;
  margin-left: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 1.8rem 1.8rem 1.4rem;
  box-shadow: 0 12px 30px rgba(9, 25, 41, 0.06);
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--endast-red);
  box-shadow: 0 0 0 1px rgba(255, 67, 66, 0.25);
}

.form-submit {
  margin-top: 0.4rem;
  width: 100%;
}

.form-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive contacto */
@media (max-width: 900px) {
  .contact-page {
    grid-template-columns: 1fr;
  }

  .contact-card {
    margin: 0;
    max-width: none;
  }

  .form-row {
    flex-direction: column;
  }
}