:root {
  --font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  --radius: 18px;
  --max-width: 760px;

  --blue-accent: #610b0b;
  --yellow-accent: #be0202;
  --orange-accent: #530309;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: #f4f6f8;
  color: #111827;
}

.page {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    url("/imagenes/bg.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.03);
}

.card {
  position: relative;
  width: min(var(--max-width), 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-light {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 24, 39, 0.10);
  backdrop-filter: blur(6px);
}

.header {
  padding: 28px 26px 18px 26px;
  text-align: center;
}

.logo {
  width: min(280px, 78%);
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
}

.title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.title-dark {
  color: #111827;
}

.subtitle {
  margin: 10px 0 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.subtitle-dark {
  color: rgba(17, 24, 39, 0.70);
}

.divider {
  height: 3px;
  background: rgba(17, 24, 39, 0.10);
}

.divider-multicolor {
  background: linear-gradient(
    90deg,
    var(--blue-accent),
    var(--yellow-accent),
    var(--orange-accent)
  );
}

.content {
  padding: 18px 26px 18px 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.contact-item {
  padding: 12px 12px;
  border-radius: 12px;
}

.contact-item-light {
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(255, 255, 255, 0.65);
}

.contact-item-wide {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-label-dark {
  color: rgba(17, 24, 39, 0.60);
}

.contact-value {
  font-size: 15px;
  text-decoration: none;
  word-break: break-word;
}

.contact-value-dark {
  color: #111827;
}

a.contact-value-dark:hover,
a.contact-value-dark:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--orange-accent);
}

.social-fa {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.social-fa a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgb(151, 22, 22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 18px;
  text-decoration: none !important;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.social-fa a:hover,
.social-fa a:focus-visible {
  text-decoration: none !important;
  transform: translateY(-2px);
  background: rgba(238, 14, 51, 0.5);
  border-color: #f51313;
}

.social-fa a:focus-visible {
  outline: 2px solid rgba(133, 8, 8, 0.1);
  outline-offset: 3px;
}

.footer {
  padding: 16px 20px 22px 20px;
  text-align: center;
  font-size: 13px;
}

.footer-dark {
  color: rgba(17, 24, 39, 0.60);
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
