:root {
  --ffcv-primary: #154576;
  --ffcv-primary-hover: #0a1f3c;
  --ffcv-bg-main: #f8fafc;
  --ffcv-bg-card: #ffffff;
  --ffcv-text-main: #0f172a;
  --ffcv-text-muted: #64748b;
  --ffcv-border: #e2e8f0;
  --ffcv-border-focus: #3b82f6;
  --ffcv-ring: rgba(206, 170, 95, 0.3);
  --ffcv-success: #ceaa5f;
  --ffcv-danger: #ef4444;
  --ffcv-radius-lg: 16px;
  --ffcv-radius-md: 12px;
  --ffcv-radius-sm: 8px;
  --ffcv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ffcv-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ffcv-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base & Typography */
#ffcv-formulario-root.ffcv-shell,
#ffcv-buscador-root.ffcv-buscador-shell {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ffcv-text-main);
  background: var(--ffcv-bg-main);
  border-radius: var(--ffcv-radius-lg);
  box-shadow: var(--ffcv-shadow-lg);
  overflow: hidden;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root.ffcv-shell *,
#ffcv-buscador-root.ffcv-buscador-shell * {
  box-sizing: border-box;
}

/* Main Form Area */
#ffcv-formulario-root .ffcv-main {
  padding: 3rem 4rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(21, 69, 118, 0.08), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(206, 170, 95, 0.16), transparent 28%),
    var(--ffcv-bg-card);
}

#ffcv-formulario-root .ffcv-header {
  margin-bottom: 3rem;
  text-align: center;
}

#ffcv-formulario-root .ffcv-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
  color: #0a1f3c;
}

#ffcv-formulario-root .ffcv-header p {
  color: var(--ffcv-text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Stepper - Much cleaner and spacious */
#ffcv-formulario-root .ffcv-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

#ffcv-formulario-root .ffcv-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--ffcv-border);
  z-index: 1;
}

#ffcv-formulario-root .ffcv-stepper span {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ffcv-bg-card);
  border: 2px solid var(--ffcv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ffcv-text-muted);
  transition: all 0.3s ease;
}

#ffcv-formulario-root .ffcv-stepper span::after {
  content: attr(title);
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px !important;
  font-weight: 500;
  color: var(--ffcv-text-muted);
  white-space: nowrap;
}

#ffcv-formulario-root .ffcv-stepper span.active {
  border-color: var(--ffcv-primary);
  background: var(--ffcv-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--ffcv-ring);
}

#ffcv-formulario-root .ffcv-stepper span.active::after {
  color: var(--ffcv-primary);
  font-weight: 700;
}

#ffcv-formulario-root .ffcv-stepper span.done {
  border-color: #0a1f3c;
  background: #0a1f3c;
  color: #ffffff;
}

/* Form Steps */
#ffcv-formulario-root .ffcv-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#ffcv-formulario-root .ffcv-step.active {
  display: block;
}

#ffcv-formulario-root .ffcv-step h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ffcv-border);
  color: var(--ffcv-text-main);
}

#ffcv-formulario-root .ffcv-step.active {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

/* Fields & Grids */
#ffcv-formulario-root .ffcv-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

#ffcv-formulario-root .ffcv-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
#ffcv-formulario-root .ffcv-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

#ffcv-formulario-root .ffcv-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#ffcv-formulario-root .ffcv-form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ffcv-text-main);
}



/* Inputs */
#ffcv-formulario-root .ffcv-form input[type="text"],
#ffcv-formulario-root .ffcv-form input[type="email"],
#ffcv-formulario-root .ffcv-form input[type="tel"],
#ffcv-formulario-root .ffcv-form input[type="date"],
#ffcv-formulario-root .ffcv-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--ffcv-border);
  border-radius: var(--ffcv-radius-md);
  background: #ffffff;
  color: var(--ffcv-text-main);
  transition: all 0.2s ease;
  box-shadow: var(--ffcv-shadow-sm);
}

#ffcv-formulario-root .ffcv-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #154576 50%), linear-gradient(135deg, #154576 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 14px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

#ffcv-formulario-root .ffcv-form input[readonly] {
  background: var(--ffcv-bg-main);
  color: var(--ffcv-text-muted);
  cursor: not-allowed;
}

#ffcv-formulario-root .ffcv-form input:focus,
#ffcv-formulario-root .ffcv-form select:focus {
  outline: none;
  border-color: var(--ffcv-border-focus);
  box-shadow: 0 0 0 4px var(--ffcv-ring);
}

