body.page-contacto .hero {
  min-height: clamp(60vh, 70vh, 80vh);
  background-size: cover;
  background-position: center;
}

body.page-contacto .hero::before {
  background: linear-gradient(120deg, rgba(var(--brand-caramel-rgb), 0.86), rgba(var(--brand-orange-rgb), 0.3));
}

body.theme-dark.page-contacto .hero::before {
  background: linear-gradient(135deg, rgba(6, 6, 10, 0.9), rgba(var(--brand-orange-rgb), 0.25));
}

.contacto-hero {
  background-image: url('../../assets/img/obrador/contacto2-1.jpg');
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: stretch;
}

.contact-left {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  background: var(--color-card);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  margin-top: 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-list span {
  font-weight: 600;
  color: var(--color-primary);
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.info-list span i {
  font-size: 1rem;
}

.office-hours {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(var(--brand-cream-rgb), 0.6);
}

.social-card {
  background: var(--color-card);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(var(--brand-amber-rgb), 0.2);
  position: relative;
  overflow: hidden;
  text-align: center;
  align-self: stretch;
  justify-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-card::after {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--brand-yellow-rgb), 0.3), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

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

.social-links-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links-large a {
  width: 100%;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 1.6rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
  border: none;
  background: var(--social-bg);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-links-large a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.social-links-large a i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.social-links-large a span {
  text-transform: uppercase;
}

.social-links-large a:hover {
  background: var(--social-bg);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
}

.social-links-large a:hover::before {
  opacity: 1;
}

.social-links-large .social-instagram {
  --social-bg: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.social-links-large .social-facebook {
  --social-bg: #1877f2;
}

.social-links-large .social-linkedin {
  --social-bg: #0a66c2;
}

.social-links-large .social-x {
  --social-bg: #111;
}

.contact-form-card {
  background: linear-gradient(135deg, rgba(var(--brand-cream-rgb), 0.6), rgba(255, 255, 255, 0.95));
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(var(--brand-amber-rgb), 0.25);
}

.contact-form-card form {
  display: grid;
  gap: 1rem;
}

.contact-form-card label {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  align-items: center;
}

.contact-form-card input[type='checkbox'] {
  width: auto;
  accent-color: var(--color-primary);
}

.contact-form-card input,
.contact-form-card textarea {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
}

.contact-form-card textarea {
  min-height: 160px;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: rgba(var(--brand-orange-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb), 0.18);
}

.contact-map {
  margin-top: 2.5rem;
}

.map-embed {
  background: var(--color-card);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.map-embed h3 {
  margin-top: 0;
}

.map-embed iframe {
  border: 0;
  border-radius: 22px;
  width: 100%;
  min-height: 360px;
  box-shadow: var(--shadow-soft);
  margin-top: 1rem;
}

body.theme-dark .info-card,
body.theme-dark .social-card,
body.theme-dark .contact-form-card,
body.theme-dark .map-embed {
  background: rgba(18, 17, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .contact-form-card input,
body.theme-dark .contact-form-card textarea {
  background: rgba(22, 20, 27, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .office-hours {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .social-links-large a {
    height: 78px;
    font-size: 0.98rem;
  }

  .social-links-large a i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .info-list li {
    flex-direction: column;
  }

  .info-card,
  .contact-form-card,
  .social-card,
  .map-embed {
    padding: 1.5rem;
  }

  .info-list span {
    min-width: 0;
  }

  .map-embed iframe {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .social-links-large a {
    height: 70px;
    font-size: 0.92rem;
  }

  .social-links-large a i {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .map-embed iframe {
    min-height: 240px;
  }
}
