:root {
  --bg-page: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-soft: #f9fafb;
  --border-subtle: #e5e7eb;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;

  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botón sándwich */

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background-color: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--text-soft);
}

.menu-toggle:hover {
  background-color: var(--accent-soft);
}

/* Logo */

.logo-mark{
  width: 40px;
  height: 40px;
  background: url("imagenes/woben_logo.png") no-repeat center;
  background-size: contain;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-soft);
}

/* MENÚ SANDWICH */

.mobile-menu {
  position: fixed;
  top: 56px;
  left: 8px;
  right: 8px;
  background-color: #ffffff;
  border-radius: 0 0 18px 18px;
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-top: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  transition: max-height 0.25s ease;
  z-index: 30;
}

.mobile-menu-header {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a i {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.mobile-menu a:hover {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  padding-left: 4px;
}

.mobile-menu.open {
  max-height: 380px;
}

.mobile-cta {
  font-weight: 600;
  color: var(--accent-strong);
}

/* LAYOUT PRINCIPAL */

.main-layout {
  padding: 0 12px;
  max-width: 100%;
  margin: 0;
}

/* BLOQUES GENERALES */

.section-block {
  max-width: 1120px;
  margin: 18px auto 26px;
}

/* HERO CONTACTO */

.contact-hero {
  display: flex;
  justify-content: center;
}

.contact-hero-card {
  border-radius: 28px;
  background: radial-gradient(circle at 10% 0%, #e0ebff, #ffffff 55%, #e5e7eb 110%);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-hero-copy {
  flex: 1.4;
}

.contact-hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.eyebrow-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

.contact-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.contact-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Chips */

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(229, 231, 235, 0.95);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.contact-pill i {
  font-size: 0.9rem;
  color: var(--accent-strong);
}

/* Icono hero */

.contact-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: radial-gradient(circle at 0% 0%, #22c55e, #16a34a 60%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
}

.contact-hero-icon i {
  font-size: 1.8rem;
  color: #ffffff;
}

/* Canales de contacto */

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-channels li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.contact-channels li i {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  color: var(--accent-strong);
}

.contact-channels .channel-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.contact-channels a {
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-channels a:hover {
  text-decoration: underline;
}

/* ENCABEZADO SECCIÓN */

.section-heading {
  max-width: 640px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* LAYOUT FORMULARIO + LATERAL */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 18px;
}

/* Tarjeta formulario */

.contact-form-card {
  background-color: var(--bg-surface);
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: var(--shadow-subtle);
  padding: 18px 18px 14px;
}

/* Formulario */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field-full {
  flex-basis: 100%;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
  background-color: #f9fafb;
}

/* Checkbox + botón */

.form-row-footer {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.checkbox-wrapper {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 3px;
}

.checkbox-wrapper a {
  color: var(--accent-strong);
  text-decoration: none;
}

.checkbox-wrapper a:hover {
  text-decoration: underline;
}

/* BOTONES */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--accent-strong);
  border-color: var(--accent-soft);
}

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

.btn-primary i,
.btn-secondary i {
  font-size: 0.95rem;
}

/* PANEL LATERAL */

.contact-side-card {
  background-color: var(--bg-soft);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-subtle);
  font-size: 0.92rem;
}

.contact-side-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.contact-side-card p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.contact-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 0.82rem;
  color: #1e3a8a;
}

.contact-note a {
  color: #1d4ed8;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* FOOTER */

.site-footer {
  margin-top: 0;
  padding: 26px 16px 16px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.footer-main {
  max-width: 1120px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 22px;
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-col p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col li i {
  margin-right: 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Línea inferior */

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.back-to-top {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.back-to-top:hover {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-soft);
}

/* RESPONSIVE */

@media (min-width: 880px) {
  .contact-hero-card {
    flex-direction: row;
  }
}

@media (max-width: 880px) {
  .contact-hero-card {
    padding: 20px 18px;
  }
}

@media (max-width: 768px) {
  .section-block {
    margin: 12px auto 20px;
  }

  .contact-hero-card {
    border-radius: 22px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
/* ===== CAPTCHA + STATUS (Contacto) ===== */

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-row {
  margin-top: 2px;
}

.captcha-wrap {
  display: grid;
  grid-template-columns: 160px 44px 1fr;
  gap: 10px;
  align-items: center;
}

.captcha-img {
  width: 160px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  cursor: pointer;
}

.captcha-refresh {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.captcha-refresh i {
  color: var(--text-soft);
}

.captcha-refresh:hover {
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.captcha-help {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.form-status {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.form-status.info {
  background-color: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.form-status.ok {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.form-status.err {
  background-color: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

@media (max-width: 520px) {
  .captcha-wrap {
    grid-template-columns: 1fr;
  }

  .captcha-img {
    width: 100%;
    height: 56px;
  }

  .captcha-refresh {
    width: 100%;
    height: 44px;
  }
}


/* ===== Overlay de envío (loader centrado) ===== */
.sending-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  z-index: 9999;
  padding: 20px;
}

.sending-overlay.show {
  display: flex;
}

.sending-box {
  width: min(320px, 92vw);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sending-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid rgba(229, 231, 235, 1);
  border-top-color: var(--brand);
  animation: sendingSpin 1s linear infinite;
}

.sending-text {
  font-size: 14px;
  color: var(--text-muted);
}

@keyframes sendingSpin {
  to { transform: rotate(360deg); }
}