/* Help text */
#ffcv-formulario-root .ffcv-help {
  font-size: 0.85rem;
  color: var(--ffcv-text-muted);
  margin: 0.25rem 0 0 0;
}

/* Upload Area - Much larger and clearer */
#ffcv-formulario-root .ffcv-upload {
  border: 2px dashed var(--ffcv-border);
  border-radius: var(--ffcv-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--ffcv-bg-main);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

#ffcv-formulario-root .ffcv-upload:hover,
#ffcv-formulario-root .ffcv-upload.dragover {
  border-color: var(--ffcv-primary);
  background: rgba(29, 78, 216, 0.05);
}

#ffcv-formulario-root .ffcv-upload p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--ffcv-text-main);
}

#ffcv-formulario-root .ffcv-upload-meta {
  font-size: 0.9rem;
  color: var(--ffcv-text-muted);
  display: block;
  margin-bottom: 1.5rem;
}

#ffcv-formulario-root .ffcv-upload input[type="file"] {
  display: block;
  margin: 0 auto;
}

#ffcv-formulario-root .ffcv-file-name {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ffcv-primary);
}

/* Summary Grid */
#ffcv-formulario-root .ffcv-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

#ffcv-formulario-root .ffcv-summary-card {
  background: var(--ffcv-bg-main);
  border-radius: var(--ffcv-radius-md);
  padding: 1.5rem;
  border: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-summary-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ffcv-text-muted);
  margin: 0 0 1rem 0;
}

#ffcv-formulario-root .ffcv-summary-card p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: var(--ffcv-text-main);
}

/* Checkboxes */
#ffcv-formulario-root .ffcv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--ffcv-bg-main);
  border-radius: var(--ffcv-radius-md);
  border: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

#ffcv-formulario-root .ffcv-checkbox span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ffcv-text-main);
}

/* Buttons */
#ffcv-formulario-root .ffcv-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--ffcv-radius-md);
  border: none;
  background: var(--ffcv-primary);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--ffcv-shadow-md);
}

#ffcv-formulario-root .ffcv-btn:hover {
  background: var(--ffcv-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--ffcv-shadow-lg);
}

#ffcv-formulario-root .ffcv-btn.secondary {
  background: #ffffff;
  color: var(--ffcv-text-main);
  border: 1px solid var(--ffcv-border);
  box-shadow: var(--ffcv-shadow-sm);
}

#ffcv-formulario-root .ffcv-btn.secondary:hover {
  background: var(--ffcv-bg-main);
  border-color: #cbd5e1;
}

#ffcv-formulario-root .ffcv-btn.success {
  background: #0a1f3c;
}

#ffcv-formulario-root .ffcv-btn.success:hover {
  background: #059669;
}

#ffcv-formulario-root .ffcv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

#ffcv-formulario-root .ffcv-btn[hidden] {
  display: none !important;
}

/* Validation */
#ffcv-formulario-root .ffcv-invalid {
  border-color: var(--ffcv-danger) !important;
}

#ffcv-formulario-root .ffcv-error {
  color: var(--ffcv-danger);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* Club Search Status */
#ffcv-formulario-root .ffcv-club-lookup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

#ffcv-formulario-root .ffcv-club-status {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

#ffcv-formulario-root .ffcv-club-status.idle { background: #f1f5f9; color: #475569; }
#ffcv-formulario-root .ffcv-club-status.loading { background: #eff6ff; color: #1d4ed8; }
#ffcv-formulario-root .ffcv-club-status.ok { background: #ecfdf5; color: #047857; }
#ffcv-formulario-root .ffcv-club-status.danger { background: #fef2f2; color: #b91c1c; }

/* Responsive adjustments */
@media (max-width: 768px) {
  #ffcv-formulario-root .ffcv-top-info,
  #ffcv-formulario-root .ffcv-side {
    padding: 2rem;
  }
  
  #ffcv-formulario-root .ffcv-main {
    padding: 2rem;
  }

  #ffcv-formulario-root .ffcv-grid.cols-2,
  #ffcv-formulario-root .ffcv-grid.cols-3,
  #ffcv-formulario-root .ffcv-summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #ffcv-formulario-root .ffcv-stepper {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  #ffcv-formulario-root .ffcv-stepper::before {
    display: none;
  }
}

/* Additional Card Layout for Top Info */
#ffcv-formulario-root .ffcv-top-info {
  background: var(--ffcv-bg-main);
  padding: 3rem 4rem 1rem 4rem;
  border-bottom: 1px solid var(--ffcv-border);
}

/* ============================================================
   BLOQUE DE PASOS PREVIOS
   ============================================================ */

#ffcv-formulario-root .pasos-previos-contenedor {
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
}

