/* ==========================================================================
   PIA - Bloques Watermelon UI (faq-4, faq-2, newsletter-1)
   Integración armónica con el sistema de diseño oscuro de PIA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BLOQUE WATERMELON FAQ-4 (Landing Page)
   -------------------------------------------------------------------------- */
.wm-faq4-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.wm-faq4-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .wm-faq4-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.wm-faq4-header-text {
  max-width: 680px;
}

.wm-faq4-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-cyan, #06b6d4);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 16px;
}

.wm-faq4-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f8fafc);
  margin: 0 0 12px;
}

.wm-faq4-desc {
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}

.wm-faq4-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b0e14;
  background: linear-gradient(135deg, var(--color-cyan, #06b6d4), var(--color-emerald, #10b981));
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.wm-faq4-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
  filter: brightness(1.08);
}

.wm-faq4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 860px) {
  .wm-faq4-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
}

.wm-faq4-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wm-faq4-item {
  background: var(--bg-card, rgba(18, 24, 36, 0.72));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1.25rem;
  padding: 20px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.wm-faq4-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: var(--bg-card-hover, rgba(26, 34, 52, 0.85));
}

.wm-faq4-item.is-open {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.1);
}

.wm-faq4-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary, #f8fafc);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.wm-faq4-trigger-text {
  flex: 1;
}

.wm-faq4-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #94a3b8);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), background 0.2s ease, color 0.2s ease;
}

.wm-faq4-item:hover .wm-faq4-trigger-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan, #06b6d4);
}

.wm-faq4-item.is-open .wm-faq4-trigger-icon {
  transform: rotate(180deg);
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-cyan, #06b6d4);
}

.wm-faq4-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary, #94a3b8);
}

.wm-faq4-item.is-open .wm-faq4-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 14px;
}

.wm-faq4-content strong {
  color: var(--text-primary, #f8fafc);
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   2. BLOQUE WATERMELON FAQ-2 (Página dedicada faq.html)
   -------------------------------------------------------------------------- */
.wm-faq2-hero {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.wm-faq2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-emerald, #10b981);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 20px;
}

.wm-faq2-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald, #10b981);
  box-shadow: 0 0 8px var(--color-emerald, #10b981);
}

.wm-faq2-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f8fafc);
  margin: 0 0 16px;
}

.wm-faq2-subtitle {
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
  margin: 0 auto;
  max-width: 620px;
}

/* Píldoras de Categorías */
.wm-faq2-categories-wrapper {
  max-width: 900px;
  margin: 0 auto 36px;
  padding: 0 20px;
}

.wm-faq2-categories-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
}

.wm-faq2-categories-container::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .wm-faq2-categories-container {
    justify-content: center;
  }
}

