@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --pine: #0f3f2d;
  --forest: #115337;
  --leaf: #1d754c;
  --mint: #eef3f4;
  --gold: #c8922a;
  --gold-deep: #a77315;
  --ink: #1f2f28;
  --muted: #6d7b73;
  --canvas: #f9fbfc;
  --card-shadow: 0 14px 30px rgba(10, 36, 24, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--pine);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.header-accent {
  height: 12px;
  background: linear-gradient(90deg, var(--pine), var(--leaf));
}

.navbar {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(9, 33, 23, 0.1);
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.brand-text small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.nav-links a {
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--leaf);
  border-bottom-color: var(--leaf);
}

.hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../_imagenes/portfolio-optimization_v2.jpg")
    center/cover no-repeat;
  filter: saturate(1.05);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 12, 0.35) 0%,
    rgba(6, 12, 12, 0.45) 55%,
    rgba(6, 12, 12, 0.6) 100%
  );
  pointer-events: none;
}

.hero .shell {
  position: relative;
  z-index: 1;
  padding: 80px 28px 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}

.hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #ffffff;
}

.subheading {
  font-size: 19px;
  max-width: 640px;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
}

.cta-panels {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.cta-card {
  border-radius: 6px;
  padding: 24px 24px 20px;
  box-shadow: var(--card-shadow);
}

.cta-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.cta-card.green {
  background: linear-gradient(135deg, #0f4d34 0%, #1a6a48 100%);
}

.cta-card.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
}

.bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
}

.cta-card svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn.light {
  background: #f5f9f6;
  color: var(--forest);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.btn.gold {
  background: #f7f0e3;
  color: var(--gold-deep);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.page-hero {
  background: #f5f8f8;
  padding: 48px 0 28px;
  border-bottom: 1px solid #dce5df;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 40px);
  color: var(--forest);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: 40px 0 70px;
}

.section .intro {
  text-align: center;
  margin-bottom: 28px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card,
.network-card {
  background: #ffffff;
  border: 1px solid #dfe6e0;
  box-shadow: 0 12px 22px rgba(12, 33, 23, 0.12);
  border-radius: 6px;
  overflow: hidden;
  padding: 16px 16px 18px;
}

.service-card h3,
.network-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  color: var(--ink);
}

.service-card p,
.network-card p {
  margin: 0;
  color: var(--muted);
}

.divider-accent {
  height: 4px;
  width: 120px;
  background: linear-gradient(90deg, var(--pine), var(--leaf));
  margin: 24px auto;
  border-radius: 999px;
}

.trustline {
  text-align: center;
  color: var(--forest);
  font-weight: 700;
  margin-top: 30px;
  letter-spacing: 0.02em;
}

.contact-section {
  padding: 50px 0 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.form-card,
.contact-card {
  background: #ffffff;
  border: 1px solid #dfe6e0;
  box-shadow: 0 12px 22px rgba(12, 33, 23, 0.1);
  border-radius: 6px;
  padding: 24px;
}

.form-card h3 {
  margin: 0 0 16px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cfd9d1;
  border-radius: 4px;
  padding: 12px 12px;
  font-size: 15px;
  background: #fdfdfb;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(90deg, #1d754c, #0f4d34);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 77, 52, 0.25);
  width: fit-content;
}

.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  display: none;
}

.form-status[data-state="pending"] {
  display: block;
  background: #eef4f0;
  color: #115337;
}

.form-status[data-state="success"] {
  display: block;
  background: #e8f5ed;
  color: #1d754c;
  border: 1px solid #b6e0c7;
}

.form-status[data-state="error"] {
  display: block;
  background: #fcebea;
  color: #b83228;
  border: 1px solid #f5c6c1;
}

.contact-card {
  background: #eef4f0;
  border-left: 4px solid var(--leaf);
}

.contact-card h4 {
  margin: 0 0 14px;
  font-size: 18px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
  color: var(--ink);
}

.contact-item strong {
  display: block;
  color: var(--forest);
}

.footer {
  background: #0f3f2d;
  color: #f1f5f2;
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav-links {
    gap: 14px;
  }

  .hero .shell {
    min-height: 460px;
    padding-top: 70px;
  }

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

@media (max-width: 640px) {
  .navbar-inner {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero .shell {
    padding: 64px 22px 90px;
  }

  .cta-panels {
    margin-top: 46px;
  }
}