#ffcv-formulario-root .ffcv-steps-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ffcv-primary);
  opacity: 0.7;
  margin: 0 0 1.25rem 0;
}

/* Grid: 5 tarjetas + 4 conectores => 9 columnas */
#ffcv-formulario-root .ffcv-step-list {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: start;
  gap: 0 0.25rem;
}

/* ---- Tarjeta de paso ---- */
#ffcv-formulario-root .ffcv-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--ffcv-border);
  border-radius: var(--ffcv-radius-md);
  box-shadow: 0 2px 8px rgba(21, 69, 118, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

#ffcv-formulario-root .ffcv-step-item:hover {
  box-shadow: 0 6px 20px rgba(21, 69, 118, 0.13);
  transform: translateY(-2px);
}

/* Paso 5: acento dorado */
#ffcv-formulario-root .ffcv-step-item--last {
  border-color: var(--ffcv-success);
  background: linear-gradient(135deg, #fffdf5 0%, #fff8e6 100%);
}

#ffcv-formulario-root .ffcv-step-item--last .ffcv-step-icon {
  background: linear-gradient(135deg, #ceaa5f 0%, #e8c97c 100%);
  box-shadow: 0 8px 16px rgba(206, 170, 95, 0.35);
}

#ffcv-formulario-root .ffcv-step-item--last .ffcv-step-number {
  background: var(--ffcv-success);
  color: #fff;
}

/* ---- Icono SVG circular ---- */
#ffcv-formulario-root .ffcv-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ffcv-primary) 0%, #1e6ab5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 18px rgba(21, 69, 118, 0.22);
  flex-shrink: 0;
}

#ffcv-formulario-root .ffcv-step-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  stroke: #ffffff;
}

/* ---- Badge de número ---- */
#ffcv-formulario-root .ffcv-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ffcv-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
  line-height: 1;
}

/* ---- Textos ---- */
#ffcv-formulario-root .ffcv-step-copy h4 {
  margin: 0 0 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ffcv-text-main);
}

#ffcv-formulario-root .ffcv-step-copy p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ffcv-text-muted);
  line-height: 1.45;
}

/* ---- Conector entre pasos ---- */
#ffcv-formulario-root .ffcv-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.8rem; /* centra visualmente con el icono */
  color: var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-step-connector svg {
  width: 20px;
  height: 20px;
  color: #cbd5e1;
  stroke: #cbd5e1;
}

/* ---- Responsive: colapsa a una columna ---- */
@media (max-width: 768px) {
  #ffcv-formulario-root .ffcv-step-list {
    grid-template-columns: 1fr;
  }

  #ffcv-formulario-root .ffcv-step-connector {
    padding-top: 0;
    transform: rotate(90deg);
    height: 28px;
  }
}



#ffcv-formulario-root .ffcv-intro-header h3 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
  color: var(--ffcv-primary);
}

#ffcv-formulario-root .ffcv-intro-header p {
  font-size: 1.1rem;
  color: var(--ffcv-text-muted);
  margin: 0 0 2.5rem 0;
}

#ffcv-formulario-root .ffcv-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

#ffcv-formulario-root .ffcv-resource-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--ffcv-border);
  border-radius: var(--ffcv-radius-md);
  padding: 1.5rem;
  box-shadow: var(--ffcv-shadow-sm);
  transition: all 0.2s ease;
}

#ffcv-formulario-root .ffcv-resource-card:hover {
  box-shadow: var(--ffcv-shadow-md);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

#ffcv-formulario-root .ffcv-resource-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
}

#ffcv-formulario-root .ffcv-resource-icon.blue-icon {
  background: #eff6ff;
  color: #2563eb;
}

#ffcv-formulario-root .ffcv-resource-icon.green-icon {
  background: #ecfdf5;
  color: #059669;
}

#ffcv-formulario-root .ffcv-resource-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 24px !important;
  color: var(--ffcv-text-main);
  font-weight: 700;
}

#ffcv-formulario-root .ffcv-resource-content a {
  display: flex;
  align-items: center;
  color: var(--ffcv-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

#ffcv-formulario-root .ffcv-resource-content a svg {
  margin-right: 0.5rem;
  color: #94a3b8;
}

#ffcv-formulario-root .ffcv-resource-content a:hover {
  color: var(--ffcv-primary);
}

#ffcv-formulario-root .ffcv-resource-content a:hover svg {
  color: var(--ffcv-primary);
}

@media (max-width: 768px) {
  #ffcv-formulario-root .ffcv-resources-grid {
    grid-template-columns: 1fr;
  }
}





