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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2933;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Cabecera y navegación */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d9e2ec;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #102a43;
  text-decoration: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-list a {
  color: #334e68;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #0b69a3;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Tipografía y bloques */
h1, h2, h3 {
  color: #102a43;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: #486581;
  margin-bottom: 2rem;
}

.hero {
  background-color: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

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

.card,
.service-detail {
  background-color: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.service-detail h2 {
  margin-top: 0;
}

.service-detail p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.section-link {
  margin-top: 1.5rem;
}

a {
  color: #0b69a3;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0b69a3;
  outline-offset: 2px;
}

/* Botones */
.btn {
  display: inline-block;
  background-color: #0b69a3;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover {
  background-color: #095686;
}

/* Formulario */
.contact-form {
  background-color: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  color: #1f2933;
  background-color: #ffffff;
}

input[name="empresa"] {
  display: none;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Pie de página */
.site-footer {
  background-color: #102a43;
  color: #f0f4f8;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #bcccdc;
}

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

@media (max-width: 480px) {
  h1 {
    font-size: 1.55rem;
  }

  .hero,
  .contact-form {
    padding: 1.25rem;
  }
}
