/* Community Harmony Hub — estilos del tema */

:root {
  --radius: 1.25rem;
  --brand: #2563a8;
  --brand-deep: #0f2f57;
  --brand-mid: #6da9e4;
  --ice: #eaf3ff;
  --sky-soft: #f4f8ff;
  --background: #ffffff;
  --foreground: #0f2f57;
  --muted-foreground: #4b5563;
  --border: #e5eaf2;
  --input: #e5eaf2;
  --shadow-soft: 0 1px 2px rgba(15, 47, 87, 0.04), 0 8px 24px rgba(15, 47, 87, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 47, 87, 0.05), 0 18px 40px rgba(15, 47, 87, 0.1);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  margin-top: 0;
}

p { color: var(--muted-foreground); line-height: 1.6; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.site-wrap { display: flex; min-height: 100vh; flex-direction: column; }
.site-main { flex: 1; }

.container-x {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--ice);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 168, 0.6);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(109, 169, 228, 0.6);
}

.btn-secondary:hover {
  background: var(--sky-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-primary.btn-block,
.btn-secondary.btn-block { width: 100%; }

.card-soft {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-soft:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--ice);
  color: var(--brand);
}

.icon-box svg { width: 1.5rem; height: 1.5rem; }

.icon { flex-shrink: 0; }

.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; line-height: 1.7; }
.text-brand { color: var(--brand); }
.text-brand-deep { color: var(--brand-deep); }
.text-muted { color: var(--muted-foreground); }

.section { padding: 5rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 7rem 0; }

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
  .section-sm { padding: 5rem 0; }
}

.bg-gradient-hero {
  background: linear-gradient(to bottom, var(--sky-soft), #fff);
  position: relative;
  overflow: hidden;
}

.bg-secondary { background: var(--ice); }
.bg-ice { background: var(--ice); }
.bg-brand-deep { background: var(--brand-deep); }

.section-hero-home { position: relative; overflow: hidden; }
.section-hero-home .blob-1 {
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(109, 169, 228, 0.2);
  filter: blur(48px);
  pointer-events: none;
}
.section-hero-home .blob-2 {
  position: absolute;
  top: 10rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: var(--ice);
  filter: blur(48px);
  pointer-events: none;
}

.grid-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .grid-2.reverse-md > :first-child { order: 2; }
  .grid-2.reverse-md > :last-child { order: 1; }
}

.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.1; margin: 1.25rem 0 0; }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }

.section-title { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-4 { margin-bottom: 1rem; }

.flex-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-image-wrap { position: relative; }
.hero-image-wrap .glow {
  position: absolute;
  inset: -1rem;
  border-radius: 2rem;
  background: linear-gradient(to top right, rgba(37, 99, 168, 0.15), rgba(109, 169, 228, 0.2));
  filter: blur(32px);
}
.hero-image-wrap img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: var(--shadow-lift);
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  display: none;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) { .hero-badge { display: block; } }

.hero-badge-inner { display: flex; align-items: center; gap: 0.75rem; }
.hero-badge-inner .icon-box { width: 2.5rem; height: 2.5rem; }
.hero-badge-inner .icon-box svg { width: 1.25rem; height: 1.25rem; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(15, 47, 87, 0.85);
}
.check-list .icon { color: var(--brand); margin-top: 0.125rem; }

.feature-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem;
}

.feature-card .icon { color: var(--brand); width: 1.75rem; height: 1.75rem; }
.feature-card h3 { font-size: 1rem; margin: 1rem 0 0.5rem; }

.step-number {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-mid);
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--brand-deep);
  padding: 4rem 2rem;
  text-align: center;
}

@media (min-width: 768px) { .cta-box { padding: 5rem 4rem; } }

.cta-box .blob-a,
.cta-box .blob-b {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}
.cta-box .blob-a { top: -5rem; right: -5rem; background: rgba(109, 169, 228, 0.3); }
.cta-box .blob-b { bottom: -5rem; left: -5rem; background: rgba(37, 99, 168, 0.4); }
.cta-box .cta-inner { position: relative; max-width: 42rem; margin: 0 auto; }
.cta-box h2 { color: #fff; }

.rounded-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lift);
}

.blockquote-box {
  margin: 3rem auto 0;
  max-width: 48rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 2.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-deep);
}

@media (min-width: 768px) { .blockquote-box { font-size: 1.5rem; } }

.method-list { list-style: none; padding: 0; margin: 0; }
.method-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(15, 47, 87, 0.85);
}

/* Servicios — bloques alternados */
.service-block { margin-bottom: 5rem; }
@media (min-width: 768px) { .service-block { margin-bottom: 7rem; } }

.service-block .check-list {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .service-block .check-list { grid-template-columns: 1fr 1fr; }
}

.service-block.reverse .grid-2 > :first-child { order: 2; }
.service-block.reverse .grid-2 > :last-child { order: 1; }

@media (max-width: 767px) {
  .service-block.reverse .grid-2 > :first-child,
  .service-block.reverse .grid-2 > :last-child { order: unset; }
}

/* Contacto */
.contact-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
    padding: 6rem 0;
  }
}

.form-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) { .form-card { padding: 2.5rem; } }

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.form-checkbox a { color: var(--brand); text-decoration: underline; }

.alert-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(37, 99, 168, 0.3);
  background: var(--ice);
}

.contact-sidebar .contact-card-dark {
  border-radius: 1.5rem;
  background: var(--brand-deep);
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.contact-sidebar .contact-card-dark h2 { color: #fff; font-size: 1.25rem; }
.contact-sidebar .contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-sidebar .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.contact-sidebar .contact-list .icon { color: var(--brand-mid); margin-top: 0.125rem; }
.contact-sidebar .contact-list .label { color: rgba(255,255,255,0.7); margin: 0 0 0.25rem; font-size: 0.875rem; }
.contact-sidebar .contact-list strong { color: #fff; font-weight: 600; }

.faq details {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq .faq-toggle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ice);
  color: var(--brand);
  font-weight: 700;
  transition: transform 200ms;
}

.faq details[open] .faq-toggle { transform: rotate(45deg); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(229, 234, 242, 0.7);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) { .header-inner { height: 5rem; } }

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.site-logo .logo-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--brand);
  color: #fff;
}

.site-logo--image {
  display: flex;
  align-items: center;
}

.site-logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-logo-img--header {
  height: 2.75rem;
  max-width: min(220px, 55vw);
}

@media (min-width: 768px) {
  .site-logo-img--header {
    height: 3.25rem;
    max-width: 260px;
  }
}

.site-logo-img--footer {
  height: 3.5rem;
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
}

.nav-primary { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-primary { display: flex; } }

.nav-primary a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(15, 47, 87, 0.8);
  transition: color 200ms;
}

.nav-primary a:hover,
.nav-primary a.is-active { color: var(--brand); }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: block; } }
.header-cta .btn-primary { font-size: 0.875rem; padding: 0.75rem 1.25rem; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-nav.is-open { display: block; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.mobile-nav-inner a {
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: rgba(15, 47, 87, 0.85);
}

.mobile-nav-inner a:hover,
.mobile-nav-inner a.is-active {
  background: var(--ice);
  color: var(--brand);
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: var(--ice);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.footer-links a:hover { color: var(--brand); }

.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-contact .icon { color: var(--brand); width: 1rem; height: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a:hover { color: var(--brand); }

/* 404 */
.page-404 {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.page-404 h1 { font-size: 4.5rem; margin: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
