:root {
  --brand-gold: #baa360;
  --brand-red: #7f1810;
  --text-dark: #2c2c2c;
  --white: #ffffff;
  --light-bg: #fbfbfb;
  --muted-text: #666666;
  --soft-border: rgba(0, 0, 0, 0.07);
}

html {
  scroll-behavior: smooth;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 86px 0;
}

.services-page {
  flex: 1 0 auto;
  background: var(--light-bg);
  color: var(--text-dark);
}

.services-page section {
  scroll-margin-top: 112px;
}

.services-hero {
  position: relative;
  min-height: 620px;
  margin-top: 110px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("../img/capa-tech2.jpg") center / cover no-repeat;
  color: var(--white);
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(44, 44, 44, 0.82), rgba(127, 24, 16, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35));
  z-index: 1;
  pointer-events: none;
}

.services-hero-overlay {
  display: none;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 88px 0;
  text-align: center;
}

.services-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.services-hero h1 {
  max-width: 850px;
  margin: 0 auto 24px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.services-hero p {
  max-width: 780px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.services-btn-primary {
  color: var(--white) !important;
  background: var(--brand-red);
  border: 2px solid var(--brand-red);
  box-shadow: 0 12px 26px rgba(127, 24, 16, 0.3);
}

.services-btn-primary:hover {
  background: #5f100b;
  border-color: #5f100b;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(127, 24, 16, 0.38);
}

.services-btn-secondary {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
}

.services-btn-secondary:hover {
  color: var(--text-dark) !important;
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.services-btn-light {
  color: var(--brand-red) !important;
  background: var(--white);
  border: 2px solid var(--white);
}

.services-btn-light:hover {
  color: var(--brand-red) !important;
  border-color: rgba(127, 24, 16, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.services-catalog {
  background:
    linear-gradient(180deg, var(--light-bg) 0%, #ffffff 46%, var(--light-bg) 100%);
}

.services-section-title {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.services-section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-section-title h2 {
  margin: 0 0 16px;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.services-section-title p {
  margin: 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-category {
  position: relative;
  display: block;
  width: 100%;
  clear: both;
  margin: 0 0 70px;
  overflow: visible;
}

.service-category:first-of-type {
  margin-top: 0;
}

.service-category:last-of-type {
  margin-bottom: 0;
}

.service-category-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.service-category-heading > div:last-child {
  min-width: 0;
}

.service-category-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 24, 16, 0.08);
  color: var(--brand-red);
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(127, 24, 16, 0.08);
}

.service-category-heading h2 {
  margin: 0 0 7px;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.service-category-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted-text);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: row;
  gap: 28px;
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

.services-grid > .service-card {
  align-self: stretch;
}

.service-card {
  position: relative;
  min-width: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  background: var(--white);
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
  overflow: visible;
  transform: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  opacity: 0.9;
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 24, 16, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09);
}

.service-card-badge {
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(186, 163, 96, 0.14);
  color: #78642d;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 24, 16, 0.08);
  color: var(--brand-red);
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 1.24rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--muted-text);
  line-height: 1.66;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #444444;
  line-height: 1.5;
}

.service-card li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(186, 163, 96, 0.18);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 2px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--brand-red) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-decoration: none !important;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.service-link:hover {
  color: #5f100b !important;
  transform: translateX(4px);
}

.service-card .service-link,
.service-card a {
  margin-top: auto;
}

.services-final-cta {
  position: relative;
  padding: 88px 0;
  background:
    linear-gradient(120deg, rgba(127, 24, 16, 0.95), rgba(72, 12, 8, 0.95)),
    url("../img/capa-tech2.jpg") center / cover no-repeat;
  color: var(--white);
}

.services-final-cta-content {
  max-width: 830px;
  margin: 0 auto;
  text-align: center;
}

.services-final-cta .services-eyebrow {
  color: var(--brand-gold);
}

.services-final-cta h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.14;
}

.services-final-cta p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
}

.services-final-cta .services-hero-actions {
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.services-page #contactos {
  background: var(--light-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.services-page #contactos.section-padding {
  padding: 80px 0;
}

.services-page #contactos .contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.services-page #contactos .contact-info,
.services-page #contactos .contact-form-container {
  min-width: 0;
}

.services-page #contactos .contact-info h2 {
  color: var(--brand-red);
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.2;
}

.services-page #contactos .contact-info > p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.services-page #contactos .info-item {
  margin-top: 28px;
}

.services-page #contactos .info-item strong {
  color: var(--brand-gold);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.services-page #contactos .info-item p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.services-page #contactos .contact-form-container {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.services-page #contactos .form-group {
  margin-bottom: 20px;
}

.services-page #contactos .form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
  letter-spacing: 0.02em;
}

.services-page #contactos .form-group input,
.services-page #contactos .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fafafa;
  color: #222;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.services-page #contactos .form-group input:focus,
.services-page #contactos .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(186, 163, 96, 0.18);
}

.services-page #contactos .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.services-page #contactos .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.services-page #contactos .form-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--brand-red);
  flex-shrink: 0;
}

.services-page #contactos .g-recaptcha {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
  max-width: 100%;
}

.services-page #contactos .btn-submit {
  background: var(--brand-red);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  width: 100%;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(127, 24, 16, 0.2);
}

.services-page #contactos .btn-submit:hover {
  background: #5a110b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(127, 24, 16, 0.3);
}

.services-page #contactos .btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(127, 24, 16, 0.2);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .services-hero {
    min-height: 560px;
  }

  .services-page #contactos .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 66px 0;
  }

  .services-page section {
    scroll-margin-top: 82px;
  }

  .services-hero {
    min-height: 560px;
    margin-top: 74px;
    padding: 110px 0 70px;
    align-items: center;
  }

  .services-hero-content {
    padding: 0;
  }

  .services-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .services-hero p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .services-hero .services-hero-actions {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .services-hero .services-hero-actions .services-btn,
  .services-hero .services-hero-actions a {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    min-height: 48px;
    padding: 13px 18px;
    justify-content: center;
    text-align: center;
  }

  .services-section-title {
    margin-bottom: 46px;
    text-align: left;
  }

  .service-category {
    margin-bottom: 58px;
  }

  .service-category-heading {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .service-category-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }

  .service-category-heading h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .service-category-heading p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .service-card {
    padding: 26px;
    min-height: 0;
  }

  .services-final-cta {
    padding: 70px 0;
  }

  .services-final-cta-content {
    text-align: center;
  }

  .services-final-cta .services-hero-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .services-final-cta .services-hero-actions .services-btn,
  .services-final-cta .services-hero-actions a {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
  }

  .services-page #contactos .contact-form-container {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-page #contactos.section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 390px) {
  .service-category-heading {
    gap: 12px;
  }

  .service-category-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .service-category-heading h2 {
    font-size: 1.35rem;
  }
}
