﻿
:root {
  --green-main: #008f5a;
  --green-dark: #006644;
  --bg-light: #f5f7f9;
  --text-main: #18212f;
  --text-soft: #637081;
  --border-soft: #dde3eb;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.07);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: white;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221,227,235,0.8);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.logo-text span:first-child {
  font-weight: 600;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--green-main);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

.btn-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

main {
  scroll-behavior: smooth;
}

section {
  padding: 3rem 0;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #e0f4ec 0, #ffffff 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 1rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero-title span.dc {
  font-weight: 800;
  color: var(--green-main);
  letter-spacing: 0.05em;
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 36rem;
  margin-bottom: 0.9rem;
}

.hero-extra {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-ghost {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: white;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost2 {
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,143,90,0.07);
  border: 1px dashed rgba(0,143,90,0.3);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--green-main);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(221,227,235,0.7);
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-main);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.metric {
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--bg-light);
  font-size: 0.8rem;
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Sections */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  /* max-width: 30rem; */
  margin-bottom: 1.8rem;
}

.neutral-list {
  list-style: none;
  margin: -1rem 0 1.8rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.neutral-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.neutral-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-weight: 700;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.7rem;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: rgba(0,143,90,0.35);
}

.card-tag {
  display: inline-block;
  font-size: 1.0rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  margin-bottom: 0.1rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.card ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding-left: 0.25rem;
  margin-top: 0.25rem;
}

.card ul li::before {
  content: "•";
  color: var(--green-main);
  display: inline-block;
  width: 1rem;
}

/* Licitaciones / steps */
.licitaciones-bg {
  background: var(--bg-light);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

.pill {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: white;
  border: 1px dashed var(--border-soft);
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.steps-list {
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  margin-bottom: 1.1rem;
  padding-left: 2.3rem;
  position: relative;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(0,143,90,0.1);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.steps-list h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.steps-list p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.steps-card {
  background: white;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  font-size: 0.87rem;
  color: var(--text-soft);
}

/* Contacto */
.contact {
  background: #051c13;
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact p {
  color: rgba(255,255,255,0.8);
}

.contact a {
  color: #00e083;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact-form {
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  color: rgba(255,255,255,0.9);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(2,34,23,0.9);
  color: white;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.field textarea {
  border-radius: 16px;
  min-height: 90px;
  resize: vertical;
  line-height: 1.4;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 1px var(--green-main);
}

.btn-cta.dark {
  background: linear-gradient(135deg, #00b46d, #00e083);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  width: 100%;
  justify-content: center;
  text-align: center;
  display: inline-block;
  margin-top: 0.2rem;
}

/* Alianzas logos */
.alliances-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  justify-content: flex-end;
}

.alliances-logos img {
  height: 42px;
  filter: saturate(0.9);
  opacity: 0.9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.alliances-logos img:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 999px;
}

/* Certificaciones */
.cert-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.8rem;
  justify-content: flex-end;
}

.cert-logos-row img {
  height: 44px;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cert-logos-row img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* Footer */
footer {
  border-top: 1px solid #0b2a1c;
  background: #03140d;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}

.footer-inner {
  padding: 1rem 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
}

/* Páginas legales */
.legal {
  max-width: 820px;
}
.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.legal .legal-updated {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
}
.legal h2 {
  font-size: 1.15rem;
  margin: 1.7rem 0 0.5rem;
  color: var(--green-dark);
}
.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}
.legal ul {
  margin: 0.4rem 0 0.6rem 1.2rem;
}
.legal li {
  margin-bottom: 0.3rem;
}
.legal a {
  color: var(--green-dark);
  text-decoration: underline;
}
.legal strong {
  color: var(--text-main);
}
.legal .placeholder {
  background: #fff7e6;
  border-bottom: 1px dashed #e0a800;
  padding: 0 0.25rem;
  font-style: normal;
  color: #8a6d00;
}

/* Consentimiento RGPD en formulario */
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.field-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.field-consent label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}
.field-consent a {
  color: #00e083;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 0.8rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-dark);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  header {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-cta.nav-cta {
    display: none;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-soft);
    border-bottom: 2px solid var(--green-main);
    padding: 0.6rem 1.5rem 1rem;
    flex-direction: column;
    gap: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li a {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-soft);
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  section {
    padding: 3rem 0;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .alliances-logos {
    justify-content: center;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-card {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-actions .btn-cta,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid-compact {
    grid-template-columns: 1fr;
  }

  .cert-logo {
    width: 72px;
    height: 72px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-badges .btn-ghost2 {
    width: 100%;
  }
}