.ffcv-copyright-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
}



/* Evitar asteriscos duplicados del tema de WP */
.ffcv-form label .required, .ffcv-form label::after, .ffcv-form label::before, .ffcv-form .gfield_required { display: none !important; content: none !important; }


/* ============================================================
   BLOQUE PROTECCIÓN DE LA INFANCIA — REDISEÑO
   ============================================================ */

/* ---- Panel base ---- */
#ffcv-formulario-root .ffcv-protection-info {
  padding: 0;
  overflow: hidden;
}

/* ---- HERO INTRO ---- */
#ffcv-formulario-root .ffcv-prot-hero {
  background: linear-gradient(135deg, var(--ffcv-primary) 0%, #0a3060 100%);
  padding: 2.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 1.5rem;
  color: #fff;
}

#ffcv-formulario-root .ffcv-prot-hero__badge {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

#ffcv-formulario-root .ffcv-prot-hero__badge svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

#ffcv-formulario-root .ffcv-prot-hero__text {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

#ffcv-formulario-root .ffcv-prot-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 0.4rem 0;
}

#ffcv-formulario-root .ffcv-prot-hero__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.6rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#ffcv-formulario-root .ffcv-prot-hero__lead {
  font-size: 0.92rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

/* Pills de datos clave */
#ffcv-formulario-root .ffcv-prot-hero__pills {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  display: flex;
  gap: 0.75rem;
}

#ffcv-formulario-root .ffcv-prot-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  backdrop-filter: blur(4px);
}

#ffcv-formulario-root .ffcv-prot-pill__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

#ffcv-formulario-root .ffcv-prot-pill__label {
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.92;
}

/* ---- ACORDEÓN ---- */
#ffcv-formulario-root .ffcv-prot-accordion {
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#ffcv-formulario-root .ffcv-prot-item {
  border: 1px solid var(--ffcv-border);
  border-radius: var(--ffcv-radius-md);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

#ffcv-formulario-root .ffcv-prot-item[open] {
  box-shadow: 0 4px 16px rgba(21, 69, 118, 0.1);
}

/* Item 7 con acento dorado */
#ffcv-formulario-root .ffcv-prot-item--commitment {
  border-color: var(--ffcv-success);
}

#ffcv-formulario-root .ffcv-prot-item--commitment > summary .ffcv-prot-item__num {
  background: var(--ffcv-success);
}

#ffcv-formulario-root .ffcv-prot-item--commitment > summary .ffcv-prot-item__icon {
  background: rgba(206, 170, 95, 0.12);
  color: #b8892a;
}

/* Summary — cabecera del acordeón */
#ffcv-formulario-root .ffcv-prot-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}

#ffcv-formulario-root .ffcv-prot-item__header::-webkit-details-marker { display: none; }
#ffcv-formulario-root .ffcv-prot-item__header::marker { display: none; }

#ffcv-formulario-root .ffcv-prot-item__header:hover {
  background: rgba(21, 69, 118, 0.04);
}

#ffcv-formulario-root .ffcv-prot-item[open] > .ffcv-prot-item__header {
  background: rgba(21, 69, 118, 0.05);
  border-bottom: 1px solid var(--ffcv-border);
}

/* Número de paso */
#ffcv-formulario-root .ffcv-prot-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ffcv-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

/* Icono del acordeón */
#ffcv-formulario-root .ffcv-prot-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(21, 69, 118, 0.08);
  color: var(--ffcv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#ffcv-formulario-root .ffcv-prot-item__icon svg {
  width: 18px;
  height: 18px;
}

/* Título */
#ffcv-formulario-root .ffcv-prot-item__title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ffcv-text-main);
  line-height: 1.35;
}

/* Chevron animado */
#ffcv-formulario-root .ffcv-prot-item__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ffcv-text-muted);
  transition: transform 0.25s ease;
}

#ffcv-formulario-root .ffcv-prot-item__chevron svg {
  width: 20px;
  height: 20px;
}

#ffcv-formulario-root .ffcv-prot-item[open] > .ffcv-prot-item__header .ffcv-prot-item__chevron {
  transform: rotate(180deg);
}

/* Cuerpo del acordeón */
#ffcv-formulario-root .ffcv-prot-item__body {
  padding: 1.1rem 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: var(--ffcv-text-muted);
  line-height: 1.65;
}

#ffcv-formulario-root .ffcv-prot-item__body p {
  margin: 0 0 0.75rem 0;
}

#ffcv-formulario-root .ffcv-prot-item__body p:last-child {
  margin-bottom: 0;
}