.wm-faq2-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.wm-faq2-cat-btn:hover {
  color: var(--text-primary, #f8fafc);
  background: rgba(255, 255, 255, 0.06);
}

.wm-faq2-cat-btn.is-active {
  background: linear-gradient(135deg, var(--color-cyan, #06b6d4), var(--color-emerald, #10b981));
  color: #0b0e14;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  font-weight: 700;
}

.wm-faq2-cat-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.wm-faq2-cat-count {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
  margin-left: 2px;
}

.wm-faq2-cat-btn.is-active .wm-faq2-cat-count {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* Acordeón FAQ-2 */
.wm-faq2-list-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-faq2-item {
  background: var(--bg-card, rgba(18, 24, 36, 0.72));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wm-faq2-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover, rgba(26, 34, 52, 0.85));
}

.wm-faq2-item.is-open {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(18, 24, 36, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wm-faq2-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.wm-faq2-trigger-text {
  color: var(--text-primary, #f8fafc);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.wm-faq2-item.is-open .wm-faq2-trigger-text {
  color: var(--color-cyan, #06b6d4);
}

.wm-faq2-toggle-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.wm-faq2-item:hover .wm-faq2-toggle-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald, #10b981);
}

.wm-faq2-item.is-open .wm-faq2-toggle-badge {
  background: var(--color-emerald, #10b981);
  color: #0b0e14;
}

.wm-faq2-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary, #94a3b8);
  padding: 0 22px;
}

.wm-faq2-item.is-open .wm-faq2-body {
  max-height: 600px;
  opacity: 1;
  padding: 0 22px 20px;
}

.wm-faq2-body strong {
  color: var(--text-primary, #f8fafc);
}

.wm-faq2-body ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.wm-faq2-body li {
  margin-bottom: 6px;
}


/* --------------------------------------------------------------------------
   3. BLOQUE WATERMELON NEWSLETTER-1
   -------------------------------------------------------------------------- */
.wm-newsletter-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
  position: relative;
}

.wm-newsletter-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.14) 0%, rgba(18, 24, 36, 0.96) 75%);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.14));
  border-radius: 2rem;
  padding: 50px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .wm-newsletter-card {
    border-radius: 2.5rem;
    padding: 70px 40px;
  }
}

/* Anillos concéntricos Watermelon (esquinas superior-izquierda e inferior-derecha) */
.wm-concentric-rings-tl {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.18;
}

.wm-ring-tl-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cyan, #06b6d4);
  transform: translate(-50%, -50%);
}

.wm-ring-tl-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid var(--color-emerald, #10b981);
  transform: translate(-50%, -50%);
}

.wm-ring-tl-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cyan, #06b6d4);
  transform: translate(-50%, -50%);
}

.wm-concentric-rings-br {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.18;
}

.wm-ring-br-1 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1.5px solid var(--color-emerald, #10b981);
  transform: translate(50%, 50%);
}

.wm-ring-br-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cyan, #06b6d4);
  transform: translate(50%, 50%);
}

.wm-ring-br-3 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1.5px solid var(--color-emerald, #10b981);
  transform: translate(50%, 50%);
}

.wm-newsletter-inner {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wm-newsletter-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f8fafc);
  margin: 0 0 14px;
}

.wm-newsletter-subtitle {
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 32px;
  max-width: 580px;
}

.wm-newsletter-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.wm-newsletter-row-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 540px) {
  .wm-newsletter-row-inputs {
    flex-direction: row;
  }
}

.wm-newsletter-input {
  background: rgba(11, 14, 20, 0.8);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.14));
  border-radius: 9999px;
  padding: 14px 20px;
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: 0.95rem;
  color: var(--text-primary, #f8fafc);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.wm-newsletter-input:focus {
  border-color: var(--color-cyan, #06b6d4);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.wm-newsletter-input::placeholder {
  color: var(--text-muted, #64748b);
}

.wm-newsletter-submit-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 600px) {
  .wm-newsletter-submit-row {
    flex-direction: row;
  }
  .wm-newsletter-submit-row .wm-newsletter-input {
    flex: 1;
  }
}

.wm-newsletter-btn {
  background: linear-gradient(135deg, var(--color-emerald, #10b981), #059669);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 32px;
  font-family: var(--font-main, 'Atkinson Hyperlegible', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.wm-newsletter-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.wm-newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted, #64748b);
  text-align: left;
  max-width: 560px;
  margin: 0 auto 12px;
  cursor: pointer;
}

.wm-newsletter-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-emerald, #10b981);
  cursor: pointer;
}

.wm-newsletter-legal {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-dim, #475569);
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.wm-newsletter-legal strong {
  color: var(--text-muted, #64748b);
}

.wm-newsletter-legal a {
  color: var(--color-cyan, #06b6d4);
  text-decoration: underline;
}

.wm-newsletter-status {
  min-height: 24px;
  font-size: 0.85rem;
  margin-top: 10px;
  font-weight: 600;
}

.wm-newsletter-status.success {
  color: var(--color-emerald, #10b981);
}

.wm-newsletter-status.error {
  color: var(--color-danger, #f43f5e);
}
