:root {
  --slate: #1E293B;
  --blue: #0058BE;
  --blue-hover: #00458F;
  --blue-bright: #2170E4;
  --canvas: #F7F9FB;
  --surface-alt: #F3F5F9;
  --white: #FFFFFF;
  --hairline: #E2E8F0;
  --text: #1E293B;
  --text-body: #475569;
  --text-muted: #64748B;

  --on-dark-title: #FFFFFF;
  --on-dark-body: #CBD5E1;
  --on-dark-body-alt: #DCE3EE;
  --on-dark-label: #BCC7DE;
  --on-dark-border: rgba(255, 255, 255, .12);

  --icon-tint-bg: rgba(0, 88, 190, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
}

.container {
  max-width: 1280px;
}

section {
  padding: 88px 64px;
  scroll-margin-top: 80px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 16px;
}

.eyebrow-dark {
  color: var(--on-dark-label);
}

.eyebrow-light {
  color: var(--text-muted);
}

.section-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
}

.section-title-dark {
  color: var(--on-dark-title);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.icon-box .material-symbols-outlined {
  font-size: 24px;
}

.icon-box-light {
  background-color: var(--icon-tint-bg);
  color: var(--blue);
}

.icon-box-bright {
  background-color: var(--blue-bright);
  color: var(--white);
}

.icon-box-blue {
  background-color: var(--blue);
  color: var(--white);
}

/* Buttons */
.btn-primary-custom,
.btn-secondary-custom {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-primary-custom {
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}

.btn-primary-custom:hover {
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
}

.btn-secondary-custom {
  background-color: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-secondary-custom:hover {
  background-color: rgba(0, 88, 190, .08);
  color: var(--blue);
}

/* Header */
.site-header {
  background-color: var(--white);
  min-height: 80px;
  border-bottom: 1px solid var(--hairline);
  z-index: 1030;
}

.site-header .navbar {
  min-height: 80px;
  padding: 0 64px;
}

.header-container {
  min-height: 80px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-collapse {
  background-color: var(--white);
  flex-basis: 100%;
}

.header-logo {
  height: 44px;
}

.main-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 8px 16px;
  transition: color .15s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--blue);
}

/* Hero */
.hero-section {
  background-color: var(--slate);
  padding: 104px 64px;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--on-dark-title);
  max-width: 980px;
  text-wrap: balance;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-body-alt);
  max-width: 720px;
  text-align: center;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Beneficios */
.beneficios-section {
  background-color: var(--white);
}

.g-benefits {
  --bs-gutter-x: 20px;
  row-gap: 20px;
}

.benefit-card {
  background-color: var(--surface-alt);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.benefit-title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.benefit-text {
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  color: var(--text-body);
}

/* Servicios */
.servicios-section {
  background-color: var(--slate);
}

.g-services {
  --bs-gutter-x: 20px;
  row-gap: 20px;
}

.service-card {
  border: 1px solid var(--on-dark-border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
}

.service-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--on-dark-title);
  margin-bottom: 8px;
}

.service-text {
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  color: var(--on-dark-body);
}

/* Garantias */
.garantias-section {
  background-color: var(--canvas);
}

.guarantee-card {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
}

.guarantee-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.guarantee-text {
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  color: var(--text-body);
}

/* FAQ */
.faq-section {
  background-color: var(--white);
}

.faq-accordion .accordion-item.faq-item {
  border: none;
  border-radius: 0;
  background: transparent;
}

.faq-accordion .accordion-item.faq-item:first-child {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-button,
.faq-button:not(.collapsed) {
  width: 100%;
  background-color: transparent;
  color: inherit;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: none !important;
}

.faq-button::after {
  display: none;
}

.faq-question-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-align: left;
}

.faq-icon {
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-body {
  padding: 0 0 20px 0;
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  color: var(--text-body);
}

/* Contacto */
.contacto-section {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.contacto-paragraph {
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  color: var(--text-body);
  margin-bottom: 20px;
}

.contacto-subtitle {
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 16px;
}

.contacto-panel {
  background-color: var(--slate);
  border-radius: 12px;
  padding: 36px;
}

.contacto-panel-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--on-dark-title);
  margin-bottom: 16px;
}

.contacto-panel-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-dark-body);
  margin-bottom: 24px;
}

.contacto-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--on-dark-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.contacto-row-label {
  font-size: 13px;
  color: var(--on-dark-label);
  margin-bottom: 4px;
}

.contacto-row-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-dark-title);
}

a.contacto-row-value:hover {
  color: var(--blue-bright);
}

.contacto-panel-closing {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-dark-body);
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background-color: var(--slate);
  padding: 48px 64px 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo-box {
  background-color: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
}

.footer-logo {
  height: 36px;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--on-dark-label);
  transition: color .15s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--on-dark-border);
  margin: 32px 0 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 14px;
  color: var(--on-dark-label);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-privacy {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--on-dark-label);
  transition: color .15s ease;
}

.footer-privacy:hover {
  color: var(--white);
}

/* Privacy Modal */
.privacy-modal-dialog {
  max-width: 880px;
}

.privacy-modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 25px rgba(30, 41, 59, .10);
  position: relative;
}

.privacy-modal-body {
  padding: 48px 56px;
}

.privacy-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, background-color .15s ease;
  z-index: 5;
}

.privacy-close-btn:hover {
  background-color: rgba(0, 88, 190, .08);
  color: var(--blue);
}

.privacy-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.privacy-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.privacy-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 24px 0;
}

.privacy-h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.privacy-h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.privacy-paragraph {
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
  color: var(--text-body);
  margin-bottom: 16px;
}

.privacy-paragraph strong,
.privacy-list strong {
  color: var(--text);
}

.privacy-list {
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
  color: var(--text-body);
  margin: 0 0 16px;
  padding-left: 20px;
}

.privacy-list li {
  margin-bottom: 8px;
}

/* Backdrop custom color */
.modal-backdrop {
  background-color: rgba(25, 28, 30, .32);
}

.modal-backdrop.show {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
  section {
    padding: 72px 40px;
  }

  .contacto-text-col {
    margin-bottom: 48px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 56px 20px;
  }

  .site-header .navbar {
    padding: 0 20px;
  }

  .hero-section {
    padding: 72px 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section-title {
    font-size: 28px;
  }

  .service-card,
  .guarantee-card {
    flex-wrap: wrap;
    align-items: center;
  }

  /* Collapse the title/text wrapper so the icon and title share the first
     flex line, and the text wraps to its own full-width line below. */
  .service-card > div,
  .guarantee-card > div {
    display: contents;
  }

  .service-title,
  .guarantee-title {
    margin-bottom: 0;
    flex: 1 1 0%;
    min-width: 0;
  }

  .service-text,
  .guarantee-text {
    flex-basis: 100%;
  }

  .site-footer {
    padding: 40px 20px 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .privacy-modal-body {
    padding: 24px;
  }

  .main-nav {
    padding: 16px 0;
    gap: 4px;
    align-items: center;
  }

  .main-nav .nav-link {
    padding: 10px 0;
    text-align: center;
    width: 100%;
  }
}