#ffcv-formulario-root .ffcv-prot-item__sublabel {
  font-weight: 700;
  color: var(--ffcv-text-main);
  font-size: 0.82rem;
  margin: 0.85rem 0 0.5rem 0 !important;
}

#ffcv-formulario-root .ffcv-prot-item__note {
  font-style: italic;
  font-size: 0.82rem;
  background: rgba(21, 69, 118, 0.05);
  border-left: 3px solid var(--ffcv-primary);
  padding: 0.65rem 0.85rem;
  border-radius: 0 6px 6px 0;
  margin: 0.75rem 0 0 0 !important;
  color: var(--ffcv-text-muted);
}

/* Checklist con checkmarks */
#ffcv-formulario-root .ffcv-prot-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#ffcv-formulario-root .ffcv-prot-checklist li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.86rem;
}

#ffcv-formulario-root .ffcv-prot-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ffcv-primary);
  font-weight: 700;
  font-size: 0.78rem;
  top: 0.1em;
}

/* Lista ordenada */
#ffcv-formulario-root .ffcv-prot-ordered {
  padding-left: 1.4rem;
  margin: 0 0 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
}

#ffcv-formulario-root .ffcv-prot-ordered li::marker {
  color: var(--ffcv-primary);
  font-weight: 700;
}

/* Chips de documentación (sección 2) */
#ffcv-formulario-root .ffcv-prot-doc-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem 0;
}

#ffcv-formulario-root .ffcv-prot-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(21, 69, 118, 0.07);
  border: 1px solid rgba(21, 69, 118, 0.15);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ffcv-primary);
}

#ffcv-formulario-root .ffcv-prot-doc-chip svg {
  width: 14px;
  height: 14px;
}

/* Tags de ámbitos (sección 4) */
#ffcv-formulario-root .ffcv-prot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem 0;
}

#ffcv-formulario-root .ffcv-prot-tag {
  background: rgba(21, 69, 118, 0.06);
  border: 1px solid rgba(21, 69, 118, 0.12);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--ffcv-text-main);
}

/* Alerta / callout (sección 5) */
#ffcv-formulario-root .ffcv-prot-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--ffcv-radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.83rem;
  color: #991b1b;
}

#ffcv-formulario-root .ffcv-prot-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #ef4444;
}

#ffcv-formulario-root .ffcv-prot-alert p {
  margin: 0 !important;
  line-height: 1.5;
}

/* Valores (sección 7) */
#ffcv-formulario-root .ffcv-prot-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.85rem 0;
}

#ffcv-formulario-root .ffcv-prot-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ffcv-text-main);
  padding: 0.4rem 0.6rem;
  background: rgba(206, 170, 95, 0.08);
  border-radius: 6px;
  line-height: 1.4;
}

/* Cita / quote final */
#ffcv-formulario-root .ffcv-prot-quote {
  background: linear-gradient(135deg, var(--ffcv-primary) 0%, #0a3060 100%);
  color: #fff;
  border-radius: var(--ffcv-radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  margin-top: 0.75rem;
}

/* ---- FOOTER ¿DUDAS? ---- */
#ffcv-formulario-root .ffcv-prot-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--ffcv-border);
  margin-top: 0.5rem;
}

#ffcv-formulario-root .ffcv-prot-faq {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(21, 69, 118, 0.04);
  border: 1px solid rgba(21, 69, 118, 0.1);
  border-radius: var(--ffcv-radius-md);
  padding: 1rem 1.25rem;
}

#ffcv-formulario-root .ffcv-prot-faq > svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--ffcv-primary);
  margin-top: 2px;
}

#ffcv-formulario-root .ffcv-prot-faq strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ffcv-primary);
  margin-bottom: 0.3rem;
}

#ffcv-formulario-root .ffcv-prot-faq p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ffcv-text-muted);
  line-height: 1.55;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  #ffcv-formulario-root .ffcv-prot-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1.75rem 1.25rem 1.5rem;
  }

  #ffcv-formulario-root .ffcv-prot-hero__badge {
    grid-row: auto;
    grid-column: auto;
  }

  #ffcv-formulario-root .ffcv-prot-hero__text {
    grid-row: auto;
    grid-column: auto;
  }

  #ffcv-formulario-root .ffcv-prot-hero__pills {
    grid-column: auto;
    flex-direction: column;
    gap: 0.5rem;
  }

  #ffcv-formulario-root .ffcv-prot-accordion {
    padding: 0.75rem 0.75rem 0.5rem;
  }

  #ffcv-formulario-root .ffcv-prot-values {
    grid-template-columns: 1fr;
  }
}